![]() Connect the voltage from the 5-volt (input voltage) pin to a circuit (using a breadboard).To create the voltage divider needed for this lesson you will: In order to take advantage of the photoresistor you will create a voltage divider - a passive linear circuit that splits the input voltage amongst two or more components (similar to a Y-splitter). The resistance decreases as light input increases - in other words, the more light, the more voltage passes through the photoresistor. 0049 volts (4.9 mV) per unit.Ī photoresistor, also known as light-dependent resistor (LDR) or a photocell, works by limiting the amount of voltage that passes through it based on the intensity of light detected. This yields a resolution between readings of: 5 volts / 1024 units or. This means that it will map input voltages between 0 and 5 volts into integer values between. Here is the description of the analog pins from the Arduino website: The Arduino board contains a 6 channel, 10-bit analog to digital converter. The A0-A5 pins on the board enable you to read from or write to analog sensors, such as photoresistors, knobs (potentiometers), and temperature sensors. Wire your board according to the diagram (wire colors don't matter, but help with identification of purpose). The first step is to wire up the Arduino to read voltage as determined by the resistance created by the photoresistor.
0 Comments
Leave a Reply. |