Тёмный

LED Control with LDR (Photoresistor) and Arduino 

Maker 101
Подписаться 165 тыс.
Просмотров 424 тыс.
50% 1

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.cc/editor/mert...
Social Media:
/ mertarduino
/ mertarduino

Наука

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

 

13 ноя 2016

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 227   
@maker101io
@maker101io 3 года назад
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
@chrisjude9933
@chrisjude9933 2 года назад
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.
@edisonanthony1098
@edisonanthony1098 2 года назад
@Chris Jude Instablaster ;)
@chrisjude9933
@chrisjude9933 2 года назад
@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.
@chrisjude9933
@chrisjude9933 2 года назад
@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 !
@edisonanthony1098
@edisonanthony1098 2 года назад
@Chris Jude happy to help :D
@dmatter1423
@dmatter1423 Год назад
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!!
@anatoos240
@anatoos240 4 года назад
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.
@Leonb66
@Leonb66 2 года назад
had to adjust my ldr status to
@soteropolitano3413
@soteropolitano3413 2 года назад
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.
@KD9Sa
@KD9Sa 2 года назад
The instructions and steps are organized and clear. The video quality is perfect. Thanks very much for sharing your knowledge with us.
@ochijunior1252
@ochijunior1252 Год назад
The best ldr tutorial that will ever be
@_atomic3187
@_atomic3187 4 года назад
You are my hero, i can sleep this night, ty bro
@vuk_ustipak
@vuk_ustipak 3 года назад
You can now sleep you dont have an led shining in ur eye
@fadhilhashim
@fadhilhashim 5 лет назад
The code is so simple. That is help me to understand how it work!
@reefmaster
@reefmaster 5 лет назад
clear guide on writing code. Comments in code section helped a lot.
@ameshisithumini6170
@ameshisithumini6170 5 лет назад
this video was really helpful!!!!
@anbolaq447
@anbolaq447 4 года назад
Would you mind explaining why we have to use 10k ohm resister with the LDR.
@CrazyCoupleDIY
@CrazyCoupleDIY 6 лет назад
Thanks mate, really helpful
@lassekluth8279
@lassekluth8279 4 года назад
thank you, thats the solution for my projeckt
@yogabayuangganapratama6558
@yogabayuangganapratama6558 5 лет назад
nice video. thanks for the tutorial
@awinoebbie701
@awinoebbie701 3 года назад
thanks for this it worked like a charm
@tangopies
@tangopies 6 лет назад
Good tutorial and I find this music very enjoyable :-)
@UserUSER-rx8hu
@UserUSER-rx8hu 6 лет назад
Thank you for sharing ;0) i got it working. I ❤ you.
@uliseslazaro1766
@uliseslazaro1766 5 лет назад
Hi, why do we need the 10k resistor?
@JelleRuben
@JelleRuben 6 лет назад
Realy I love your video's.
@ravenborda6712
@ravenborda6712 6 лет назад
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
@achrafmixmix
@achrafmixmix 7 лет назад
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 .. ?
@Bianchi77
@Bianchi77 2 года назад
Creative video, thanks for sharing :)
@greenchilley5616
@greenchilley5616 4 года назад
Hi, is it possible to dim an RBG LED with a photoresistor on Arduino? thanks
@yujinbeats9229
@yujinbeats9229 5 лет назад
it's the best video thank you so much
@didemeczanesi6312
@didemeczanesi6312 6 лет назад
Ithınk You are the best youtuber
@kautron
@kautron 5 лет назад
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.
@user-fu4fv5jq9j
@user-fu4fv5jq9j Год назад
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
@dipl.-psych.alfonskaseberg1768
@dipl.-psych.alfonskaseberg1768 3 года назад
Awesome, it worked!!! If i could understand what I'm writing down, that would be awesome. :D
@arbaaz07
@arbaaz07 3 года назад
What do I add to the code if I want it to blink while not being covered?
@kohchajie9701
@kohchajie9701 4 года назад
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.
@JohnnyFaber
@JohnnyFaber Год назад
Ohm's law. The resistor for the led controls the current and is there to kerp the led operating within it's operational parameters.
@Jevinrandhawa
@Jevinrandhawa 7 лет назад
I have an ldr sensor board, can I still do this?
@CarlosGonzalez-id2wv
@CarlosGonzalez-id2wv 5 лет назад
thanks so much dude
@mirosorduno1796
@mirosorduno1796 7 лет назад
Does it also works if I use an Arduino Leonardo instead of Arduino UNO?
@MiRRoR220
@MiRRoR220 4 года назад
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?
@rmznkay
@rmznkay 6 лет назад
Hocam ben şerit led i naısl bu sistemde kullanabilirim
@sindykartikarahayu4151
@sindykartikarahayu4151 3 года назад
its work ! Thanks
@rodalynpenaranda9539
@rodalynpenaranda9539 7 лет назад
Hi. What if I attach about 8 LEDs? I don't know how to program it anymore. Can you help me with it?
@user-hn7mw2zk1m
@user-hn7mw2zk1m 8 месяцев назад
THANKS A LOT
@rahimahjofferi3560
@rahimahjofferi3560 6 лет назад
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!
@gtarpclips-cortes
@gtarpclips-cortes 4 года назад
how can I do to turn on more led's?
@xPureStreakz
@xPureStreakz 6 лет назад
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?
@paulraymond1804
@paulraymond1804 5 лет назад
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.
@guneshgupta
@guneshgupta 5 лет назад
Which video making software do you use
@paraskhosla9622
@paraskhosla9622 3 года назад
how to fade rgb led with ldr not on and off just fade?
@akay1737
@akay1737 2 года назад
çok başarılı ve açıklayıcı
@tylerarnold7526
@tylerarnold7526 5 лет назад
Helped me in my college engineering course!!! Thank you
@nirajtech8129
@nirajtech8129 6 лет назад
Thanks!
@UcanKanatsizPenguen
@UcanKanatsizPenguen 4 года назад
will it explode if a use 330 r instead?
@samtharachan6796
@samtharachan6796 4 года назад
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
@youssefkhaled6598
@youssefkhaled6598 5 лет назад
can it work with switch case
@mohamedjohjah663
@mohamedjohjah663 5 лет назад
Thanks it's work
@mithilsalunkhe3469
@mithilsalunkhe3469 5 лет назад
thanks for that
@molandap3041
@molandap3041 2 года назад
why we use 10k resistor on ldr?
@dilawarali5390
@dilawarali5390 4 года назад
LDRStatus is the voltage or resistance of LDR?? kindly help me
@alicecoen5552
@alicecoen5552 6 лет назад
thanks!
@abhineetsharan4892
@abhineetsharan4892 6 лет назад
Thanx Thanx a lot.
@hasrettv6904
@hasrettv6904 5 лет назад
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
@Aliraja911
@Aliraja911 7 месяцев назад
BEST VIDEO👍👍👍
@sddd553
@sddd553 6 лет назад
Nice video sir
@mustafaglnr8780
@mustafaglnr8780 6 лет назад
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.
@karthiuthay2607
@karthiuthay2607 9 месяцев назад
this is the right way to make LDR photoresistors.
@prashantgunjal5566
@prashantgunjal5566 4 года назад
bro u hve very cool videos suoerb videos just make yourself audible to make it extra cool
@wellnessstudioevexia
@wellnessstudioevexia 7 лет назад
you are awesome.can you connect the led strip with this method?
@hyuwooshinely4541
@hyuwooshinely4541 6 лет назад
any one can answer me? may LED still working even though its not dark
@yourmumisacrumpet4882
@yourmumisacrumpet4882 3 года назад
thank you
@PayToWin0
@PayToWin0 5 лет назад
It worked!!!
@nirosh_an
@nirosh_an 4 года назад
thankss bro
@rakhusial3124
@rakhusial3124 2 года назад
Sir I am big fan of all of your projects kindly make GPS land leveling with arduino...
@LudiqGamingBG
@LudiqGamingBG 4 года назад
Good job bro, thank you so much for thi tutorial
@antoinesfeir4769
@antoinesfeir4769 Год назад
My LDR status just keeps returning 0. Would be from my wiring?
@basiliosaucedo2513
@basiliosaucedo2513 5 лет назад
Tienes la simulación en proteus, o la placas?
@raviarora4749
@raviarora4749 6 лет назад
you are so good
@AbhaySingh-wi3op
@AbhaySingh-wi3op 5 лет назад
Can we put 100 k resister
@danielmusyoki6736
@danielmusyoki6736 9 месяцев назад
good video be blessed
@RohitKumar-iu3cd
@RohitKumar-iu3cd 5 лет назад
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
@JaNaMSoNi
@JaNaMSoNi 7 лет назад
really super
@vnctv6810
@vnctv6810 3 года назад
did anyone tried to combine this with solar tracker?
@user-ye3nq1bv2h
@user-ye3nq1bv2h 5 лет назад
1:27 the resistor is between the lrd and the wires and in 3:58 the resistor is after the ldr. Why?
@fernandoicatalan
@fernandoicatalan 7 лет назад
you are BACÁN! thanks!
@ManharArt
@ManharArt 6 лет назад
Please give circuit diagram
@mastramdhiman4462
@mastramdhiman4462 6 лет назад
can you upload the programing
@PriyankaMC-cn7vp
@PriyankaMC-cn7vp 11 месяцев назад
For this how to connect PIR sensor
@kavi2790
@kavi2790 5 лет назад
thanks
@oleksiylevenets8957
@oleksiylevenets8957 6 лет назад
а як зробити коли світло - показує зеленим, а коли темно - червоним?
@michellemurray3245
@michellemurray3245 6 лет назад
We tried and the LED did not light up but gave the line Serial.println. Then I changed the ldr status to 1023 and the LED stayed on. Any thoughts as to why?
@rebalfaisal6359
@rebalfaisal6359 2 года назад
Same question of serial.println
@wilbertortilla9233
@wilbertortilla9233 6 лет назад
why my led is always on even it its not dark? answer m pls
@tryhardsomethingelse2658
@tryhardsomethingelse2658 6 лет назад
wilbert ortilla try changing from 300 to 100.Mine worked.
@anasaffection300
@anasaffection300 6 лет назад
increase the analog Voltage in code. it is
@user-eg5ff9vh6d
@user-eg5ff9vh6d 5 лет назад
Otg
@adarshsrungarapu7777
@adarshsrungarapu7777 4 года назад
@@tryhardsomethingelse2658 mine is not glowing darker even i changed 300 to 100
@padmanabhanrajesh2366
@padmanabhanrajesh2366 6 лет назад
Superb bro,works pretty well.
@MAMPIism
@MAMPIism 5 лет назад
Can we use 470 ohm and 1k ohm resistor instead of the ones mentioned??
@gurindersinghmann6241
@gurindersinghmann6241 5 лет назад
in my case it is on all time help
@enrichidalgojimenez2533
@enrichidalgojimenez2533 6 лет назад
it works, thank you very much
@swarajprojects78
@swarajprojects78 6 лет назад
what is LDR
@benninhofooty
@benninhofooty 5 месяцев назад
Nice
@yuyu5442
@yuyu5442 3 года назад
Thxx
@gabrieloentoro3802
@gabrieloentoro3802 7 лет назад
I'm new to arduino. Does analogRead(ldrPin) read the voltage or the current?
@hesamakbari4314
@hesamakbari4314 5 лет назад
analog pins divide 5 into 1024. and according to the input voltage ,it shows you some results(numbers).
@SengerMF
@SengerMF 7 лет назад
And to use 2 LEDs? Each one with its sensor? How would the scheme look? Thank you very much in advance!
@cinhuu
@cinhuu 7 лет назад
And to turn off LED when it's dark and turn on when have light, what i need to do?
@TH-ds1kk
@TH-ds1kk 4 года назад
Very good
@evandro4410
@evandro4410 6 лет назад
very good
@gulsunyazsoydan4372
@gulsunyazsoydan4372 Год назад
awesıne!!!!
@smoothy2736
@smoothy2736 5 лет назад
My led got very dim ...plz help
@kvlpnd
@kvlpnd 7 лет назад
Nice.
@MAMPIism
@MAMPIism 5 лет назад
Can we use 470 and 1k ohm resistors instead of the ones mentioned
@GinnHardcore
@GinnHardcore 5 лет назад
Yea sure why not
@djmcg83
@djmcg83 3 года назад
Could You add schematic of connections.
Далее
Build a simple 3D dog robot and control it
7:26
Просмотров 89 тыс.
Make an Arduino Project that Speaks / Reacts
5:24
Просмотров 600 тыс.
Electronic Basics #6: Standalone Arduino Circuit
4:21
Просмотров 533 тыс.
When you have 32GB RAM in your PC
0:12
Просмотров 2,5 млн
Так ли Хорош Founders Edition RTX 4080 ?
13:00
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 4,1 млн