Wednesday, February 12, 2014

day 7 sensors using arduino



Using the Arduinos' serial debug, external input can be extrapolated as data.
In this image a LDR is pluged in as a analog input to the arduino. The LDR's voltage is changing depending on how much light is around it. The higher the light the less the resistance, thus the arduino is reading a higher number.

The Arduino has a Serial begin   command that allows you to see the data it is reading in real time. Depending on the voltage it receives it gives a number between 0 and 1023.


No comments:

Post a Comment