

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 Arduino enable you to read from or write to analog sensors, such as photoresistors, knobs (potentiometers), and temperature sensors. You can simply 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. The ARDX Starter Kit for Arduino from Seeed Studio is a good kit with lots of parts (LEDs, resistors, servos, etc.), but it ships with an Arduino Uno instead of the Yun (the Uno doesn't have onboard Wi-Fi or the Linux distribution we will use in later lessons). Neither of those are relevant for this lesson, so if you have a different Arduino board (e.g. other less expensive Arduino boards) is because in future lessons you will make use of the fact that the Yun has on-board Wi-Fi and a Linux distribution.
#Arduino analog series
*For this lesson series you are using an Arduino Yun. (1) 10k-Ohm 1/4 Watt resistor (Brown-Black-Orange)
#Arduino analog how to
In the previous lesson you learned how to send OUTPUT and in this lesson you will learn to collect INPUT.

The module takes 0 to 5V analog input and provides optically isolated 0-3.3V as output. The circuit requires two power supplies for the input and output sides. Interfacing an analog voltage, an analog sensor to Arduino or other various microcontrollers with optical isolation is very easy with this module. The module is very useful for in-process controls, factory automation, industrial applications, etc.

This is an isolated analog input module that is useful for interfacing Analog signals of various types originated from analog sensors and field devices.
