i am planning on using a light sensor with some pir motion sensors so they light up the stairs when someone walks in when it's dark. i am also thinking on making the light led strips on every step and it lights up with cool motion, like it when someone comes from downstairs it lights up from down to the top or if the someone comes from the top it lights from the top to the bottom.
Connection with a laptop/PC is necessary only while coding right? I want to use light sensors outside, far from any connectivity, to measure direct sunlight (lux>32,000) Is it possible to set up the light sensor system with a battery for power and a memory device to store lux data? Also, once maximum luminosity is exceeded, will I keep receiving the maximum measurement or will it crash or something? Thank you.
Yes they give u a batter that has 3 Aa batteries roque Dd and two wires red and black so with that battery they give u a big battery thing which has 2 pins on top and u can connect that to get power or if h don’t have that battery use the big battery thing with that 3 Aa Bettie’s inside connect the red wire into the left and black to right if that doesn’t work try switching g the wires black right and red left and connect that round port to the port on aurdino And it shall work u don’t need a memory card it already knows but don’t press the reset button and if h do u have to redo the code again NOTE: aurdino isn’t water proof so if it’s raining u might want to clean it up fast cuz if water goes in the ports pin holes it will not work
So I recently bought a tiny Christmas tree for my room that came pre lit and wanted to add a light sensor to it. How would I go about this? The lights simply plug into an outlet in the wall and turn on I was thinking maybe adding an arduino somewhere in the mix I just don’t know exactly where to begin and what the code would look like?
Wait, why not make a common cathode connection for 3 LEDs and put a single resistor between cathode node and gnd? That simplifies the circuit and you need just a single resistor for LEDs.
we are taking the voltage across the resistor connected to the ground, now this voltage is dependent on the resistance of the photoresistor by V = (Vin*R)/(R+PR)
1:44 - I do not understand the purpose of the 220 ohm resistor. I thought the photoresistor was acting as the resistor here? All I know is that's called a voltage divider and I cannot find ANYONE who can explain it where this beginner can understand it. Why can't you just push the 5V through one side of the photoresistor and measure the analog voltage coming out the other side of the resistor? 5V in will never exceed 5V out, so no damage to the ADR. I don't get it.
we are measuring the voltage across the 220 ohm resistor rather than the photoresistor because if we use the photoresistor alone then despite the resistance (which varies with light) the voltage measured across the photoresistor will be 5v (only current varies) , so we build a voltage divider and Vout=(Vin * R)/(R+P) now as P varies vout varies and we get analog values, by connecting a POT instead of 220ohm we can vary the sensitivity.
Thanks, it worked for me. I used standard light sensor with 1K ohm resistor and 220 ohms resistors with LEDs.
Nice video. Please add schematic diagram so beginners like me can easily follow. Thank you. 👍🏼
i am planning on using a light sensor with some pir motion sensors so they light up the stairs when someone walks in when it's dark. i am also thinking on making the light led strips on every step and it lights up with cool motion, like it when someone comes from downstairs it lights up from down to the top or if the someone comes from the top it lights from the top to the bottom.
Very helpful, thanks a lot gentlemen, and upload more about electronic.
nigga u just arduinoed my heckin life up
Great video. Could you please not use music with the video or maybe turn the music down lower. subbing
agreed haha
Connection with a laptop/PC is necessary only while coding right?
I want to use light sensors outside, far from any connectivity, to measure direct sunlight (lux>32,000)
Is it possible to set up the light sensor system with a battery for power and a memory device to store lux data?
Also, once maximum luminosity is exceeded, will I keep receiving the maximum measurement or will it crash or something?
Thank you.
Yes they give u a batter that has 3 Aa batteries roque Dd and two wires red and black so with that battery they give u a big battery thing which has 2 pins on top and u can connect that to get power or if h don’t have that battery use the big battery thing with that 3 Aa Bettie’s inside connect the red wire into the left and black to right if that doesn’t work try switching g the wires black right and red left and connect that round port to the port on aurdino
And it shall work u don’t need a memory card it already knows but don’t press the reset button and if h do u have to redo the code again
NOTE: aurdino isn’t water proof so if it’s raining u might want to clean it up fast cuz if water goes in the ports pin holes it will not work
Hello!
can you tell me why we use Analog value "50"??
Could u give a solution for the deadly shooting in sandy hook, stoneman Douglas high school, etc using arduino?
So I recently bought a tiny Christmas tree for my room that came pre lit and wanted to add a light sensor to it. How would I go about this? The lights simply plug into an outlet in the wall and turn on I was thinking maybe adding an arduino somewhere in the mix I just don’t know exactly where to begin and what the code would look like?
in the part where it says else{ it tells me to add "if" at the start
if i wanted to code two of these light sensors on one board how could i duplicate this code
Schematic would be easier...Good Video...
Is there any project which can sense both motion and light
This video would be so much better if you included diagrams, besides, great work.
Creative video, thanks for sharing :)
Keep making Videos!
Thank you mate
got 'greenLedPin was not declared in this scope'?
Thanks works great
Thanks a lot
good job mate
Wait, why not make a common cathode connection for 3 LEDs and put a single resistor between cathode node and gnd? That simplifies the circuit and you need just a single resistor for LEDs.
As long as only one LED is on at a time, my (very limited) understanding is this would work just fine.
Thankyou.
Can you try slowing down your naration and take a breath now and again, would sound a bit more human rather than robotic
slow the speed of your video if you can't understand him
i think i blew the photoresistor, i used it with a 100 ohm resistor, so yeah, i blew it, it stays on red forever :(
Hey, I'm just confused about one thing. Why are we adding a resistor in series with the photoresistor? What's the purpose of this?
The aim is to limit the current flowing through the photoresistor in order to avoid an overload.
It is not in series, it goes to the ground wire. It's a voltage divider.
we are taking the voltage across the resistor connected to the ground, now this voltage is dependent on the resistance of the photoresistor by V = (Vin*R)/(R+PR)
why in your program you wrote:
if (analogValue
Would a 270E resistor work properly for the photo resistor אמיתי עמר
Didn't work for me... I'm a beginner anyways, so I'm sure I'll get better!
which logic gates can i use in this circuit?
but the circuit will function just properly without declaring all of those variables ,we only need one to read the signal from the sensor, :)
1:44 - I do not understand the purpose of the 220 ohm resistor. I thought the photoresistor was acting as the resistor here? All I know is that's called a voltage divider and I cannot find ANYONE who can explain it where this beginner can understand it. Why can't you just push the 5V through one side of the photoresistor and measure the analog voltage coming out the other side of the resistor? 5V in will never exceed 5V out, so no damage to the ADR. I don't get it.
the resistor is to extend result width of the photoresistor in arduino
we are measuring the voltage across the 220 ohm resistor rather than the photoresistor because if we use the photoresistor alone then despite the resistance (which varies with light) the voltage measured across the photoresistor will be 5v (only current varies) , so we build a voltage divider and Vout=(Vin * R)/(R+P) now as P varies vout varies and we get analog values, by connecting a POT instead of 220ohm we can vary the sensitivity.
Looking forward to view your project of opening a chicken door in the morning using a photocell and motor
only 2 leds :
nice
Can someone help me with this ?
Yes, just tell me your problem.
Yes, tell us the problem
voice boy!
smell
chiii
can someone translate this to English please?
What is that supposed to mean? What language are you speaking right now? Pretty sure it's the same as he's speaking. ;)