How to use LDR Sensor with Arduino | Make Automatic street light 💡

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ค. 2024
  • In this video we are going to use LDR (Light Dependent Resistor) Sensor with Arduino so that we can detect intensity of light.
    Based on this we can turn on/off bulb automatically if surrounding is dark or bright.
    We will see how we can automatically turn on street light in the night.
    I have explained in details each step along with code and connections.
    👉Please subscribe: th-cam.com/users/hashinclude...
    👉Components list :
    ✅ Arduino Uno amzn.to/3tjKRMR
    ✅ LDR Sensor Module
    ✅ 5V Relay amzn.to/3pWsr2u
    ✅ AC socket and plug
    ✅ 7-12 V DC battery
    ✅ Breadboard
    ✅ Jumper wires
    👉 Shorts Channel :
    / ujwalnandanwar
    👉Code and diagram:
    github.com/un0038998/lessons/...
    👉Rain Sensor:
    • How to use Rain Sensor...
    👉Sound Sensor:
    • How to use Sound Senso...
    👉Watch more videos:
    / hashincludeelectronics
    👉Follow us on Instagram:
    / hashincludeelectronics
    #ldrsensor #hashincludeelectronics #arduino
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 24

  • @prabhatverma7538
    @prabhatverma7538 2 ปีที่แล้ว +1

    Awesome... This is useful... Thanks 👍

  • @Roshni-aBrightnessinLife
    @Roshni-aBrightnessinLife 2 ปีที่แล้ว +1

    Very well explained 👏👏👍

  • @oyeniyiojo3523
    @oyeniyiojo3523 ปีที่แล้ว +1

    What of if I want I use a 40W bulb and solar panel?

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      That’s a nice idea . However I have not used solar panel yet . You can try and let us know 👍🏻

  • @abusufian2434
    @abusufian2434 ปีที่แล้ว

    Can we adjust(high,medium,low) the brightness of AC bulb automatically with the outside brightness??

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      We can but not in this project . In that case you will need dimmer module . Also the LDR sensor should have the analog output .

    • @abusufian2434
      @abusufian2434 ปีที่แล้ว

      @@hashincludeelectronics Can you please help me in anyway to make this project?? I am trying a lot to find a project like this but have not found any on internet.
      i have found some where they use potentiometer. But that was not automatic.

  • @radiamoon2395
    @radiamoon2395 2 ปีที่แล้ว +1

    hi, first thank you so much for sharing this tuturial, i have an issue with my light sensor, i'm trying to make it print if its HIGH then its the night, if LOW than its the morning but it keeps sending me 0 value
    this is my code, can you please help me:
    #define LDR 2
    void setup() {
    Serial.begin(9600);
    pinMode(LDR,INPUT);
    }
    void loop() {
    int mia=digitalRead(LDR);
    Serial.println(mia);
    delay(1000);
    if (mia==HIGH){
    Serial.println("NIGHT");
    delay(1000);
    }
    else{
    Serial.println("MORNING");
    delay(1000);
    }
    }

  • @user-cl7no1dj3m
    @user-cl7no1dj3m ปีที่แล้ว +1

    I do not understand how do we connect the AC plug does not automatically light up when plugged. how do I prevent it from doing that?

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      Please check the video slowly and carefully for any missing step 👍🏻

  • @Divyash19
    @Divyash19 2 ปีที่แล้ว +1

    Do you live out ? of india? ?

  • @chaylee4764
    @chaylee4764 2 ปีที่แล้ว +2

    can i have the codes on this project bro?

  • @alfegallardo8924
    @alfegallardo8924 ปีที่แล้ว +1

    Why need battery?

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      It’s needed to provide power supply to Arduino. You can use ac dc adapter as well

  • @sahugaming7432
    @sahugaming7432 4 หลายเดือนก่อน +1

    Plz give me code

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      Code and diagram link is provided in the description of the video 👏🏻👍🏻