Recitation 3 – James Bai

So I was absent for this recitation and did it myself.

I connected the infrared distance sensor and turned an LED light on and off with it. I only used the Arduino, an LED light connected to Digital 13 and the ground next to it, and my hand.

It worked on the first try as I create an IF ELSE command to turn the LED light when distance was above 13.

James Bai Sensor

^that’s the link for a video on my sensor working.

Here are my 200 IQ pictures of the infrared sensor and LED light.

Here is a picture of the code:

Question 1:

I intended to assemble a interaction, where when my hand got close to the sensor the light would turn on. This is applied in everyday usage such as in rooms where the light would turn on when you enter. People use this for simplicity and laziness to turn on and off lights. This is also used for technological purposes to detect people and things, which can be used for security purposes. 

Question 2:

Like implementing food in a recipe, the code must have certain lines in certain places to work properly. You must follow a specific order for the best food or the code that works. Also, a recipe prepares everything in the beginning to be cooked or baked. In code, you introduce all the variables you plan to use later in the beginning.

Question 3:

Computers definitely simplify our lifestyles and behaviors, but it also pushes the limits. We behave correspondingly to computers, or technological advances such as phones. We change our actions because of them, like now we type our essays on computers rather than write them. Computers change our behaviors, not vice versa. 

Leave a Reply