How to Use a Photoresistor (Light Sensor) with Arduino (Lesson #27)

  Рет қаралды 46,801

Science Buddies

Science Buddies

Күн бұрын

Пікірлер: 21
@TateIsaacs
@TateIsaacs 7 ай бұрын
Literally the best videos on Arduino, I always come here first
@rndmplay
@rndmplay Ай бұрын
Finally! after years of searching a fluent english language rushing through my ears! 😭 What a nice surprise!
@MartyHuie
@MartyHuie 7 ай бұрын
Thank you this is very helpful. I'm sending this to someone for. It's over my head. Basically what I am trying to get someone to create it to have a circuit that went so much light is hitting it. The circuit comes on. Definitely need to measure the light. Here is my application. I'm trying to solve and if it exist please point me in that right direction. We're building a home off grid and there are some appliances such as my deep freeze, that does not run all that often and if it is off for one to three days, it would be OK. I'm only wanting it to come on when it is fully sunny outside, so it does not run at night and it does not run on rainy days. There are other devices that I'm wanting to do the same with yet. This is the easiest application to speak to.
@Science.Buddies
@Science.Buddies 7 ай бұрын
Hi - we're a K-12 STEM education nonprofit and can't really help with projects like this, you may want to ask in the official Arduino forums or other electronics communities like Reddit or Stackexchange.
@y-it4207
@y-it4207 3 ай бұрын
Thank you, its about time I find a guy who i can understand😭
@GeorgePantel84
@GeorgePantel84 3 ай бұрын
Hello. I have a similar setup but I have a problem. The photoresistor measures the outside light and when the light level is around the threshold value and the light starts to flicker. The photoresistor values vary over and under the threshold value. I trayed adding a 1 second delay but now the flicker is every second. What should I add to the code so this doesn't happen any more?
@Science.Buddies
@Science.Buddies 3 ай бұрын
Hi - you could try taking an average of the last 10 (or 100, or so on) readings and that will help with the flickering. We don't have our own tutorial on taking an average but you should be able to find examples online and in the built-in example code.
@nevermind-wp3bf
@nevermind-wp3bf Ай бұрын
Well, it's a sensor and as he said in this video this sensor is not that precise. When the light reaches the treshhold, becouse the sensor is not that precise, of course it will register different values and it will flicker. Programming also means that you need to solve a problem. In your case the problem will be how to trick the photoresistor to act more "precise". You can add a function outside the loop function and call it in the loop function which will monitor the treshold. Let's say you monitor 6 values in a row every time and if 2 of them are below the treshold, than set the led LOW. after that set a delay time and call that function again without turning the led ON if you encounter a "hit". This way, you won't notice if the led is flickering anymore
@zain3532
@zain3532 6 ай бұрын
Thanks, I modified the code and wiring a bit to make a nightlught with high light level LEDS when it is dark. Automatically turn off when photo cell detects light.
@yungrut6553
@yungrut6553 5 ай бұрын
The vilos ultimate starter kit has the resistor on the 5 volt (+) side which i also think is not intuitive . Thanks
@nohing2311
@nohing2311 2 ай бұрын
Could you make a video using opt 101? Or refer me to some videos showing its working....i am using it but the value Fluctuates so much i dont know what to do
@Science.Buddies
@Science.Buddies 2 ай бұрын
Hi - we do not have our own tutorial on that or plan to make one anytime soon, but you could try asking on the official Arduino forums for help.
@venikavenkatesan5775
@venikavenkatesan5775 Жыл бұрын
Please do a model for electromeric effect
@user-mw2vq9oj7i
@user-mw2vq9oj7i 8 ай бұрын
Thank you so much. I appreciate u brother
@raihansami1509
@raihansami1509 11 күн бұрын
why isnt it working
@Bl1tz4n
@Bl1tz4n 9 күн бұрын
what is the problem for yours
@raihansami1509
@raihansami1509 9 күн бұрын
It is not Turning on
@williamkakooza4603
@williamkakooza4603 8 ай бұрын
This is great
@معتصممحمد-ظ2ن
@معتصممحمد-ظ2ن 3 ай бұрын
the app name please
@Science.Buddies
@Science.Buddies 3 ай бұрын
the app is called Tinkercad and we have a tutorial for it here: kzbin.info/www/bejne/b4OpkHWQZqiaas0si=V6bJ0g_BvGkCiagS
@aoifish0
@aoifish0 3 ай бұрын
tttttthankyyyyyyou!
RGB LED Color Mixing with Arduino (Lesson #28)
11:03
Science Buddies
Рет қаралды 10 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,4 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Arduino Tutorial 25: Understanding Photoresistors and Photo Detectors
36:19
LDR and LED Circuit design - Solid State Relay
4:18
The Engineering Mindset
Рет қаралды 94 М.
How To Use An LED As a Light Sensor
3:58
quicknuclearscience
Рет қаралды 17 М.
How to Use a TCS3200 Color Sensor with Arduino (Lesson #38)
18:56
Science Buddies
Рет қаралды 11 М.
How to use a BreadBoard - Electronics Basics 10
7:22
Simply Electronics
Рет қаралды 976 М.
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,5 МЛН
How to Use a Breadboard
12:21
Science Buddies
Рет қаралды 3,2 МЛН
How to Power an Arduino Project (Lesson #19)
13:24
Science Buddies
Рет қаралды 114 М.
Arduino Light Sensor Tutorial: Learn to Setup a Photoresistor
5:12
Arduino My Life Up
Рет қаралды 139 М.