Lab: Digital Input and Output with an Arduino

c1812d0567b010194ed8fb69110f7ec.jpg

8852d2b1a85b1c18ac3ecc9bbaf851e.jpg

Question: Is it because the voltage is very low so that we do not have to really connect the circuit to the ground?

Lab: Analog In with an Arduino

notes: analog input does not need to write INPUT in set up.

01 Potentiometer

e3666bb411ab6280e5762c3f3e8b0d4.jpg

There are two kinds of potentiometer in the kit. At first, I used the smaller one as the figure showed, the light of LED could not change no matter how I checked the circuit. Then I use the bigger one, It finally succeed. I guess the pin of the smaller one is too short.

8f4bba230c97ecc734a29b6757d18ca9.mp4

02 Force-sensing resistor

When I pressed the force-sensing resistor, the LED lighted up. I could see the sensorValue range from 0 to 1023, but the intensity of the light did not change. if the brightness is below 130, there is no light; if the brghtness exceeds 140, the LED suddenly lights up. I cound not observe the process of change on both green and red LED.

I guess the reason is that I can't control how much I'm pressing the sensor, so the sensorValue cannnot rise slowly.