Arduino Project - Smart Street Lighting Project Using Arduino

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

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

  • @sudeepp8722
    @sudeepp8722 3 года назад +4

    sir i want resistor values?

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

      220 ohm

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

      @@ecit sir near led 220 ohm resisitor but near ldr which resistor is used?

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

      @@sudeepp8722 you can use 1k ohm or any resistor between 1k ohm to 10 k ohm

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

      @@ecit Thank you so much sir.

    • @ecit
      @ecit  3 года назад

      @@sudeepp8722 most welcome

  • @leela5983
    @leela5983 8 месяцев назад +2

    *Sir can i know which software is used to run the code?*

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

      Arduino IDE, you can watch first video of Arduino Project Playlist on my channel

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

      @@ecit thanks for the response.

  • @hetaltailor3886
    @hetaltailor3886 4 года назад +7

    Codeful and Helpful 😀

    • @ecit
      @ecit  4 года назад +2

      Thanks 😄

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

    my LEDS are starting with the ON status...what could be the problem????

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

      Are you testing this in night or in dark environment? Give light on LDR.
      And verify your connection again.

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

      @@ecit yeah i tested during night..i will test during the day..thankyou @hiren

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

      @@simonkioko9384 most welcome and don't forget to subscribe this channel

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

    Can we make this project wireless? By using Bluetooth or WiFi to transmit signal from Arduino to the sensor?

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

      Yes you can, You may use ESP32 or ESP8266 to transmit data using WiFi or BLE.

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

      @@ecit thankyou so much, can you please share the code/ working module if you have any using Bluetooth/WiFi

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

      @@sachinshinde7159 It may take time, I will share the code after 2-3 weeks.

  • @RAKACHOUDHARY_16
    @RAKACHOUDHARY_16 11 месяцев назад +1

    Sir, if we want to use a 9w led bulb then what is the change in circuit???

    • @ecit
      @ecit  11 месяцев назад

      Go through this video ruclips.net/video/F5zoG9IOZNE/видео.htmlsi=YYX9A6DQrCkJ9jN9
      You can merge two projects

  • @manojmanoj1013
    @manojmanoj1013 Год назад +1

    Sir here my output is showing correctly in serial monitor but not correct output
    My problem is both the led are glowing when brightness is less than 100 , what is the problem sir when there is no object near sensor

    • @ecit
      @ecit  Год назад

      You may need to adjust the brightness constant in code ( update LDR value)

  • @dhivyadharshni1314
    @dhivyadharshni1314 14 дней назад

    Sir what is the software that you used for the circuit diagram bcs I need it as the same way pls explain

    • @ecit
      @ecit  13 дней назад

      @@dhivyadharshni1314 you can use following link for circuit diagram design www.circuito.io/

  • @SriJahnaviChinthalapudi-wz8us
    @SriJahnaviChinthalapudi-wz8us Год назад +1

    which port should be selected for compiling the code?

    • @ecit
      @ecit  Год назад

      You need to select Arduino Uno port, you can find from device manager or by removing the USB connector and see which port has removed from the list

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

    Sir, In my case only one IR sensor is working. Can you help me out please?

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

      @ECIT Engineering, yes sir you should help him out

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

      First replace the IR sensor with working IR sensor, and make sure that both IR sensor are working.
      Check the pin number in code and board.
      Make sure wire is okay.

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

      I have other queries as well. Where can I contact you?

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

      @@rollndope5568 hirentailor.rf@gmail.com

  • @mpumelelosibanda5981
    @mpumelelosibanda5981 10 месяцев назад +1

    very helpful, however found a compilation Error on : "LDRValue not declared"

    • @ecit
      @ecit  10 месяцев назад

      int LDRValue;
      Must be declared in your code.

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

    sir can we make it as, if the ldr value is less than 100 then the led will glow but in less and if the object is in front of ir sensor then the led will glow in high brightness for a specific delay

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

      Yes you can, use any pwm pin of Arduino and set threshold as 100 in code
      When ldr is below 100 write pwm value for brightness of led, if it is more than 100 then set high or 255 as pwm value for led pin

  • @PritiMane-ov5pm
    @PritiMane-ov5pm Месяц назад +1

    Can we use only LDR sensors here?

    • @ecit
      @ecit  Месяц назад

      @@PritiMane-ov5pm I have already used LDR for light detection

    • @PritiMane-ov5pm
      @PritiMane-ov5pm Месяц назад +1

      ​@@ecitSir I am doing the same project as I am a diploma student I want the circuit diagram for the project and I am taking reference from your video I just want to use LDR sensors and IR sensors what will be the circuit diagram for that is my question

    • @ecit
      @ecit  Месяц назад

      @@PritiMane-ov5pm circuit diagram link is mentioned in the description alongwith the code

  • @mayankrajpootEE
    @mayankrajpootEE Год назад +1

    sir dark ke condition mai jab light ON hoti hai using ir sensor
    phir jab ir sensor se object remove karte hai toh light off ho jati hai toh mai yeh poochna chahta hu ki jab light off hogi toh ussme delay kese layege matlab jab object remove karte hai toh light off karne mai delay kese layege

    • @mayankrajpootEE
      @mayankrajpootEE Год назад +1

      code mai kya change karege plz btayege

    • @ecit
      @ecit  Год назад

      In code, on line number 41 and 48 there is delay(2000); instead of this you can increase the delay to 5000 ( 5 seconds ) or even higher value

  • @sowjanyalakshmikolasani3204
    @sowjanyalakshmikolasani3204 Год назад +2

    Sir,can we use the same circuit diagram and code for Arduino nano?if not,please share the diagram and code sir.

  • @ece36namanmittal25
    @ece36namanmittal25 Год назад +1

    Very nice explanation sir! Thanks for this video. I want to ask that can we do this using raspberry pi?

    • @ecit
      @ecit  Год назад +1

      Yes you can, you need to write python code for it.

    • @ece36namanmittal25
      @ece36namanmittal25 Год назад +1

      Thanks for replying

  • @dhivyadharshni1314
    @dhivyadharshni1314 13 дней назад +1

    Sir is there any specific wires that we should use pls reply sir I have to submit this project

    • @ecit
      @ecit  10 дней назад

      @@dhivyadharshni1314 There is no specific wire required because here only few mA of current is flowing through the wire.

    • @dhivyadharshni1314
      @dhivyadharshni1314 6 дней назад +1

      Sir my IR sensors are starting with a on condition where the light is keep on glowing in the out pin as well what could be the problem? And also I am using 1k resistor for the ldr sir is it ok? I have the same IR sensors that u have shown in the circuit diagram sir still I didn’t get the output

    • @dhivyadharshni1314
      @dhivyadharshni1314 6 дней назад +1

      Sir pls help me out I have to submit this project tomorrow pls sir even when my IR sensors both are working in on condition the led is not glowing

    • @ecit
      @ecit  6 дней назад

      @@dhivyadharshni1314 you need to vary the resistance with LDR, adjust the value according to light intensity you want to set, log your data on serial port and see if you are getting correct data or not

    • @ecit
      @ecit  6 дней назад

      @@dhivyadharshni1314 are you using same code which I have shared in description link?

  • @miggap
    @miggap Год назад +1

    what is the type of the arduino? is this uno re3 or rev2 ? or what ? pls

    • @ecit
      @ecit  Год назад

      Rev3

    • @miggap
      @miggap Год назад +1

      @@ecit thank you

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

    Thank you for useful video sir 🎉

    • @ecit
      @ecit  3 года назад

      Most welcome

  • @bikkysharma7253
    @bikkysharma7253 Год назад +1

    very helpful video sir ,can u please share the links from where to buy IR sensons ,ARDUINO,LED's,BOARDS 👏👏

    • @ecit
      @ecit  Год назад

      You can buy everything from Amazon or local electronics shop.

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

    How much does it cost? If we add Solar panal and battery for storage?

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

      Around 1000 Rs.

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

      If in this case sir, if we add solar panel and battery, do we still need to include it in the code?

    • @vasanthv4233
      @vasanthv4233 Год назад

      bro did you made this project?

  • @adammuqrish7884
    @adammuqrish7884 Год назад +1

    Hello sir the coding can use 5 sensor?

    • @ecit
      @ecit  Год назад

      You need to modify the code for 5 sensors, you need to add additional pins in the code

  • @SriJahnaviChinthalapudi-wz8us
    @SriJahnaviChinthalapudi-wz8us Год назад +1

    Only 1 blub is working sir, also I have to run code every time I put object

    • @ecit
      @ecit  Год назад

      Verify your connections from circuit diagram, make sure the LEDs are in series

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

    If by adding one more led and one more IR sensor does it works

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

      Yes it will work, but you need to change the code

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

      @@ecit By placing the connections in the code is it right sir

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

      @@vikithayarlagadda8981 yes, you need to connect remaining pins and then also add code for it.

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

      @@ecit thank you sir

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

      @@vikithayarlagadda8981 most welcome

  • @MandipSingh-un4jo
    @MandipSingh-un4jo Год назад +1

    Sir I am trying to upload the code but the code was not uploading... I am trying several time but it was comipled but not upload

    • @ecit
      @ecit  Год назад

      Which error it shows? Make sure that you have selected correct COM port and board before uploading the code

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

    Sir how to keep the object near to IR sensor in tinkercad software

    • @ecit
      @ecit  3 года назад

      I don't know, but I don't think that you need to put an object in software, only you need to change IR sensor value

  • @akayt2608
    @akayt2608 11 месяцев назад +2

    sir my Arduino uno 390 is not functioning in the app

    • @ecit
      @ecit  11 месяцев назад +1

      Which error it shows? Can you share the link of your Arduino board?

    • @akayt2608
      @akayt2608 11 месяцев назад +1

      @@ecit the code is compiling but showing error in saving to Arduino

    • @ecit
      @ecit  11 месяцев назад

      @@akayt2608 may be you have not selected correct COM port for Arduino

    • @akayt2608
      @akayt2608 11 месяцев назад

      @@ecit port's option was not available

    • @ecit
      @ecit  11 месяцев назад

      @@akayt2608 you can verify about the driver, install FTDI drive support.arduino.cc/hc/en-us/articles/4411305694610-Install-or-update-FTDI-drivers

  • @bhavanik188
    @bhavanik188 2 года назад +3

    Sir ,can u pls make prototype(model) for this
    It will be useful for us

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

      What kind of prototype you want?

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

      We have to make automatic street lights project
      So,we have to make a mini street lights

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

      @@bhavanik188 that you can build by yourself

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

      Tq sir

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

      Sir,when we made our prototype
      IR sensor functionality was reversed
      Lights are always ON ,when we keep an object they were OFF

  • @kushalkumaruppada1462
    @kushalkumaruppada1462 Год назад

    Sir u have used three wires to connect ,instead of those we can use jumper wires

  • @SriJahnaviChinthalapudi-wz8us
    @SriJahnaviChinthalapudi-wz8us Год назад +1

    led is how many volts?

    • @ecit
      @ecit  Год назад

      3.3V or 5V

  • @bikkysharma7253
    @bikkysharma7253 Год назад

    and if is there any way to implement all these things without using these physical equipments then please tell sir how to do so.

    • @ecit
      @ecit  Год назад

      You can try proteus software

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

    How to connect wifi module to the setup ?

    • @ecit
      @ecit  3 года назад

      Which module do you want use? You may use ESP 8266 for this.

  • @SriJahnaviChinthalapudi-wz8us
    @SriJahnaviChinthalapudi-wz8us Год назад +1

    where can we we find the inbuilt code?

    • @ecit
      @ecit  Год назад

      I have provided the code link in description

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

    Do they glow automatically at the night time??

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

      Yes, If there is a darkness near the LDR than LED will turn ON based on our threshold value.

  • @ravishetty9430
    @ravishetty9430 Год назад +1

    Can you tell about backend and frontend

    • @ecit
      @ecit  Год назад

      Frontend and backend of this project or in general?

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

    sir can we make this without Arduino?

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

      Do you means without any microcontroller?
      You can use comparator IC and logic gates to implement this without Arduino or Microcontroller

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

      @@ecit i have all the components but i dont hava an Arduino Uno....can i make an direct circuit connecting LDR Led and IR sensor....so that in dark the ldr will pass the electricity to motion sensor..and motion sensor will only pass the electricity when it detects motion ...like this

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

      @@harisbashir7287 yes it is possible but in that is it work like,
      If there is darkness LED will not glow if LDR resistance is high enough,
      And If there is light on LDR, it will reduce the resistance and allows LED to glow, however LED will remain turn ON only during IR sensor remains High.

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

      @@ecit can u like share an circuit diagram plz 🙏

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

      @@harisbashir7287 I think this link will help you, www.engineersgarage.com/making-a-light-detector-using-ldr-circuit-diagram/
      Instead of +9V connect IR Sensor Output and make ground common

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

    Sir reverse operation is taking place

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

      What exactly happening?

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

      @@ecit The lights are on at the beginning and when the obstacle is detected it turns off

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

      @@imagineimaginators518 okay, I will update the code on the github.
      You can check it after 5 hours.

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

      @@ecit Sir please tell me what changes should I make because I have to submit it today

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

      @@imagineimaginators518 okay, I will send you code here..

  • @AnilKumar-mh3hg
    @AnilKumar-mh3hg 8 месяцев назад +1

    can you send the base paper of the project

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

      I don't have any base paper

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

    How to add Solar Panel and battery on it?

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

      Use solar panel to charge the battery and provide power supply to Arduino from the battery.
      You need higher voltage at solar panel (let say 12 v) than battery voltage (5V),
      You may also need charging IC or boost converter to charge the battery.
      I hope this information will help you to get on right path to achieve your goal.

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

      @@ecit where to attach the power in Vin?

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

      @@kingjb9990 yes, you can use Vin and GND

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

      @@ecit sir I have a problem, once the IR sensor detects motion, the lights will off, it works but it reversely operates. Also one thing, the lights lit up automatically and sequentially lits up even no motion detected.

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

      @@kingjb9990 which code have you used? Are simulating this or testing with real hardware?

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

    Superb

    • @ecit
      @ecit  3 года назад

      Thanks 😊

  • @somnathadhav1586
    @somnathadhav1586 3 года назад

    Sir is it program run in tinkercad

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

    Would you provide link for IR sensor

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

      I have used custom board, you can use buy any IR sensor.

  • @vasanthv4233
    @vasanthv4233 Год назад +1

    sir can u help me with the project

    • @ecit
      @ecit  Год назад

      Which problem are you facing?

    • @vasanthv4233
      @vasanthv4233 Год назад +1

      sir which arduino uno model should i buy and what is the price?

    • @ecit
      @ecit  Год назад

      @@vasanthv4233 you need to buy Arduino Uno R3 board. amzn.eu/d/4FqyEYH
      Or
      amzn.eu/d/5eejw8p

    • @vasanthv4233
      @vasanthv4233 Год назад

      Sir I am going to make this project with 6 led lights and also I am going to use solar pannel and recharge the battery and can u suggest me which led light( in Volt) and which amount of rechargable battery should I buy?

    • @ecit
      @ecit  Год назад

      @@vasanthv4233 ruclips.net/video/NLgYfyAp_Rg/видео.htmlsi=_AiH1HsUEkAKfran
      This video will help you to calculate LED resistor, also make sure that you select correct watt of resistor. First go through this, prepare your own component list and I will verify it.

  • @error17.o22
    @error17.o22 2 года назад +1

    Sir my ir sensor is not detecting object but it the led on ir sensor is glowing how to overcome this. The theme of the code is during night times it starts glowing with 20% intensity when an object approaches due to that object and vehicle light due to this light will glow 100% intensity. I wrote the code as
    int led1=5;
    int potpin1=0;
    int val1=0;
    int led2;
    int potpin2=0;
    int val2=0;
    int ir1=A2;
    int ir2=A3;
    int ldr = A0;
    void setup()
    {
    pinMode(led1,OUTPUT);
    pinMode(led2,OUTPUT);
    pinMode(ir1,INPUT);
    pinMode(ir2,INPUT);
    pinMode(ldr,INPUT);
    Serial.begin(9600);
    }
    void loop()
    {
    int ldrValue=analogRead(ldr);
    Serial.print("Sernsor =");
    Serial.print(ldrValue);
    if(ldrValue

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

      mention led2 pin, you have not mentioned in the code

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

    Sir g please help me to make this project

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

      You can ask me your questions here

  • @shaikamrin6497
    @shaikamrin6497 Год назад +1

    Please tell resistors values

    • @shaikamrin6497
      @shaikamrin6497 Год назад

      Sir.

    • @ecit
      @ecit  Год назад

      Resistor with LED is 220 ohm and with LDR you can use 1K to 5K resistor depending upon light intensity you want to set

    • @shaikamrin6497
      @shaikamrin6497 Год назад

      With LED means near the LED

    • @ecit
      @ecit  Год назад

      @@shaikamrin6497 yes resistor connected in series with LED

    • @shaikamrin6497
      @shaikamrin6497 Год назад

      Sir code showing that no upload port provided

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

    it is not working

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

      What kind of issues are you facing?

  • @sowjanyalakshmikolasani3204
    @sowjanyalakshmikolasani3204 Год назад +1

    Sir once please check mail sir

  • @somnathadhav1586
    @somnathadhav1586 3 года назад

    PLZZ tell mee

  • @saimani7297
    @saimani7297 Год назад

    int IR1 = 2;
    int IR2 = 3;
    int LED1 = 5;
    int LED2 = 6;
    int LDR = A3;
    void setup()
    {
    Serial.begin(9600);
    pinMode(LED1, OUTPUT);
    pinMode(LED2, OUTPUT);

    pinMode(IR1, INPUT);
    pinMode(IR2, INPUT);
    pinMode(LDR, INPUT);
    digitalWrite(LED1, LOW);
    digitalWrite(LED2, LOW);
    }
    void loop() {
    int LDRValue = analogRead(LDR);
    Serial.print("sensor = ");
    Serial.print(LDRValue);
    delay (500);
    if (LDRValue > 100)
    {
    digitalWrite(LED1, LOW);
    digitalWrite(LED2, LOW);
    Serial.println("It's Bright Outside; Lights status: OFF");
    }
    if ((LDRValue < 100) && (digitalRead(IR1) == HIGH))
    {
    digitalWrite(LED1, LOW);
    Serial.println("It's Dark Outside; LED1 Lights status: ON");
    }

    if ((LDRValue < 100) && (digitalRead(IR2) == HIGH))
    {
    digitalWrite(LED2, LOW);
    Serial.println("It's Dark Outside; LED2 Lights status: ON");
    }

    if ((LDRValue < 100) && (digitalRead(IR1) == LOW))
    {
    digitalWrite(LED1, HIGH);
    Serial.println("It's Dark Outside; LED1 Lights status: ON");
    }

    if ((LDRValue < 100) && (digitalRead(IR2) == LOW))
    {
    digitalWrite(LED2, HIGH);
    Serial.println("It's Dark Outside; LED2 Lights status: ON");
    }
    }
    this is correct code for this

    • @saimani7297
      @saimani7297 Год назад

      Leave print statements , code is right , use this for that above circuit

  • @kushalkumaruppada1462
    @kushalkumaruppada1462 Год назад +1

    Sir u have used three wires to connect ,instead of those we can use jumper wires

    • @ecit
      @ecit  Год назад

      Are you saying about IR sensor? My IR sensor have 3 pins, output, ground and Vcc. Do you want to say that you want to make common grounds and common Vcc? Then yes we can do that also.

    • @kushalkumaruppada1462
      @kushalkumaruppada1462 Год назад

      After uploading the code in serial monitor it is showing sensor = 0

    • @kushalkumaruppada1462
      @kushalkumaruppada1462 Год назад

      What should I do

    • @kushalkumaruppada1462
      @kushalkumaruppada1462 Год назад

      Sir it's working successfully but after removing the object the light is in still on

    • @ecit
      @ecit  Год назад

      @@kushalkumaruppada1462 you can change the threshold value in the code as per the LDR output