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
  • НаукаНаука

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

  • @FunWithElectronicss
    @FunWithElectronicss  Год назад +5

    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.

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

      hy sir please help me

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

      @@captain_kanu what help you need.

    • @Shortmoviefact
      @Shortmoviefact 7 месяцев назад

      Hallo bhaiya iska code btado please 🥺🙏

    • @Estheticstatus786
      @Estheticstatus786 5 месяцев назад +1

      Hlo bhi ap na power direct laptop ya computer sa di ha

    • @Estheticstatus786
      @Estheticstatus786 5 месяцев назад +1

      power or kesa da sakta han I mean bettery wagaira sa

  • @Kartikeyadrawingroom8778
    @Kartikeyadrawingroom8778 3 месяца назад +1

    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.

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

    Youre a Genius bro

  • @paglajanena4125
    @paglajanena4125 7 месяцев назад

    Bohut good tutorial for any layman...tnx.god bless you always and do more tutorial on this type train crossing ,stopping,etc

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

    Great bro❤

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

    with out coding it will work

  • @Lovely_friends7
    @Lovely_friends7 6 месяцев назад +1

    Thanks bro

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

    Ok

  • @NikhilSingh-ke6md
    @NikhilSingh-ke6md 7 месяцев назад

    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

  • @dashrathmahto90
    @dashrathmahto90 6 месяцев назад

    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

  • @preetikukkar3958
    @preetikukkar3958 9 месяцев назад

    Can you please provide circuit diagram

  • @kollywoodtrends8578
    @kollywoodtrends8578 5 месяцев назад

    Hi sir how to code upload in ardino uno through mobile possible and any app having please tell me

  • @kollywoodtrends8578
    @kollywoodtrends8578 5 месяцев назад

    Single IR sensor using and code typed and while uploading error came due to motor does not name a type please help me

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

    Sir can u run it in simulation also sir . Please urgent

  • @namdevsogala5546
    @namdevsogala5546 4 месяца назад

    Can u plz give me code for two motors and two sensors

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

    What library did you use for servo ??

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

    mera program kyu uplode nehi no raha he

  • @gayatrisahu1618
    @gayatrisahu1618 7 месяцев назад +2

    Not working

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

    Bro circuit Diagram

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

    Hello sir I dont have a breadboard can you give another solution to the 2nd ir sensor

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

      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.😀😊

    • @DevKumar-mi5zf
      @DevKumar-mi5zf 10 месяцев назад

      ​male or female

    • @DevKumar-mi5zf
      @DevKumar-mi5zf 10 месяцев назад

      PLS tell urgent

  • @VLOGGINGWITHARYAN100
    @VLOGGINGWITHARYAN100 5 месяцев назад +1

    What is that white in which their are holes

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

    Hii sir

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

    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

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

      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☺️.

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

      @@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.

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

      @@nilimakulkarni4541
      Welcome.
      If it really helped you, then please subscribe to my channel😅☺️

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

      done😊

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

    Send the connection deatails

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

    Bro is this working for sure

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

      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.

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

      @@FunWithElectronicss okay bro

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

    Big beardboard ke jage Small beardboard se project ho sakta hai

  • @Shortmoviefact
    @Shortmoviefact 7 месяцев назад

    Hallo Bhai marko ardiuno code btado please 🥺🥺

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

    Coding for the project bro

  • @snehasupare8272
    @snehasupare8272 4 месяца назад

  • @ALFA_XD-z
    @ALFA_XD-z Год назад +1

    Bro code dono alg file me krna hai

  • @paglajanena4125
    @paglajanena4125 7 месяцев назад

    Both it par delay nahi hai

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

    Also send report

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

    Project total cost bro

    • @FunWithElectronicss
      @FunWithElectronicss  Год назад +4

      Arduino = ₹700.
      2 Ir sensor = ₹80.
      Servo motor = ₹120.
      Breadboard = ₹80.
      And wires
      Total = ₹1000.

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

    Bro servo motor is not working

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

      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.

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

    Please code

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

      #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

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

    Bro servo motor was not working

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

      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.

    • @Krishnarasoi99
      @Krishnarasoi99 5 месяцев назад

      Yess

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

    Please code send

  • @abhijeetmandal3044
    @abhijeetmandal3044 6 месяцев назад

    Bhai mere liye ye project bana doge ? I can pay

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

    Hi. Sir mujhe kuch project cahhiye pls send you mob ya what's up no

  • @funwithme6516
    @funwithme6516 7 месяцев назад

    Pronouncition is not clear

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

    bro code please?

  • @abhijeetmandal3044
    @abhijeetmandal3044 6 месяцев назад

    Bhai mere liye ye project bana doge ? I can pay