Here the 5V pin from an Arduino Uno is connected to an LDR, while the other leg is connected to A0 and a ~50 ohm resistor. How to Connect an LDR Sensor to ArduinoĪrduino boards and the like can’t sense resistance directly, so you’ll need to set up a voltage divider (as shown in the above image). They are almost exactly what they sound like: two-terminal devices that resist the flow of electrical current in a circuit, with decreasing resistance based on the amount of light received. Photoresistors, also known as light-dependent resistors or LDRs, are components that change their resistance to electricity based on the amount of light they receive. Of course, what’s presented here is only the tip of the iceberg, and these concepts could be applied to a wide variety of embedded systems. I'll outline a couple options here in the context of Arduino usage. If you want to actually measure light intensity, there are a number of ways to do so.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |