Automatic toll gate system using single and double IR sensor | full code explained in hindi...
HTML-код
- Опубликовано: 29 авг 2022
- 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 | t...
How to blink LED with ARDUINO :-
• How to blink LED with ...
What is arduino :-
• what is Arduino | ardu...
What is resistor :-
• what is resistor? | re...
Resistor in series and parallel :-
• resistor in series and...
What is potentiometer:-
• what is potentiometer ...
How to use breadboard:-
• what is breadboard? | ...
How to use multimeter:-
• learn about multimeter...
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 - Наука
The project code is given in description.
Like, share and subscribe to my channel.
And comment down that, what improvement I can do in my channel.
hy sir please help me
@@captain_kanu what help you need.
Hallo bhaiya iska code btado please 🥺🙏
Hlo bhi ap na power direct laptop ya computer sa di ha
power or kesa da sakta han I mean bettery wagaira sa
Thanks for the detailed video. I have ordered all the components from online and did the same project with same coding my project was successfully and I got third place in science fair.
😊😊
Youre a Genius bro
Thank you bro
Bohut good tutorial for any layman...tnx.god bless you always and do more tutorial on this type train crossing ,stopping,etc
Thank you bro
Great bro❤
Thank you bro
with out coding it will work
Thanks bro
Welcome bro
Ok
Btw is this any way to Make the code work vice a versa in DC motor, I want to make a automatic door opening system
Bro can you update this project like
•If a car is comming from the opposite side the then also the gate also had to open
Can you please provide circuit diagram
Hi sir how to code upload in ardino uno through mobile possible and any app having please tell me
Single IR sensor using and code typed and while uploading error came due to motor does not name a type please help me
Sir can u run it in simulation also sir . Please urgent
I don't know about that😅
Can u plz give me code for two motors and two sensors
What library did you use for servo ??
mera program kyu uplode nehi no raha he
Not working
Bro circuit Diagram
Hello sir I dont have a breadboard can you give another solution to the 2nd ir sensor
Yeah, you could cut 2 male connecting wire in half and joint them as junction(1 input 3 output). Then connect it. You don't need breadboard.😀😊
male or female
PLS tell urgent
What is that white in which their are holes
Breadboard
Hii sir
Hello☺️
hello sir,
i m using 2 IR sensors.
code for individual sensor is working as expected i.e.moving servo.
but when merge code only 1 ir sensor is working.
what would be the reason.
please help
I think there is problem in the code.
First check that you have correctly mentioned IR sensors pin number in the code.
Then properly check the IF ELSE statement. You can refer it by my code. I have given it in the description.
Try this and if it doesn't work then comment me again☺️.
@@FunWithElectronicss
hello Sir,
Thanks for reply.this code worked nicely.
my 2 IRs worked.later i used them as per my project and they gave proper output...
Thanks again for your prompt reply.
@@nilimakulkarni4541
Welcome.
If it really helped you, then please subscribe to my channel😅☺️
done😊
Send the connection deatails
Connection details is said in the video
Bro is this working for sure
Ya 100% sure bro
I have tried it and it is working very well.
But be sure, you do connections and coding correctly as per my video.
@@FunWithElectronicss okay bro
Big beardboard ke jage Small beardboard se project ho sakta hai
Haa ho sakta hai
Hallo Bhai marko ardiuno code btado please 🥺🥺
Coding for the project bro
Sorry for late reply.
I have added the code in description.
Bro code dono alg file me krna hai
What
Both it par delay nahi hai
Meaning
Also send report
I need it's report/thesis
Project total cost bro
Arduino = ₹700.
2 Ir sensor = ₹80.
Servo motor = ₹120.
Breadboard = ₹80.
And wires
Total = ₹1000.
Bro servo motor is not working
First check all the connections and check out the code clearly. I have given it in description. If it is still not working then comment me again.
Please code
#include
Servo myservo;
int pos = 0;
int cm = 0;
long readUltrasonicDistance(int triggerPin, int echoPin)
{
pinMode(triggerPin, OUTPUT);
digitalWrite(triggerPin, LOW);
delayMicroseconds(2);
digitalWrite(triggerPin, HIGH);
delayMicroseconds(10);
digitalWrite(triggerPin, LOW);
pinMode(echoPin, INPUT);
return pulseIn(echoPin, HIGH);
}
void setup() {
digitalWrite(12,LOW);
myservo.attach(9);
Serial.begin(9600);
}
void loop() {
cm = 0.01723 * readUltrasonicDistance(6, 7);
if(cm
Bro servo motor was not working
First check all contentions and then check out the code clearly. I have given it in the description. If it is still not working then comment me again.
Yess
Please code send
Code is in description.
@@FunWithElectronicss code is not working
@@captain_kanu replace normal bracket by angeled brackets.
Bhai mere liye ye project bana doge ? I can pay
Hi. Sir mujhe kuch project cahhiye pls send you mob ya what's up no
Instagram id lelo
@aadiigamer
Instagram id lelo
@aadiigamer
Pronouncition is not clear
bro code please?
In the description
Bhai mere liye ye project bana doge ? I can pay