How to make an automatic light control system

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • How to make an automatic light control system
    In this video i made an automatic light control system using an ultrasonic sensor tried to make this circuit as easy as it can be you can turn on and off any electronic device with this circuit e.g. lamp, motor, led, lights, TV, electric door etc the relay board i used in this video is self made video link to that relay is • how to make relay board
    Components:
    1- 1x Arduino Uno board
    2- 1x Relay board
    3- 1x HC-SR04 Ultrasonic Sensor
    4- 1x 12V DC Supply ( 12V DC Adapter)
    5- 1x 100 Watt AC Lamp
    6- some jumper wires
    Arduino Code:
    drive.google.c...
    circut diagram:
    drive.google.c...
    Previous videos
    • How to Connect LED Lig...
    • HOW TO CHARGE YOUR PHO...
    • Schottky diode & Zener...
    • SIMPLEST DIODE AND TRA...
    • HOW TO MAKE AN AUTO TU...
    • HOW TO MAKE LED BLINKI...
    • HOW TO MAKE BATTERY LE...
    • TYPES OF SOLAR SYSTEM
    • HOW SOLAR SYSTEM WORKS
    • how to make relay board

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

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

    Very nice video 👍🏻👍🏻👍🏻

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

    The code given is missing headers file (.h) so it is not working , please help me with this

  • @pengubahrasa625
    @pengubahrasa625 4 года назад

    Good project sir. Thankyou. Is it possible to change ultrasonic sensor with pir sensor?

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

    how to keep the light ON until the next sensing

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

    Can I have the access to code and circuits

  • @beduduruSurekha
    @beduduruSurekha 5 лет назад

    Hello sir
    Can we use mobile charger(5V) in place of adapter .and also can we place led light in place of bulb will there be any change in the code due to this??

  • @Mukesh-vo2yr
    @Mukesh-vo2yr 4 года назад

    Very nice

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

    Can you please anybody help me in searching for a device/circuit for some special work. Actually, I need a device that would gradually increase (for 2 hours) the voltage upto peak and then would gradually decrease (for 2 hours) the voltage up to dim/off. The device needs to be connected with four 15 watt/25-watt warm white bulbs.

  • @DanishKhan-up3dn
    @DanishKhan-up3dn 7 лет назад +1

    Nice sir 😚

  • @sriramyasimhadri6319
    @sriramyasimhadri6319 7 лет назад +1

    Can we use the same code for pir sensor?

  • @harispm2877
    @harispm2877 5 лет назад

    Hey brw
    Can it use to control ac bulb and dc bulb at the same time. ......
    Plz reply.....

    • @harispm2877
      @harispm2877 5 лет назад

      I want use led strip light and sg90 servo motor at same time can you help me to do that please give me explained . How i can use ardunio nano to buil that i told plz reply fast.....

  • @RevLikeHell
    @RevLikeHell 5 лет назад +3

    Good one except the BGM, got headache bro really. Select nice music not this irritated one.

    • @KiyanisLab
      @KiyanisLab  5 лет назад +1

      sorry for that bro i'll take care next time

  • @tiashah4836
    @tiashah4836 5 лет назад

    What type of relay board have you used? And where did you connect the 12 v supply?

    • @virtuary
      @virtuary 5 лет назад +1

      most likely to the socket connector jack, if you pause or watch it a couple of times, you can see that the dc jack is just like any other- just that it is that piece only instead of being inside of some electronic device like a laptop or something

  • @furqanali9967
    @furqanali9967 6 лет назад

    Sir ya caramad ha profacionl life me sensor see jub object wapas huta ga to light kitni dar bad off ho gi

  • @afaqtech1509
    @afaqtech1509 7 лет назад

    Kamal hai sir

  • @alston9127
    @alston9127 5 лет назад

    Thanks bai

  • @lokergames7058
    @lokergames7058 2 месяца назад

    Flying fish level

  • @lazydriver7109
    @lazydriver7109 6 лет назад +1

    what is the specification for relay board??

    • @lazydriver7109
      @lazydriver7109 6 лет назад

      can we use that without a relay board as I m using a dc battery??

  • @AbdurRahman-vj6hq
    @AbdurRahman-vj6hq 6 лет назад

    bulb will always on until people are out from the room??

  • @natthichapankaew8950
    @natthichapankaew8950 6 лет назад

    I'm looking for the arduino code in the clip is not clear, can you print it?

  • @lingeshkumar7163
    @lingeshkumar7163 6 лет назад +1

    Sir give the connection of relay board with separate circuit diagram

  • @swapnilbhore7874
    @swapnilbhore7874 5 лет назад +1

    What is the total costing of this product

  • @vaishnavipatalay5053
    @vaishnavipatalay5053 5 лет назад

    Sir can I get code explanation.and what is ping in the code given

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

    Can i have the access

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

      drive.google.com/file/d/0B-Qp2vfvQRGZZWxBTnRuNXBJU1E/view?usp=sharing&resourcekey=0-rJn6CPThW0CdadxPt84pQQ

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

    can i have the access?

  • @alichauhdary136
    @alichauhdary136 7 лет назад

    can u share its programming

  • @SHUBHAMYADAV-gw7bw
    @SHUBHAMYADAV-gw7bw 5 лет назад

    Bana kar kaha milega aur kitne me

  • @prasannshirname4116
    @prasannshirname4116 4 года назад +1

    plz give ckt diagram and background sound plz off

  • @ashishs147
    @ashishs147 6 лет назад

    Total cost??!

  • @superchannellalgar7446
    @superchannellalgar7446 6 лет назад

    Arduino ke bagair nahi hai sensor kaam kar sakta switching on

  • @bilalkhan-ce6xu
    @bilalkhan-ce6xu 6 лет назад

    Bro want the circuit diagram of relay circuit

  • @santoshbommanale9855
    @santoshbommanale9855 5 лет назад

    Hi Bhai I need Ur help

  • @darbarvalik8209
    @darbarvalik8209 4 года назад

    Bro it is telling that code error

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

    Not showing the code

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

      const int trigPin = 9; // Trig pin of ultrasonic sensor
      const int echoPin = 10; // Echo pin of ultrasonic sensor
      const int ledPin = 13; // LED pin
      void setup() {
      pinMode(trigPin, OUTPUT);
      pinMode(echoPin, INPUT);
      pinMode(ledPin, OUTPUT);
      Serial.begin(9600);
      }
      void loop() {
      long duration, distance;
      digitalWrite(trigPin, LOW);
      delayMicroseconds(2);
      digitalWrite(trigPin, HIGH);
      delayMicroseconds(10);
      digitalWrite(trigPin, LOW);
      duration = pulseIn(echoPin, HIGH);
      distance = duration * 0.034 / 2;
      Serial.print("Distance: ");
      Serial.println(distance);
      if (distance < 30) { // Change this distance threshold as needed
      digitalWrite(ledPin, HIGH); // Turn on the LED
      } else {
      digitalWrite(ledPin, LOW); // Turn off the LED
      }
      delay(500);
      }

  • @furqanali9967
    @furqanali9967 6 лет назад

    And tell me coding sir?

  • @polynoteshub
    @polynoteshub 7 лет назад

    Hey....nice job brother..good video..watch my videos..I hope u like it

  • @santoshbommanale9855
    @santoshbommanale9855 5 лет назад

    Plz can u reply urgently plz plz

    • @KiyanisLab
      @KiyanisLab  5 лет назад

      ye bro tell me

    • @santoshbommanale9855
      @santoshbommanale9855 5 лет назад

      @@KiyanisLab Bhai the code u have given in description is not opening in mobile.and also is it necessary to install ping file also? Can u plz share me the code of the project and all connections ( proper circuit diagram). Plz I request u.if u agree I will give my mail id

  • @suneetmakkar7324
    @suneetmakkar7324 4 года назад

    copy righted

  • @thunyaluxchantaworn7695
    @thunyaluxchantaworn7695 6 лет назад

    Can you make an automaic light control symtem with PIR?

    • @Seesidegamer
      @Seesidegamer 6 лет назад

      @@KiyanisLab oh, good. I wait you. When you upload?

  • @sriramyasimhadri6319
    @sriramyasimhadri6319 7 лет назад

    Can we use the same code for pir sensor?

    • @sriramyasimhadri6319
      @sriramyasimhadri6319 7 лет назад +1

      Kiyani's Lab why it's different? I mean there are same pins like ground, vcc, in