How to make a Motion Tracking Robot at Home//Move the Robot Head with obstacle//Arduino Uno Project

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • In this video I will show you how to make a Motion Tracking Robot at Home. It will track the obstacle and move with it. It is a project of Arduino Uno.You can also make this using Arduino Nano. Ultrasonic Sonar Sensor project
    Circuit Diagram and Code: drive.google.c...
    Watch the full video.
    Below Some useful Crafts Ideas :
    How to make a Microphone using old Earphone in 2 minutes||fix and set-up your microphone (computer)!: www.youtube.co....
    How to make Money Printer Machine at Home || Very Easy Trick:www.youtube.co....
    Water overflow Alarm project //For Water Tank// Save Water//Save Electricity// Very easy & Homemade:www.youtube.co....
    Automatic Light On/Off circuit with LDR// Automatic Street light (DIY)//School Project:www.youtube.co....
    If you like my video, Please LIKE SUBSCRIBE COMMENT SHARE & click on BELL button.
    Follow us on Facebook
    Link : / crazy-ideas-

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

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

    I got this up and running today and it's epic! Thanks for the walk through!

  • @thiagoarthur3292
    @thiagoarthur3292 10 месяцев назад +2

    I had a similar idea days before, and i was trying to use a radar like system, so much easier with 2 sensors. Did you tried other angles for a better range ?

  • @GG-pf5fe
    @GG-pf5fe 3 года назад

    Great Work Bro,It just awesome💥

  • @Exploreworld6651
    @Exploreworld6651 2 года назад +3

    please bro i m not able to understand the circuit please explain the circuit its important

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

    Really Amazing 🤩

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

    Hi I have some problem to contact circuit diagram

  • @mao2i
    @mao2i 3 месяца назад

    whats the name of the cable with a white head on it ?

  • @artbysai5377
    @artbysai5377 2 года назад +1

    Make a video, how to give code to this step by step. Please 🙏🏻

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

    bro nice idea but code open nahai ho raha

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

    Can I use one ultrasonic sensor instead of two ultrasonic sensors?

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

    :-( Arduino IDE won't open the sketch

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

    Can please give me details for this?

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

    i cant open the code

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

      #include
      Servo myservo;
      const int Lin = 10, Rin = 12, Lout = 11, Rout = 13, serv = 9; //setting sensor pins and servo pin
      // establish variables for duration
      // and the distance result in inches
      long Rduration, Lduration, Rinches, Linches;
      int threshold = 10; //Sensor threshold in inches
      int angle = 80; //Initial angle
      boolean debug = false; //Serial communication for debuging. Set to true for serial communication.
      void setup() {
      // initialize serial communication:
      if (debug)
      {
      Serial.begin(9600);
      }
      myservo.attach(9); //attach servo to pin 9
      }
      void loop()
      {
      //Most of the sensor code has been taken from David Mellis's PING sensor code
      //I modified it for a 4 pin sensor as oppsed to the 3 pin sensor
      // Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
      pinMode(Rout, OUTPUT);
      digitalWrite(Rout, LOW);
      delayMicroseconds(2);
      digitalWrite(Rout, HIGH);
      delayMicroseconds(5);
      digitalWrite(Rout, LOW);
      Rduration = pulseIn(Rin, HIGH);
      pinMode(Lout, OUTPUT);
      digitalWrite(Lout, LOW);
      delayMicroseconds(2);
      digitalWrite(Lout, HIGH);
      delayMicroseconds(5);
      digitalWrite(Lout, LOW);
      Lduration = pulseIn(Lin, HIGH);
      // convert the time into a distance
      Rinches = microsecondsToInches(Rduration);
      Linches = microsecondsToInches(Lduration);
      if (debug)
      {
      Serial.print("Left: ");
      Serial.print(Linches);
      Serial.println(" in");
      Serial.print("Right: ");
      Serial.print(Rinches);
      Serial.println(" in");
      }
      follow();
      }
      long microsecondsToInches(long microseconds)
      {
      // According to Parallax's datasheet for the PING))), there are
      // 73.746 microseconds per inch (i.e. sound travels at 1130 feet per
      // second). This gives the distance travelled by the ping, outbound
      // and return, so we divide by 2 to get the distance of the obstacle.
      // See: www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf
      return microseconds / 74 / 2;
      }
      void follow()
      {
      if (Linches

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

      @@flinty_video4385 No It will work for 2 sensors

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

    kimg