Arduino Light Sensor: Learn to Setup a Photoresistor (LDR)
In this video, I set up an Arduino light sensor circuit and go through the code to make it come alive. A photoresistor or LDR is extremely handy if you need to do a project that can detect changes in light.
Full Tutorial: https://pimylifeup.com/arduino-light-sensor/
The parts you will need are basic and come in most electronics' starter kits, so you’ll likely already have them.
The equipment that I used is listed below. We may earn an affiliate commission if you buy through our links.
Arduino Uno: https://amzn.to/4bQkFyM
Breadboard: https://amzn.to/4bLzVwX
Breadboard wire: https://amzn.to/44SJhVq
100-ohm resistor: https://amzn.to/3VaYMos
LEDs: https://amzn.to/3KdsEKI
LDR: https://amzn.to/3yxCPHr
If you have never heard of a photoresistor or light-dependent resistor, it is a small part that changes its resistance depending on how much light is on it. For example, if it is dark, the part will have a very high resistance, typically up to about 10 megohms. It has a very low resistance of only a few hundred ohms in the light.
The code is straightforward to follow. We get the value from the light sensor input and then compare it to a static value. You will likely need to update these static values depending on the environment.
I hope you set up this Arduino light sensor without any problems.
Видео Arduino Light Sensor: Learn to Setup a Photoresistor (LDR) канала Pi My Life Up
Full Tutorial: https://pimylifeup.com/arduino-light-sensor/
The parts you will need are basic and come in most electronics' starter kits, so you’ll likely already have them.
The equipment that I used is listed below. We may earn an affiliate commission if you buy through our links.
Arduino Uno: https://amzn.to/4bQkFyM
Breadboard: https://amzn.to/4bLzVwX
Breadboard wire: https://amzn.to/44SJhVq
100-ohm resistor: https://amzn.to/3VaYMos
LEDs: https://amzn.to/3KdsEKI
LDR: https://amzn.to/3yxCPHr
If you have never heard of a photoresistor or light-dependent resistor, it is a small part that changes its resistance depending on how much light is on it. For example, if it is dark, the part will have a very high resistance, typically up to about 10 megohms. It has a very low resistance of only a few hundred ohms in the light.
The code is straightforward to follow. We get the value from the light sensor input and then compare it to a static value. You will likely need to update these static values depending on the environment.
I hope you set up this Arduino light sensor without any problems.
Видео Arduino Light Sensor: Learn to Setup a Photoresistor (LDR) канала Pi My Life Up
Комментарии отсутствуют
Информация о видео
13 января 2025 г. 8:09:22
00:04:44
Другие видео канала