Connecting LDR (PhotoResistor) with Arduino

LDR is a resistor which works because of light. Remember that LDR is an analog device.

Mar 13, 2021

6520 views

0 respects

Components and supplies

1

LDR, 5 Mohm

1

Male to male wires

1

Arduino UNO

1

5 mm LED: Red

1

Resistor 220 ohm

1

Resistor 10k ohm

Tools and machines

1

Arduino IDE

Project description

Code

Code to see results and to connect LDR with arduino

c_cpp

This is Arduino code. Upload this code and see results!

Code to see results and to connect LDR with arduino

c_cpp

This is Arduino code. Upload this code and see results!

Downloadable files

LDR with Arduino UNO connection

Connect LDR with arduino with this diagram and also connect a LED with 220Ω to Arduino digital pin number '11' and you can connect buzzer also!

LDR with Arduino UNO connection

Image

Comments

Only logged in users can leave comments

rudraksh2008

0 Followers

0 Projects

0