LDR sensor with Arduino simulation in proteus | applied electronics engineering

Latest

LDR sensor with Arduino simulation in proteus

By Applied Electronics - Saturday, January 28, 2017 No Comments
 LDR(Light Dependent Resistor) is a light sensor used to detect amount of light. If more light falls on the sensor the resistance decreases. We can use arduino analog pin to detect the amount of light. The analog pin of arduino senses the voltage signal coming into it. By creating a simple voltage divider circuit using two resistors- one the LDR and another 10KOhm resistor, and connecting the center of the two resistor to the analog pin we can sense the voltage at the middle.

For actual hardware demonstration see How to test photoresistor(LDR) with Arduino

Circuit diagram for LDR sensor with Arduino simulation in Proteus

Following is the circuit diagram for simulating LDR sensor with Arduino in Proteus:

LDR sensor with Arduino simulation in proteus


We have used the A0 pin or pin 0 which is one of the six analog pin in Arduino UNO. This is essentially the same as reading a potentiometer connected to the A0 pin which was shown in How to read analog signal into Arduino.

As you can also see we have connected a virtual terminal to the UART port of Arduino. This is to read what Arduino is actually reading at pin A0. By clicking on the up and down button in the LDR we can simulate the increase of light falling onto the LDR and thereby we will see changes in the values read by Arduino(microcontroller). These values gets displayed on the virtual terminal.

Video demonstration

See the following video demonstration of LDR sensor with Arduino simulation in proteus.


See also reading analog signal using Arduino Video demonstration.

No Comment to " LDR sensor with Arduino simulation in proteus "