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

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 24

  • @sahugaming7432
    @sahugaming7432 8 месяцев назад +1

    Plz give me code

    • @hashincludeelectronics
      @hashincludeelectronics  8 месяцев назад

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

  • @oyeniyiojo3523
    @oyeniyiojo3523 2 года назад +1

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

    • @hashincludeelectronics
      @hashincludeelectronics  2 года назад

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

  • @chaylee4764
    @chaylee4764 2 года назад +2

    can i have the codes on this project bro?

  • @VirginiaZaki
    @VirginiaZaki Год назад +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?

  • @Divyash19
    @Divyash19 3 года назад +1

    Do you live out ? of india? ?

  • @Roshni-aBrightnessinLife
    @Roshni-aBrightnessinLife 3 года назад +1

    Very well explained 👏👏👍

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

  • @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);
    }
    }

  • @prabhatverma7538
    @prabhatverma7538 3 года назад +1

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

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