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?
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?
Relay is a mechanical switch . It works for anything if you respect the power earring. Here see what is inside relay th-cam.com/video/N-fFk51Eb8s/w-d-xo.html
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🙏🙏🙏
Hi, is is related to his project? here are my videos on motorth-cam.com/users/robojaxTVsearch?query=motor and push button th-cam.com/users/robojaxTVsearch?query=push_button
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?
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 th-cam.com/users/robojaxTVsearch?query=timer
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 :)
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.
@@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
@@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.
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.
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.
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
Connect them to 5V. if your arduino doesn't have 2 tV, then create additional 5V. Watch this video th-cam.com/video/Vmrmp7reHOY/w-d-xo.html no schematic. I have explained wring. If you need it then draw it.
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
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.
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!
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 .
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(....
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.
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.
Explained very well bro, keep it up 💯💯💯
this works perfectly, thank youu!!
Excellent video and very useful....thank you very much sir for making amazing videos.Thanks for you gratitude...😊
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.
thank you brother love you
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?
Hi, yes Thai code will work. Relay is just a switch to turn on or off something
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?
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.
Thanks, very clear and useful your explanation
you are welcome.
can we dim the light or increase brightness to maintain certain light percentage?
when you use relay, it is just a switch. either ON or OFF. here is dimmer video th-cam.com/video/zJQf6bNodhE/w-d-xo.html
Sir in this experienment does relay is also to any ac power supply??
Relay is a mechanical switch . It works for anything if you respect the power earring. Here see what is inside relay th-cam.com/video/N-fFk51Eb8s/w-d-xo.html
Thanks Ahmad, very helpful.
You are welcome Gary. I am glad you found it helpful.
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🙏🙏🙏
Hi, is is related to his project? here are my videos on motorth-cam.com/users/robojaxTVsearch?query=motor and push button th-cam.com/users/robojaxTVsearch?query=push_button
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?
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 th-cam.com/users/robojaxTVsearch?query=timer
Awesome thank you
Thank you ❤️❤️❤️
You are so welcome
hello can i know where do AO and DO pin IN THE LIGHT SENSOR connected to? plzz urgent
waht the video. I have shown it. I have mentioned in the code as well.
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 :)
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.
@@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
Thanks man, you always save me
You are welcome.
This is very interesting, but could be done with a much simpler circuit.
You are right but this makes it tidy for learners.
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
Yes it should work. just turn ON or OFF. No speed control.
What about motor direction? Can it go clockwise when its light and anticlockwise when it's dark?
@@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.
the wire that u fixed is not that clear in this video can u explain me that which colour and put where???
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.
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.
Do we need to have Arduino for both types of code
If you don’t need delay, then you don’t need Arduino
Can the same program dumped into the nodemcu,and will it work???
Hi, yes it will work
Good Stuff!
Thank you.
Can't we use only the sensor module with the ldr for automatic street light system????
Yes you can. Use the code from the current video which has the module and use this (new) video to read the LDR value th-cam.com/users/gkyLnEgu7w0
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
Robojax p
U said to use the 5volt pin in both ldr and relay... Can u clear this?? (Urgent)
Could u please give the schematic diagram??
Connect them to 5V. if your arduino doesn't have 2 tV, then create additional 5V. Watch this video th-cam.com/video/Vmrmp7reHOY/w-d-xo.html
no schematic. I have explained wring. If you need it then draw it.
Awesome thank you. Very good
Do you have this for digispark
You are welcome. I haven't worked with Digispark but it should work with any microcontroller.
Very interesting video,can I have a code for this project
Link in description
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
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.
@@robojax thanks
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!
Hi, you are asking something that needs a separate project. perhaps you start from here th-cam.com/video/Mbb2xa1WcRM/w-d-xo.html
very good
Thank you.
May I have the specs of this and all I need ldr and the relay
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 .
How would you make it so when its exposed to light it turns on? Thanks
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(....
Good
Thanks.
what is trade name for light sensor and how much ?
As the name says "light sensor" and may be add "for Arduino" and you can get it from Amazon or eBay.
Hey bro. Can I get the fritzing scheme or any jpg scheme image?
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.
my serial monitor is empty, I set it to 9600 like explained in the video, what am I doing wrong here?
You gotta take my free Arduino course. Here is the lesson serial monitor video th-cam.com/video/WyWRGoACWFs/w-d-xo.html
Diagram?
www.emartee.com/Images/websites/emartee.com/LightSensorSchematic.png
No timestamps. WHY!!
Your serial monitor is not set to 9600 baud. It is the right lower corner of Serial monitor.