If you are not familiar with PlatformIO then please read this PlatformIO Tutorial for Arduino Development where I detailed how to get started with development using the PlatformIO IDE extension Schematic/Wiring Diagram – ESP32 with LDR/Photoresistor If you are in Windows and have not yet installed Visual Studio Code then you can check my post about how to Install Visual Studio Code or VSCode in Windows. I used Visual Studio Code with the PlatformIO extension installed in developing this project. Connecting wires – Amazon | AliExpress | Bangoodĭisclosure: These are affiliate links and I will earn small commissions to support my site when you buy through these links.Breadboard – Amazon | AliExpress | Bangood.ESP32 module (I used 38Pin NodeMCU ESP32S board here) – Amazon | AliExpress | Bangood.LDR or Photoresistor – Amazon | AliExpress.The followings are the components or parts required to follow along with this post. The majority of the popular microcontrollers have pins that have a built-in ADC so reading this component does not need to be complicated. The output of an LDR or a photoresistor is an analog signal and for MicroController to understand its value then an Analog to Digital Converter (ADC) is needed. These components are widely available and are easy to use in microcontroller projects. ![]() The number of electrons is few but when the semiconductor materials receive light photons then it triggers the electrons to break free causing conductivity. ![]() Semiconductors tend to exhibit high resistance by default. ![]() Semiconductor materials that have high light sensitivity properties are used in creating this component. If you need to detect the presence (or absence) of light then use LDR or Photoresistors (or PhotoCells) in your projects The intensity of light causes the resistance to vary which could be from zero to mega ohms in values. Control LED with LDR value at Arduino Nano V3 How does LDR or Photoresistor work?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |