LED Control with LDR (Photoresistor) and Arduino

Ғылым және технология

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

Пікірлер: 227

  • @maker101io
    @maker101io3 жыл бұрын

    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

  • @anatoos240
    @anatoos2404 жыл бұрын

    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

  • @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!!

  • @soteropolitano3413
    @soteropolitano34132 жыл бұрын

    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
    @KD9Sa2 жыл бұрын

    The instructions and steps are organized and clear. The video quality is perfect. Thanks very much for sharing your knowledge with us.

  • @reefmaster
    @reefmaster5 жыл бұрын

    clear guide on writing code. Comments in code section helped a lot.

  • @ochijunior1252
    @ochijunior1252 Жыл бұрын

    The best ldr tutorial that will ever be

  • @fadhilhashim
    @fadhilhashim5 жыл бұрын

    The code is so simple. That is help me to understand how it work!

  • @_atomic3187
    @_atomic31874 жыл бұрын

    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

  • @lassekluth8279
    @lassekluth82794 жыл бұрын

    thank you, thats the solution for my projeckt

  • @ameshisithumini6170
    @ameshisithumini61705 жыл бұрын

    this video was really helpful!!!!

  • @CrazyCoupleDIY
    @CrazyCoupleDIY6 жыл бұрын

    Thanks mate, really helpful

  • @awinoebbie701
    @awinoebbie7013 жыл бұрын

    thanks for this it worked like a charm

  • @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

  • @UserUSER-rx8hu
    @UserUSER-rx8hu6 жыл бұрын

    Thank you for sharing ;0) i got it working. I ❤ you.

  • @tangopies
    @tangopies6 жыл бұрын

    Good tutorial and I find this music very enjoyable :-)

  • @yogabayuangganapratama6558
    @yogabayuangganapratama65585 жыл бұрын

    nice video. thanks for the tutorial

  • @JelleRuben
    @JelleRuben6 жыл бұрын

    Realy I love your video's.

  • @Bianchi77
    @Bianchi772 жыл бұрын

    Creative video, thanks for sharing :)

  • @anbolaq447
    @anbolaq4474 жыл бұрын

    Would you mind explaining why we have to use 10k ohm resister with the LDR.

  • @didemeczanesi6312
    @didemeczanesi63126 жыл бұрын

    Ithınk You are the best youtuber

  • @yujinbeats9229
    @yujinbeats92295 жыл бұрын

    it's the best video thank you so much

  • @dipl.-psych.alfonskaseberg1768
    @dipl.-psych.alfonskaseberg17683 жыл бұрын

    Awesome, it worked!!! If i could understand what I'm writing down, that would be awesome. :D

  • @tylerarnold7526
    @tylerarnold75265 жыл бұрын

    Helped me in my college engineering course!!! Thank you

  • @sindykartikarahayu4151
    @sindykartikarahayu41513 жыл бұрын

    its work ! Thanks

  • @karthiuthay2607
    @karthiuthay26079 ай бұрын

    this is the right way to make LDR photoresistors.

  • @user-hn7mw2zk1m
    @user-hn7mw2zk1m8 ай бұрын

    THANKS A LOT

  • @CarlosGonzalez-id2wv
    @CarlosGonzalez-id2wv5 жыл бұрын

    thanks so much dude

  • @Aliraja911
    @Aliraja9117 ай бұрын

    BEST VIDEO👍👍👍

  • @akay1737
    @akay17372 жыл бұрын

    çok başarılı ve açıklayıcı

  • @PayToWin0
    @PayToWin05 жыл бұрын

    It worked!!!

  • @nirajtech8129
    @nirajtech81296 жыл бұрын

    Thanks!

  • @rahimahjofferi3560
    @rahimahjofferi35606 жыл бұрын

    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!

  • @rakhusial3124
    @rakhusial31242 жыл бұрын

    Sir I am big fan of all of your projects kindly make GPS land leveling with arduino...

  • @kautron
    @kautron5 жыл бұрын

    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.

  • @uliseslazaro1766
    @uliseslazaro17665 жыл бұрын

    Hi, why do we need the 10k resistor?

  • @ravenborda6712
    @ravenborda67126 жыл бұрын

    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

  • @mohamedjohjah663
    @mohamedjohjah6635 жыл бұрын

    Thanks it's work

  • @sddd553
    @sddd5536 жыл бұрын

    Nice video sir

  • @mithilsalunkhe3469
    @mithilsalunkhe34695 жыл бұрын

    thanks for that

  • @alicecoen5552
    @alicecoen55526 жыл бұрын

    thanks!

  • @wellnessstudioevexia
    @wellnessstudioevexia7 жыл бұрын

    you are awesome.can you connect the led strip with this method?

  • @greenchilley5616
    @greenchilley56164 жыл бұрын

    Hi, is it possible to dim an RBG LED with a photoresistor on Arduino? thanks

  • @achrafmixmix
    @achrafmixmix7 жыл бұрын

    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 .. ?

  • @JaNaMSoNi
    @JaNaMSoNi7 жыл бұрын

    really super

  • @abhineetsharan4892
    @abhineetsharan48926 жыл бұрын

    Thanx Thanx a lot.

  • @fernandoicatalan
    @fernandoicatalan7 жыл бұрын

    you are BACÁN! thanks!

  • @raviarora4749
    @raviarora47496 жыл бұрын

    you are so good

  • @danielmusyoki6736
    @danielmusyoki67369 ай бұрын

    good video be blessed

  • @yourmumisacrumpet4882
    @yourmumisacrumpet48823 жыл бұрын

    thank you

  • @padmanabhanrajesh2366
    @padmanabhanrajesh23666 жыл бұрын

    Superb bro,works pretty well.

  • @MAMPIism

    @MAMPIism

    5 жыл бұрын

    Can we use 470 ohm and 1k ohm resistor instead of the ones mentioned??

  • @kohchajie9701
    @kohchajie97014 жыл бұрын

    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.

  • @prashantgunjal5566
    @prashantgunjal55664 жыл бұрын

    bro u hve very cool videos suoerb videos just make yourself audible to make it extra cool

  • @mirosorduno1796
    @mirosorduno17967 жыл бұрын

    Does it also works if I use an Arduino Leonardo instead of Arduino UNO?

  • @arbaaz07
    @arbaaz073 жыл бұрын

    What do I add to the code if I want it to blink while not being covered?

  • @LudiqGamingBG
    @LudiqGamingBG4 жыл бұрын

    Good job bro, thank you so much for thi tutorial

  • @xPureStreakz
    @xPureStreakz6 жыл бұрын

    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.

  • @nirosh_an
    @nirosh_an4 жыл бұрын

    thankss bro

  • @Prompt24
    @Prompt247 жыл бұрын

    Please provide schematic in Fritzing, it would be so nice.

  • @benninhofooty
    @benninhofooty5 ай бұрын

    Nice

  • @TH-ds1kk
    @TH-ds1kk4 жыл бұрын

    Very good

  • @yuyu5442
    @yuyu54423 жыл бұрын

    Thxx

  • @mitsuhatohrusoma5360
    @mitsuhatohrusoma53607 жыл бұрын

    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.

  • @kavi2790
    @kavi27905 жыл бұрын

    thanks

  • @rodalynpenaranda9539
    @rodalynpenaranda95397 жыл бұрын

    Hi. What if I attach about 8 LEDs? I don't know how to program it anymore. Can you help me with it?

  • @guneshgupta
    @guneshgupta5 жыл бұрын

    Which video making software do you use

  • @evandro4410
    @evandro44106 жыл бұрын

    very good

  • @gulsunyazsoydan4372
    @gulsunyazsoydan4372 Жыл бұрын

    awesıne!!!!

  • @Jevinrandhawa
    @Jevinrandhawa7 жыл бұрын

    I have an ldr sensor board, can I still do this?

  • @mustafaglnr8780
    @mustafaglnr87806 жыл бұрын

    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.

  • @samtharachan6796
    @samtharachan67964 жыл бұрын

    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

  • @enrichidalgojimenez2533
    @enrichidalgojimenez25336 жыл бұрын

    it works, thank you very much

  • @kvlpnd
    @kvlpnd7 жыл бұрын

    Nice.

  • @gtarpclips-cortes
    @gtarpclips-cortes4 жыл бұрын

    how can I do to turn on more led's?

  • @ManharArt
    @ManharArt6 жыл бұрын

    Please give circuit diagram

  • @MiRRoR220
    @MiRRoR2204 жыл бұрын

    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?

  • @dilawarali5390
    @dilawarali53904 жыл бұрын

    LDRStatus is the voltage or resistance of LDR?? kindly help me

  • @UcanKanatsizPenguen
    @UcanKanatsizPenguen4 жыл бұрын

    will it explode if a use 330 r instead?

  • @youssefkhaled6598
    @youssefkhaled65985 жыл бұрын

    can it work with switch case

  • @hasrettv6904
    @hasrettv69045 жыл бұрын

    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

  • @dhyanasaiyelamanchili4495
    @dhyanasaiyelamanchili44955 жыл бұрын

    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?

  • @GinnHardcore

    @GinnHardcore

    5 жыл бұрын

    Lol switch the of statement

  • @Deb22
    @Deb225 жыл бұрын

    i think you should add buzzer to it

  • @SengerMF
    @SengerMF7 жыл бұрын

    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?

  • @nosoychiefkeef3141
    @nosoychiefkeef31416 жыл бұрын

    Sorry, what does ldrstatus

  • @vedsingsarve512
    @vedsingsarve5126 жыл бұрын

    nice bms

  • @paraskhosla9622
    @paraskhosla96223 жыл бұрын

    how to fade rgb led with ldr not on and off just fade?

  • @user-ye3nq1bv2h
    @user-ye3nq1bv2h5 жыл бұрын

    1:27 the resistor is between the lrd and the wires and in 3:58 the resistor is after the ldr. Why?

  • @AbhaySingh-wi3op
    @AbhaySingh-wi3op5 жыл бұрын

    Can we put 100 k resister

  • @RohitKumar-iu3cd
    @RohitKumar-iu3cd5 жыл бұрын

    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

  • @swarajprojects78
    @swarajprojects786 жыл бұрын

    what is LDR

  • @hyuwooshinely4541
    @hyuwooshinely45416 жыл бұрын

    any one can answer me? may LED still working even though its not dark

  • @muatazmahmoud660
    @muatazmahmoud6607 жыл бұрын

    eyvallah abi

  • @molandap3041
    @molandap30412 жыл бұрын

    why we use 10k resistor on ldr?

  • @muhammadkhairulikhwanbinsu8223
    @muhammadkhairulikhwanbinsu82233 жыл бұрын

    tq

  • @djmcg83
    @djmcg833 жыл бұрын

    Could You add schematic of connections.

  • @asmamansouri2860
    @asmamansouri28603 жыл бұрын

    great

  • @mastramdhiman4462
    @mastramdhiman44626 жыл бұрын

    can you upload the programing

  • @basiliosaucedo2513
    @basiliosaucedo25135 жыл бұрын

    Tienes la simulación en proteus, o la placas?

  • @wilbertortilla9233
    @wilbertortilla92336 жыл бұрын

    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

  • @PriyankaMC-cn7vp
    @PriyankaMC-cn7vp11 ай бұрын

    For this how to connect PIR sensor

Келесі