Это видео недоступно.
Сожалеем об этом.
LED Control with LDR (Photoresistor) and Arduino
HTML-код
- Опубликовано: 13 ноя 2016
- This is basic arduino tutorial; turn on LED when it's dark and turn off when is light.
Required Hardware :
Arduino Board: amzn.to/2LZr6t4
LED: amzn.to/3qxSs8O
LDR (Photoresistor): amzn.to/3unEzwm
220 and 10K Resistors: amzn.to/3bj2HY9 & amzn.to/3jXMJXs
Jumper Wires: amzn.to/3doetmT
Breadboard: amzn.to/3qxLxwm
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Source Code: create.arduino...
Social Media:
/ mertarduino
/ mertarduino
Source Code: create.arduino.cc/editor/mertarduinotech/40f2d22f-7853-4882-b2a9-1b6d43ac81b0/preview
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Sorry to be off topic but does any of you know a method to get back into an Instagram account?
I was dumb forgot my password. I love any tips you can offer me.
@Chris Jude Instablaster ;)
@Edison Anthony i really appreciate your reply. I found the site through google and I'm in the hacking process atm.
Seems to take a while so I will reply here later when my account password hopefully is recovered.
@Edison Anthony it worked and I now got access to my account again. Im so happy:D
Thank you so much you saved my account !
@Chris Jude happy to help :D
For those like me who have had trouble making this work, this might be because your LDR is calibrated differently from the one in the video. To fix this issue, try replacing the "300" with other values until it works.
had to adjust my ldr status to
I've been doing a project in design school that needs this exact circuit and I haven't been able to figure it out! Thank you so much!!
The instructions and steps are organized and clear.
The video quality is perfect.
Thanks very much for sharing your knowledge with us.
Muito show... Explicou em 4 minutos um conteúdo grande com riqueza de detalhes...
O Brasil estaria em outro nível se a maioria dos professores tivessem esse dom na didática.
Great video, if your light sensor is still not working. Try changing your ‘ if ‘ statement. As 300 is working here it doesn’t always work for everyone. Mine was 5
The best ldr tutorial that will ever be
You are my hero, i can sleep this night, ty bro
You can now sleep you dont have an led shining in ur eye
Would you mind explaining why we have to use 10k ohm resister with the LDR.
clear guide on writing code. Comments in code section helped a lot.
thank you, thats the solution for my projeckt
this is the right way to make LDR photoresistors.
The code is so simple. That is help me to understand how it work!
Hi, why do we need the 10k resistor?
Sir I am big fan of all of your projects kindly make GPS land leveling with arduino...
Ithınk You are the best youtuber
Helped me in my college engineering course!!! Thank you
source code=
//set pin numbers
//const won't change
const int ledPin = 13; //the number of the LED pin
const int ldrPin = A0; //the number of the LDR pin
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT); //initialize the LED pin as an output
pinMode(ldrPin, INPUT); //initialize the LDR pin as an input
}
void loop() {
int ldrStatus = analogRead(ldrPin); //read the status of the LDR value
//check if the LDR status is
Thanks
nice video. thanks for the tutorial
thanks for this it worked like a charm
this video was really helpful!!!!
bro u hve very cool videos suoerb videos just make yourself audible to make it extra cool
Good tutorial and I find this music very enjoyable :-)
BEST VIDEO👍👍👍
hello, i have a question regarding the resistance value.
why 10kohm and 220ohm is chosen instead of others value?
is there a reason for these? if yes, are they any formula to prove so?
looking forward for your reply.
Ohm's law. The resistor for the led controls the current and is there to kerp the led operating within it's operational parameters.
Thanks mate, really helpful
Realy I love your video's.
Please give circuit diagram
why my led is always on even it its not dark? answer m pls
wilbert ortilla try changing from 300 to 100.Mine worked.
increase the analog Voltage in code. it is
Otg
@@tryhardsomethingelse2658 mine is not glowing darker even i changed 300 to 100
THANKS A LOT
Thank you for sharing ;0) i got it working. I ❤ you.
Thank you very much for this project. Could you put a video that when the ldr does not detect light, and the sound detection detects sound, then the led lights up. But if the ldr detects light,
and the sound detection sensor detects sound, then the led does not light up.
Creative video, thanks for sharing :)
Awesome, it worked!!!
If i could understand what I'm writing down, that would be awesome. :D
How can i combine this with a button? i already have an if function but when the button is pressed then the ldr does not work... thanks
For this how to connect PIR sensor
My LDR status just keeps returning 0. Would be from my wiring?
Attach wires to short legs!
I followed your exact sketch and cross checked the connections. I can't find out the problem. When I check the serial monitor, all I see are senseless symbols. Please help
it's the best video thank you so much
Its a great and helpful tutorial, thank you! but what if I want to add 13 more 4.5 lumens of LEDs to the construction to make it brighter? Do you mind helping me how the construction is going to be like? For eg. how many more resistors do I need to add and what are the values for each resistor? Your help and response would be more appreciated!
I have watched EVERY SINGLE photoresistor & arduino video on RUclips up through the first 30 results. Not only have I not found a SINGLE video that explains the need for the fixed resistor (what they are calling a "voltage divider," but at least one person in every video asks that question in the comments section and never gets an answer. I am extremely frustrated because I cannot find this information ANYWHERE. Why can't you just connect one leg of the photoresistor to +5V and the other leg to A0 and measure the output voltage (and therefore light level) directly?
dude resistors don't change voltage, they change the current and with the fact that LDR is a resistor, you can't do that. that is why you will need a voltage divider circuit
I made a video on this. you can go and check it and please subscribe
@@hesamakbari4314 can you please share a link
@@aditydud yes sure
@@aditydud but unfortunately I deleted the video but I'm going to repost it in 2 days
my ldr have black lines but all the world have ldr with red lines
Hi. What if I attach about 8 LEDs? I don't know how to program it anymore. Can you help me with it?
you are awesome.can you connect the led strip with this method?
Why did you choose 300 for working rate of LDR?
Tell some info about the working principle on Arduino codes?
why did you plug a cable in A0 pin?
Say sth. about the LDR and Resistor section over board.
What do I add to the code if I want it to blink while not being covered?
good video be blessed
its work ! Thanks
1:27 the resistor is between the lrd and the wires and in 3:58 the resistor is after the ldr. Why?
Can anyone tell my why there has to be a resistor after the photoresistor and the wire to ground? Cant the power just go into analog in?
Hi, is it possible to dim an RBG LED with a photoresistor on Arduino?
thanks
is there any diffrence btw programming an arduino uno & Leronardo !cuz i wanna try the same thing but with the leanardo arduino ! & why do we need an arduino to do this in the first place .. ?
LDRStatus is the voltage or resistance of LDR?? kindly help me
why we use 10k resistor on ldr?
Does it also works if I use an Arduino Leonardo instead of Arduino UNO?
I have copied the whole program carefully but contunuesley error is coming that 'AO was not decleared in this scope' please reply me out and help me
It dosen't work for me
It worked!!!
thanks so much dude
how to fade rgb led with ldr not on and off just fade?
awesıne!!!!
Thanx Thanx a lot.
I wish I was the arduino console you were typing to
agreed!
çok başarılı ve açıklayıcı
I have an ldr sensor board, can I still do this?
how can I do to turn on more led's?
Could You add schematic of connections.
thank you
any one can answer me? may LED still working even though its not dark
will it explode if a use 330 r instead?
my led is always off for some reason. do you know why?
sometimes its Always off but i fixed it by removing all components and reassembling them , then re upload the code
Same but a bit glown
And to use 2 LEDs? Each one with its sensor? How would the scheme look? Thank you very much in advance!
And to turn off LED when it's dark and turn on when have light, what i need to do?
can it work with switch case
Thanks!
Selam hocam elinize sağlık çok güzel ancak birde bunun tersini yapmanız mümkünmü aceba işıgi görünce yanacak karanlıkta sönecek
i think you should add buzzer to it
Thanks it's work
what's the meaning of the 300?
the meaning of the three hundred is the value of light that the LDR needs to turn led on, if u want it to be more sensitive u just decrease the values
How to upload these values on webserver or webpage automatically every 15 or 30 seconds??
Could you please make a video of how to make the LED turn on when there is light and turn it off when the LDR detects darkness?
Lol switch the of statement
Thxx
Please provide schematic in Fritzing, it would be so nice.
Hi. I just found about this amazing video po of yours. Can I ask po why is it 300? The reason I ask is, the first time I run the program using ldr, the monitor prints.. 1023.. what is the difference between putting 300 and 1023 in the condition? sorry for the disturbance sir.
Nice
Can we put 100 k resister
thanks for that
Which video making software do you use
what is LDR
you are BACÁN! thanks!
Superb bro,works pretty well.
Can we use 470 ohm and 1k ohm resistor instead of the ones mentioned??
Nice video sir
Very good
Question: I noticed the rate at which the serial port was displaying the output was pretty quick. Can this rate of reading the LDR values be increased with a higher baud rate?
I don't think so. But why would you want it to display quicker than that? The reading doesn't need to be any where near that fast for a working project anyway.
I will be building this to control the lights around my building every day, and it will read the light levels just once per minute, and only turn the lights on if the light level has been below the threshold for the last five or ten minutes. Likewise with turning the lights off.
you are so good
did anyone tried to combine this with solar tracker?
im using a buzzer instead, as im sooo smart, i thought up of a clever invention, WAKE UP, its time to wake up buzzer alarm
tq
thankss bro
really super