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
Very nice video 👍🏻👍🏻👍🏻
The code given is missing headers file (.h) so it is not working , please help me with this
Good project sir. Thankyou. Is it possible to change ultrasonic sensor with pir sensor?
how to keep the light ON until the next sensing
Can I have the access to code and circuits
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??
Very nice
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.
Nice sir 😚
Can we use the same code for pir sensor?
Hey brw
Can it use to control ac bulb and dc bulb at the same time. ......
Plz reply.....
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.....
Good one except the BGM, got headache bro really. Select nice music not this irritated one.
sorry for that bro i'll take care next time
What type of relay board have you used? And where did you connect the 12 v supply?
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
Sir ya caramad ha profacionl life me sensor see jub object wapas huta ga to light kitni dar bad off ho gi
Kamal hai sir
Thanks bai
welcome bro
Flying fish level
what is the specification for relay board??
can we use that without a relay board as I m using a dc battery??
bulb will always on until people are out from the room??
I'm looking for the arduino code in the clip is not clear, can you print it?
thank you very much
Sir give the connection of relay board with separate circuit diagram
What is the total costing of this product
Sir can I get code explanation.and what is ping in the code given
Can i have the access
drive.google.com/file/d/0B-Qp2vfvQRGZZWxBTnRuNXBJU1E/view?usp=sharing&resourcekey=0-rJn6CPThW0CdadxPt84pQQ
can i have the access?
yes
can u share its programming
Bana kar kaha milega aur kitne me
plz give ckt diagram and background sound plz off
Total cost??!
Arduino ke bagair nahi hai sensor kaam kar sakta switching on
Bro want the circuit diagram of relay circuit
Hi Bhai I need Ur help
contact me on insta or fb
Bro it is telling that code error
Not showing the code
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);
}
And tell me coding sir?
Hey....nice job brother..good video..watch my videos..I hope u like it
Plz can u reply urgently plz plz
ye bro tell me
@@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
copy righted
Can you make an automaic light control symtem with PIR?
@@KiyanisLab oh, good. I wait you. When you upload?
Can we use the same code for pir sensor?
Kiyani's Lab why it's different? I mean there are same pins like ground, vcc, in