Automatic toll gate system using single and double IR sensor | full code explained in hindi...
Автор: FunWithElectronicss
Загружено: 2022-08-30
Просмотров: 24422
Описание:
Automatic toll gate system using single and double IR sensor. | full code explained in hindi...
In this video I made a project called " automatic toll gate system ". It uses two ir sensors, a arduino and a servo motor.
My other video links:
What is transistor :-
• What is transistor | transistor Kya hai | ...
How to blink LED with ARDUINO :-
• How to blink LED with ARDUINO | led ko kai...
What is arduino :-
• what is Arduino | arduino Kya hai | how to...
What is resistor :-
• what is resistor? | resistor Kya hai | in ...
Resistor in series and parallel :-
• resistor in series and parallel connection...
What is potentiometer:-
• what is potentiometer | how does pot work ...
How to use breadboard:-
• what is breadboard? | breadboard Kya hai |...
How to use multimeter:-
• learn about multimeter | how to use it |mu...
CODE FOR ONE IR SENSOR:-
#include (Servo.h)// dont use this brackets use angled brackets, as shown in video.
int ir = 8;
Servo motor;
void setup() {
pinMode(ir,INPUT);
motor.attach(7);
}
void loop() {
if (digitalRead(ir)==LOW)
{
motor.write(10);
delay(2000);
}
else
{
motor.write(115);
delay(2000);
}
}
CODE FOR TWO IR SENSORS:-
#include (Servo.h)// dont use this brackets use angled brackets, as shown in video.
int chintu = 8;
int mintu = 9;
Servo motor;
void setup() {
pinMode(chintu,INPUT);
pinMode(mintu,INPUT);
motor.attach(7);
}
void loop() {
if (digitalRead(chintu)==LOW)
{
motor.write(10);
}
else if(digitalRead(mintu)==LOW)
{
motor.write(115);
}
}
Make sure you subscribe to channel. To show me your support.
Share this video to family and friends and like the video.
If you have any doubt comment down.
Thanks for watching....
#arduino #arduinoproject #irsensor #servomotor #servomotors #projects #programming #project #breadboard #jumperwires #arduinouno #electronic #automaticdoor #automaticdoors #tollgate #automatic #funwithelectronics
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: