Skip to content

Latest commit

 

History

History

P23_LDR_Photo_Resistor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

LDR (Light Dependent Resistor) - Photo Resistor

The code checks the photoresistor if it returns more than 70 percent darkness, it turns the onboard LED on and prints to the serial port. If your photoresistor comes on PCB you do connect it to the signal port directly if not then you need to use a 4.7K ohm pull-up resistor. The following diagrams show different connections.