LDR circuit setup
To set up a light dependent resistor (LDR) circuit, we'll need:
LDR
An LDR is also called a photocell or photoresistor. It is special type of resistor. Its resistance decreases as it is exposed to light. The higher the light exposure, the lower the resistance. In a dark room, it has highest resistance. This property comes from physical characteristics of semiconductors used inside. LDR does not belong to a specific company. There is no official datasheet either. You can refer to this webpage for more information about LDR: https://learn.adafruit.com/photocells
Male-to-male jumper wires
We need jumper wires to connect BeagleBone and components through a breadboard
Half-size breadboard
A breadboard is needed to create solderless circuit
10KΩ resistor
A resistor is needed to create a voltage divider circuit
Power off the board and attach components to BeagleBone as shown in the following diagram:
Circuit analysis
The resultant circuit schematic looks like this:
This circuit...