Тёмный

How to use LDR Light Sensor module to Turn ON and OFF AC bulb automatically withe Arduino 

Robojax
Подписаться 110 тыс.
Просмотров 57 тыс.
50% 1

Опубликовано:

 

17 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 80   
@hestonhoyle4857
@hestonhoyle4857 3 года назад
The code uses pin 9 not pin 10 like the video shows, make sure you have it in the right slot so the relay switch works.
@athulcastro1190
@athulcastro1190 2 года назад
Explained very well bro, keep it up 💯💯💯
@lintanglyn264
@lintanglyn264 3 месяца назад
this works perfectly, thank youu!!
@manuindia5792
@manuindia5792 4 года назад
Excellent video and very useful....thank you very much sir for making amazing videos.Thanks for you gratitude...😊
@robojax
@robojax 4 года назад
You are welcome. I am glad you found it useful. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@phenomenal0ne10
@phenomenal0ne10 2 года назад
Hii ! Just to clarify, really need ur help? For my project, I'm not using ac bulb but i'm using Led strip WS2812B for smart aquarium (fish tank) as in i want it when turn on, its dark and when turn off, it's not dark. so can this code and wiring works for my led strip ? and also what are the changes of code?
@robojax
@robojax 2 года назад
Hi, yes Thai code will work. Relay is just a switch to turn on or off something
@TunesYouLike
@TunesYouLike 2 года назад
Sir in this experienment does relay is also to any ac power supply??
@robojax
@robojax 2 года назад
Relay is a mechanical switch . It works for anything if you respect the power earring. Here see what is inside relay ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-N-fFk51Eb8s.html
@nihalj3645
@nihalj3645 4 года назад
Can we connect photosensitive module and relay module without arduino,if yes which pin of photosensitive module should be connected to relay module in.AO or DO pin?
@robojax
@robojax 4 года назад
Hi, Yes you can. Depending on the relay module types, you may get reverse effect. when you want to turn ON it may be OFF and when you want it OFF, it might be ON. But there is no timer control. if you want to turn ON or OFF for certain time, then you may use one of the timer modules here ru-vid.comsearch?query=timer
@satishjain6113
@satishjain6113 4 года назад
Hi sir plz help me for this I want to make a project on dc motor. I want that if i puch 1 time push button then motor will run for 5 sec. And every time i push button then moror will run for 5 sec. How i do this I have relay module aurdino uno and dc motor with push button. Plz send me a programming for this and circuit diagram also. Plz plz plz🙏🙏🙏
@robojax
@robojax 4 года назад
Hi, is is related to his project? here are my videos on motorru-vid.comsearch?query=motor and push button ru-vid.comsearch?query=push_button
@JAKOB1977
@JAKOB1977 2 года назад
Can I use this light sensor to measure light frequency with an oscilloscope.? is it just supply 5v power and gnd, but which pins of the 4 shall I use for the scopes black and red crocodile clip if I wanna get feedback from the sensor to see the frequency of a screen refresh rate.? I would reckon that light-sensor would be able to registrate fast light pulses, and give that waveform on the scopes, but how to hook it up?
@robojax
@robojax 2 года назад
this has LDR or light dependent resistor. it is very slow like 5 Hz or 5 times a second if light turns ON or OFF. you can't use it.
@lokaveer1415
@lokaveer1415 3 года назад
Hey ! This was a very informative video ! Thanks a lot ! I had a question, if we set digital as true to adjust sensitivity using potentiometer, then do we need to connect the Analog out from the LDR to arduino ? Because I have a LDR module with only DO, hence I wanted clarification whether we can only connect to DO, set digital as true and control sensitivity with potentiometer, without any change in the advanced code. Keep up the good job :)
@robojax
@robojax 3 года назад
Hi , it seems you may have missed or skipped the video. you are getting the opposite. please watch. Digital means ON or OFF. there is not in between values to adjust.
@lokaveer1415
@lokaveer1415 3 года назад
@@robojax Yes, I get that, but my doubt is whether the connection with AO is necessary for the advanced part with digital set as true and sensitivity is with potentiometer. Basically can the advanced code be run on arduino nano without connecting AO and setting digital as true
@ayyxn_awxsome4770
@ayyxn_awxsome4770 2 года назад
Do we need to have Arduino for both types of code
@robojax
@robojax 2 года назад
If you don’t need delay, then you don’t need Arduino
@paras6270
@paras6270 4 года назад
can we dim the light or increase brightness to maintain certain light percentage?
@robojax
@robojax 4 года назад
when you use relay, it is just a switch. either ON or OFF. here is dimmer video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zJQf6bNodhE.html
@guhasri6620
@guhasri6620 11 месяцев назад
hello can i know where do AO and DO pin IN THE LIGHT SENSOR connected to? plzz urgent
@robojax
@robojax 11 месяцев назад
waht the video. I have shown it. I have mentioned in the code as well.
@andolis49
@andolis49 4 года назад
Hi Robojax! I want to use you cod to control a motor for 3 seconds when it's dark (evening) and the same thing when is light, in the morning for 3 seconds (same command). Can you help me with cod? I'm not beginner but is the first project with Arduino. Thanks!
@robojax
@robojax 4 года назад
Hi, you are asking something that needs a separate project. perhaps you start from here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Mbb2xa1WcRM.html
@arielgomez7832
@arielgomez7832 6 лет назад
Thanks, very clear and useful your explanation
@robojax
@robojax 6 лет назад
you are welcome.
@bapimandal7407
@bapimandal7407 5 лет назад
Can the same program dumped into the nodemcu,and will it work???
@robojax
@robojax 4 года назад
Hi, yes it will work
@MobileFusion-ki8cs
@MobileFusion-ki8cs 4 месяца назад
thank you brother love you
@hasnamanahai442
@hasnamanahai442 5 лет назад
sir iwant to use as soler tracker but it wil on when dark i wat to know if it is on sun than it work how can be it possible simple i want soler tracker circuit plz
@robojax
@robojax 5 лет назад
Solar tracker from the name we know it should track the sun. It needs a little work. Not that simple. It needs motor, actuator, controllers and light sensors with code. I have it on my "to do" list. But don't know when. Thanks Ahmad from Canada.
@hasnamanahai442
@hasnamanahai442 5 лет назад
@@robojax thanks
@omprakashtambi6502
@omprakashtambi6502 5 лет назад
U said to use the 5volt pin in both ldr and relay... Can u clear this?? (Urgent) Could u please give the schematic diagram??
@robojax
@robojax 5 лет назад
Connect them to 5V. if your arduino doesn't have 2 tV, then create additional 5V. Watch this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Vmrmp7reHOY.html no schematic. I have explained wring. If you need it then draw it.
@shannehh9313
@shannehh9313 4 года назад
the wire that u fixed is not that clear in this video can u explain me that which colour and put where???
@robojax
@robojax 4 года назад
I just played the video . Please watch 1:56 where I have explained the light sensor and you know what each pin is going. At 3:20 Relay is explained. You can click on the time 1:56 to jump directly.
@robojax
@robojax 4 года назад
I spent time to watch the video and replied. this is not nice to NOT relay. if someone takes time to do something for you, at least just acknowledge it.
@creativetimepass4266
@creativetimepass4266 5 лет назад
Can't we use only the sensor module with the ldr for automatic street light system????
@robojax
@robojax 5 лет назад
Yes you can. Use the code from the current video which has the module and use this (new) video to read the LDR value ru-vid.com
@BinuMadhav.NetWork
@BinuMadhav.NetWork 5 лет назад
Use this instead: Blackt Electrotech BT31P2 230Volt Auto Day/Night on and off Photocell LDR Sensor Water Proof Olive Wood Lighting Switch (White) www.amazon.in/dp/B01KMAQLB4/ref=cm_sw_r_cp_apa_i_-StwDbZJ23TDR
@jhkiom
@jhkiom 4 года назад
Robojax p
@dracorequin872
@dracorequin872 5 лет назад
Thank you, I'm going to use a motor instead of the light but I'm sure it's going to work with your system. Good video
@robojax
@robojax 5 лет назад
Yes it should work. just turn ON or OFF. No speed control.
@peterjones3879
@peterjones3879 4 года назад
What about motor direction? Can it go clockwise when its light and anticlockwise when it's dark?
@dracorequin872
@dracorequin872 4 года назад
@@peterjones3879 Yeah it can. You just have to change the direction of the current. In my case, I use the motor head of a drill. For the time now I just use a clock set for an entire year. It's pretty reliable.
@GaryMcKinnonUFO
@GaryMcKinnonUFO 5 лет назад
Thanks Ahmad, very helpful.
@robojax
@robojax 5 лет назад
You are welcome Gary. I am glad you found it helpful.
@kaliboeshoots
@kaliboeshoots 3 года назад
my serial monitor is empty, I set it to 9600 like explained in the video, what am I doing wrong here?
@robojax
@robojax 3 года назад
You gotta take my free Arduino course. Here is the lesson serial monitor video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-WyWRGoACWFs.html
@drewlawrence8488
@drewlawrence8488 6 лет назад
Awesome thank you. Very good Do you have this for digispark
@robojax
@robojax 6 лет назад
You are welcome. I haven't worked with Digispark but it should work with any microcontroller.
@carpenterfamily6198
@carpenterfamily6198 6 лет назад
This is very interesting, but could be done with a much simpler circuit.
@robojax
@robojax 6 лет назад
You are right but this makes it tidy for learners.
@brightideas5782
@brightideas5782 3 года назад
Awesome thank you
@bundat267
@bundat267 4 года назад
How would you make it so when its exposed to light it turns on? Thanks
@robojax
@robojax 4 года назад
I believe that is what I've shown in this tutorial. if you want to reverse the behavior, just change HIGH to LOW and LOW to HIGH in code where it says digitalWrite(....
@freddyremenado1038
@freddyremenado1038 4 года назад
Thank you ❤️❤️❤️
@robojax
@robojax 3 года назад
You are so welcome
@user-bq3yd6vi7h
@user-bq3yd6vi7h 6 лет назад
Thanks man, you always save me
@robojax
@robojax 6 лет назад
You are welcome.
@AGUMEGIDEON
@AGUMEGIDEON 3 месяца назад
Very interesting video,can I have a code for this project
@robojax
@robojax 3 месяца назад
Link in description
@davvoprod.851
@davvoprod.851 3 года назад
Hey bro. Can I get the fritzing scheme or any jpg scheme image?
@robojax
@robojax 3 года назад
You don’t need it. This is for learning. First hardware is fully explained and when later I mention the pin name you would know it. So if you watch it full, you don’t need diagram.
@jesusesrael10
@jesusesrael10 3 года назад
May I have the specs of this and all I need ldr and the relay
@robojax
@robojax 3 года назад
Hello, if you search for "Arduino Light sensor" you will get very high quality resolution image where you can see all components. just go to google image search .
@ramadanmohamed2040
@ramadanmohamed2040 5 лет назад
what is trade name for light sensor and how much ?
@robojax
@robojax 5 лет назад
As the name says "light sensor" and may be add "for Arduino" and you can get it from Amazon or eBay.
@JimProng
@JimProng 5 лет назад
Good Stuff!
@robojax
@robojax 5 лет назад
Thank you.
@Acorama
@Acorama 6 лет назад
very good
@robojax
@robojax 6 лет назад
Thank you.
@anthonyinabo2382
@anthonyinabo2382 4 года назад
Good
@robojax
@robojax 4 года назад
Thanks.
@dovahkiindragonborn3950
@dovahkiindragonborn3950 5 лет назад
No timestamps. WHY!!
@robojax
@robojax 5 лет назад
Your serial monitor is not set to 9600 baud. It is the right lower corner of Serial monitor.
@syedmuhammadwasihasan1335
@syedmuhammadwasihasan1335 6 лет назад
Diagram?
@robojax
@robojax 6 лет назад
www.emartee.com/Images/websites/emartee.com/LightSensorSchematic.png
Далее
Sensors - which one to use
17:06
Просмотров 1,4 млн
Million jamoasi - Amerikaga sayohat
12:37
Просмотров 514 тыс.
Making oddly satisfying LED magnet tiles
11:04
Просмотров 247 тыс.