How To Make A DIY Arduino Obstacle Avoiding Car For Science Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • How To Make A DIY Arduino Obstacle Avoiding Car At Home Robot For Science Project
    Hello Guys, In this tutorial, I am going to show you how to make a DIY Arduino Obstacle Avoiding Car. So let's get started :) { With Subtitles }
    ------------------------------------------------------------
    👇Materials used in the video with buying links 👇
    *Arduino Uno - amzn.to/2TV1C1J
    *Motor Driver Shield - amzn.to/30QgkIM
    *Gear Motor and Wheels - amzn.to/2NZqwJB
    *Servo Motor - amzn.to/2uBFjmT
    *Ultrasonic Sensor -amzn.to/2GlQcfx
    *Pin Header Connector - amzn.to/2RJTJcI
    * Soldering Iron 25w : amzn.to/2M4O7Lf
    * Soldering Iron 60w : amzn.to/3pug9NW
    * Hot Melt Glue Gun 40 Watt : amzn.to/3bqK44O
    *18650 Li-on Battery - amzn.to/2GnJtBz
    *18650 Battery Holder - amzn.to/2NY2DCi
    *Male and Female Jumper wire -amzn.to/2ZCXhj9
    *Multiwood Sheet - (Offline Store)
    ------------------------------------------------------------
    Code link : drive.google.c... | share this video maximum.
    ------------------------------------------------------------
    Facebook Page : / g-4-genius-17926710477...
    Follow on Instagram : www.instagram....
    ------------------------------------------------------------
    If you love watching my content then don't forget to
    👍like the video
    🔗share the video with your friends
    👇put your feedback/queries down in the comment section, I would love to check it out
    THANK U FOR WATCHING
    1-SUBSCRIBE AND VISIT
    2-LIKE
    3-SHARE
    4- COMMENT
    #GLENTECH #glentech #DIY #ArduinoProject #SmartRobot #ArduinoRobot #ArduinoCar

ความคิดเห็น • 335

  • @GLENTECH
    @GLENTECH  4 ปีที่แล้ว +9

    CODE :
    //ARDUINO OBSTACLE AVOIDING CAR//
    // Before uploading the code you have to install the necessary library//
    //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
    //NewPing Library github.com/livetronic/Arduino-NewPing//
    //Servo Library github.com/arduino-libraries/Servo.git //
    // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
    #include
    #include
    #include
    #define TRIG_PIN A0
    #define ECHO_PIN A1
    #define MAX_DISTANCE 200
    #define MAX_SPEED 190 // sets speed of DC motors
    #define MAX_SPEED_OFFSET 20
    NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
    AF_DCMotor motor1(1, MOTOR12_1KHZ);
    AF_DCMotor motor2(2, MOTOR12_1KHZ);
    AF_DCMotor motor3(3, MOTOR34_1KHZ);
    AF_DCMotor motor4(4, MOTOR34_1KHZ);
    Servo myservo;
    boolean goesForward=false;
    int distance = 100;
    int speedSet = 0;
    void setup() {
    myservo.attach(10);
    myservo.write(115);
    delay(2000);
    distance = readPing();
    delay(100);
    distance = readPing();
    delay(100);
    distance = readPing();
    delay(100);
    distance = readPing();
    delay(100);
    }
    void loop() {
    int distanceR = 0;
    int distanceL = 0;
    delay(40);
    if(distance=distanceL)
    {
    turnRight();
    moveStop();
    }else
    {
    turnLeft();
    moveStop();
    }
    }else
    {
    moveForward();
    }
    distance = readPing();
    }
    int lookRight()
    {
    myservo.write(50);
    delay(500);
    int distance = readPing();
    delay(100);
    myservo.write(115);
    return distance;
    }

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +2

      Read it :
      Before uploading the code you have to install the necessary library given below :
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      How to code in mobile : th-cam.com/video/Mw589orCT3c/w-d-xo.html

    • @GLENTECH
      @GLENTECH  2 ปีที่แล้ว

      @UNKNOWN ADIL this first comment is the code . Click read more to see

    • @GLENTECH
      @GLENTECH  2 ปีที่แล้ว

      @UNKNOWN ADIL file link : drive.google.com/file/d/1Sjspsz2em8Thq_8WhalYu_YcsMar9z60/view

  • @shibusivadas7561
    @shibusivadas7561 3 ปีที่แล้ว +1

    Hi Glen tech 6 wheeled arduino obstacle avoiding car undakkan patto pls reply 🙏🙏

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      Just connect 5th and 6th motor with 3rd and 4th motor.

  • @ElectroscopeMalayalam
    @ElectroscopeMalayalam 5 ปีที่แล้ว +1

    കൊള്ളാം കേട്ടോ.. പ്രോഗ്രാമിങിനോട് നല്ല താല്പര്യം ഉണ്ടെങ്കിൽ ഇപ്പഴേ കോഡു optimize ചെയ്തു പഠിച്ചോ കേട്ടോ.. ഇതിൽ ലൈഫ്റ് path ഓപ്പൺ ആണെങ്കിൽ പോലും ബാക്കി directions പോൾ ചെയ്യുന്നുണ്ടല്ലോ? സ്റ്റുഡന്റ്‌സ് പ്രോജക്ട് ഒക്കെ ഇങ്ങനെ ചെയ്താൽ മതി. പക്ഷെ ചെയ്യുമ്പോൾ size,time എപ്പോഴും മനസിൽ കണ്ടേ കോഡ് ചെയ്യാവൂ... കൂടുതൽ രസകരമായ ഇതുപോലത്തെ പ്രോജക്ടുകൾ പ്രതീക്ഷിക്കുന്നു.

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Thankyou dear friend for your valuable comment and support 🙂

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      ചേട്ടന്റെ ചാനലും അടിപൊളിയാണ്

  • @crazyexperiment6705
    @crazyexperiment6705 4 ปีที่แล้ว +1

    We can use any colour jumper wire

  • @crazyexperiment6705
    @crazyexperiment6705 4 ปีที่แล้ว +1

    We can use any colour jumper wire for ultrasonic sensors

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +3

      Colours are just for identifying the pins . You can use any color

  • @sanbabyfrancis1077
    @sanbabyfrancis1077 5 ปีที่แล้ว +6

    😍 👏👏
    Expecting more Arduino, Raspberry Pi projects..
    BEST WISHES..

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +1

      Thankyou dear friend for your valuable comment and support 🙂

  • @neeshmaanilkumar6066
    @neeshmaanilkumar6066 4 ปีที่แล้ว +1

    Cheta I am Siddharth 12 years old. SEEING your video i bought all the parts for making aurdino robot spending so much money. I assembled all the parts, then connected to the computer. But I am unable to press the PORT button in computer. I wanted to surprise my parents n friends, but all went in waste. I also wanted to do your other projects. Pl help me out

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Use mobile then. th-cam.com/video/Mw589orCT3c/w-d-xo.html

  • @techdroidtube3666
    @techdroidtube3666 5 ปีที่แล้ว +2

    Bro can we make it by using Male wires without using Pin header connector

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +2

      Yes , need to solder the wire

    • @techdroidtube3666
      @techdroidtube3666 5 ปีที่แล้ว +1

      @@GLENTECH thanks bro

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +2

      Share my videos with your friends

  • @neeshmaanilkumar6066
    @neeshmaanilkumar6066 4 ปีที่แล้ว +2

    We can use evine rechargeable batteries 2000mah

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      6v to 12v batteries can only be used.

  • @rubenbjoseph7724
    @rubenbjoseph7724 3 ปีที่แล้ว +1

    This all files can use for all robort or yours only

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      You can use this code for making Arduino obstacles avoiding car .
      AF Motor like that files can be used for any Arduino projects.

  • @heliumnitrogensquared9422
    @heliumnitrogensquared9422 4 ปีที่แล้ว +1

    Hey Nice video.
    I got some problems. My motors wont rotate by theirselves. I need to rotate them first by hand before they turn. Im using 9v battery

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      The cable connect to the motor board is loose sometimes .

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      Try uploading code again

    • @heliumnitrogensquared9422
      @heliumnitrogensquared9422 4 ปีที่แล้ว +1

      @@GLENTECH do you mean the driver?

    • @heliumnitrogensquared9422
      @heliumnitrogensquared9422 4 ปีที่แล้ว +1

      @@GLENTECH is 9v battery a good power supply?

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      @@heliumnitrogensquared9422 9 v battery is good but run Time is less

  • @beverlyhills3984
    @beverlyhills3984 2 ปีที่แล้ว

    Hi Glen tech i have a doubt should we on the motor driver shield while coding

    • @GLENTECH
      @GLENTECH  2 ปีที่แล้ว

      No need.

  • @rekhasuresh5607
    @rekhasuresh5607 3 ปีที่แล้ว +2

    how can we decrease speed of the gear motor?

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      In code speed of motor given , decrease the value and upload code again.

  • @sidragull4138
    @sidragull4138 3 ปีที่แล้ว

    Sir i used 4 1.5 volts batery my robot was not working in the grund and servo also not rotate

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      If you need you can use four 1.5 volts 1000 mAh rechargable battery . Because normal 1.5 battery mAh is less and it won't work .
      Recommended to use two 3.7v 2500mAh rechargable battery .

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      1.5v : www.amazon.in/dp/B00BN5SNF0/ref=cm_sw_r_cp_apa_fabc_62EJQGX1NMMVSF6V3VTJ

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      3.7v : www.amazon.in/dp/B08T1XRRG5/ref=cm_sw_r_cp_apa_fabc_AAZJRWZQEVR96XNH19Z6?psc=1

  • @puvanapriyapalaniappan5102
    @puvanapriyapalaniappan5102 4 ปีที่แล้ว +1

    thank you sir you are great

  • @firecrackersgreece8665
    @firecrackersgreece8665 4 ปีที่แล้ว +1

    does it work but mg90s 180 degrees servo motor?

  • @shibusivadas7561
    @shibusivadas7561 3 ปีที่แล้ว

    Hi Glen tech 6 wheeled arduino obstacle avoiding robot undakumbol gear motors 5 and 6 arduinoyumayi connect cheyyano pls 🙏 reply

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      Connect with motor module. Connect 3rd and 5th motor together .
      Connect 4th and 6th motor together.

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      See the video to know connection

    • @shibusivadas7561
      @shibusivadas7561 3 ปีที่แล้ว

      Ok ethra volt battery upayogikkanam

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      @@shibusivadas7561 you can use same battery showing in the video.

    • @shibusivadas7561
      @shibusivadas7561 3 ปีที่แล้ว

      Ok

  • @dancestepstep1790
    @dancestepstep1790 4 ปีที่แล้ว +1

    Sir hamko code dalane nhi aa raha hai code dalane ka vedio banao

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      th-cam.com/video/Mw589orCT3c/w-d-xo.html

  • @bobbylal3212
    @bobbylal3212 4 ปีที่แล้ว

    I want to make it but the battery link in discription not working

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Battery link : www.amazon.in/dp/B085XL78L3/ref=cm_sw_r_apa_i_IiICEbMHS3E22
      In every electronics shops it's available.

    • @bobbylal3212
      @bobbylal3212 4 ปีที่แล้ว

      Thank you Glen

  • @ajayanilkumar9940
    @ajayanilkumar9940 3 ปีที่แล้ว

    E code mobile phone il download cheyan pachunillalo. Mobile phone code ayachu taramo

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      th-cam.com/video/Mw589orCT3c/w-d-xo.html

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      Code I have given as first comment .

  • @sachinsunny1802
    @sachinsunny1802 3 ปีที่แล้ว +1

    Ciruct diagram undo

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      Link in video discription

  • @anilkumarmaligi7863
    @anilkumarmaligi7863 4 ปีที่แล้ว +1

    Hawsome bro

  • @dancestepstep1790
    @dancestepstep1790 4 ปีที่แล้ว +1

    Obstacles avoiding robot

  • @abhishekbhuyan3282
    @abhishekbhuyan3282 4 ปีที่แล้ว +1

    Hi
    My servo motor is on
    But my wheel motors r not on

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Use this code

  • @Illegal4545
    @Illegal4545 5 ปีที่แล้ว

    3.7 volt battery
    Series connection ano
    Parlllel connection ano

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Series connection

  • @marialeliaguzmanramirez8046
    @marialeliaguzmanramirez8046 2 ปีที่แล้ว

    Good

  • @rekhasuresh5607
    @rekhasuresh5607 3 ปีที่แล้ว

    very nice video

  • @saravananashok2846
    @saravananashok2846 4 ปีที่แล้ว

    i uploaded the code but servo is not moving when ultrasonic sensor sense

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

  • @mayreddymahodai7961
    @mayreddymahodai7961 3 ปีที่แล้ว

    read ping is not included in the scope it is saying status 1

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      Read it
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

  • @blackme6599
    @blackme6599 5 ปีที่แล้ว

    Bro mulitiwood evidaya kittuka

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Glass and plywood selling shops

    • @blackme6599
      @blackme6599 5 ปีที่แล้ว

      @@GLENTECH
      Price ethraya

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Mulitiwood price is very less . Below 100

  • @sugumarvelu2079
    @sugumarvelu2079 4 ปีที่แล้ว

    Bro what is the accurate of the rpm of the bo motor bro please

  • @shareefaali8240
    @shareefaali8240 5 ปีที่แล้ว +1

    വർക്ക്‌ cheyyunnilla

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Add code correctly

  • @techdroidtube3666
    @techdroidtube3666 5 ปีที่แล้ว

    bro i made it but in my one only left 2 motors working
    can u solve the problem

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +1

      Check the motor wire connection

    • @techdroidtube3666
      @techdroidtube3666 5 ปีที่แล้ว +1

      @@GLENTECH thanks bro

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      എന്റെ വീഡിയോസ് ഫ്രണ്ട്സിന് ഒക്കെ ഒന്ന് ഷെയർ ചെയ്തു കൊടുക്കണം

  • @techdroidtube3666
    @techdroidtube3666 5 ปีที่แล้ว

    bro i changed the wire therminals but now all 4 motors dont work

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Sometimes code problems

  • @achuzdreamqueen1446
    @achuzdreamqueen1446 4 ปีที่แล้ว

    Wow

  • @minecraftvideos3435
    @minecraftvideos3435 4 ปีที่แล้ว

    Can u just connect the pins with hot glue

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Which pins ?

    • @minecraftvideos3435
      @minecraftvideos3435 4 ปีที่แล้ว

      The ones u connected to the board to connect the sensor

    • @minecraftvideos3435
      @minecraftvideos3435 4 ปีที่แล้ว

      Why is my other motors not moving the motors near the battery move but the other two don’t

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      @@minecraftvideos3435 yes u can connect sensor cable using hot glue

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Before uploading the code you have to install the necessary library
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

  • @wolffrolic3948
    @wolffrolic3948 4 ปีที่แล้ว

    Arduino enna aa folderile ino file open aakan pattunillaaa

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      Download this 3 files and open documents , Arduino folder , library folder and paste 3 files in it

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Download this software : www.win-rar.com/start.html?&L=0

    • @wolffrolic3948
      @wolffrolic3948 4 ปีที่แล้ว

      @@GLENTECH bro servo motor move chuyunund but sensor vechalum illalelum orupola

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @wolffrolic3948
      @wolffrolic3948 4 ปีที่แล้ว

      @@GLENTECH bro speed korkune engana

  • @crazyexperiment6705
    @crazyexperiment6705 4 ปีที่แล้ว

    When i see the diagram i understood that we can use 9v battery

  • @neeshmaanilkumar6066
    @neeshmaanilkumar6066 4 ปีที่แล้ว

    But u are using 2000mah rechargeable battery

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      I'm using 18650 battery , not AA type batteries.

  • @albertbenny7430
    @albertbenny7430 4 ปีที่แล้ว

    Total expenses??

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Below 4000

  • @vikhiljs1403
    @vikhiljs1403 3 ปีที่แล้ว

    Bro arodino alla, arduino ennann pronunciation

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      Start a channel and make videos and teach people about pronunciation . You have a great future . All the best 🙂

    • @vikhiljs1403
      @vikhiljs1403 3 ปีที่แล้ว

      @@GLENTECH of course 😆

  • @dancestepstep1790
    @dancestepstep1790 4 ปีที่แล้ว +1

    Code dalana

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Code link in video description , download that file

  • @gokul147
    @gokul147 3 ปีที่แล้ว

    കൊള്ളാം

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      Thankyou 🙂

  • @crazyexperiment6705
    @crazyexperiment6705 4 ปีที่แล้ว

    How to download arduino in computer

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      www.arduino.cc/en/Main/Donate

  • @CreatorBeatz
    @CreatorBeatz 4 ปีที่แล้ว

    ആകെ ചെലവ് എത്രയാണ്

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      2500 below

    • @CreatorBeatz
      @CreatorBeatz 4 ปีที่แล้ว

      Ok thanks

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Thankyou dear friend for your valuable comment and support 🙂
      എന്റെ വീഡിയോസ് ഫ്രണ്ട്സിന് ഒക്കെ ഒന്ന് ഷെയർ ചെയ്തു കൊടുക്കണം

  • @bobbylal3212
    @bobbylal3212 4 ปีที่แล้ว

    How to recharge battery

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      You need to buy a battery charger or you need make one .
      How to make a charger video I will upload next day .

    • @lokeshlucky7593
      @lokeshlucky7593 4 ปีที่แล้ว

      TP-4056 is a charging module for 18650 li-ion batteries

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      @@lokeshlucky7593 yes

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    But again the motor run only in 360 degree.....

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Yes , but it will turn by rotating one side .

  • @abhjithb689
    @abhjithb689 4 ปีที่แล้ว

    ആ ഫയൽ എല്ലാം ഫോൺ വെച്ചു cheyan പറ്റുമോ.. പറ്റുമെങ്കിൽ ഒരു വീഡിയോ ഇടാമോ. പ്ലീസ്

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      See this video th-cam.com/video/oA5ljKBXdrc/w-d-xo.html

  • @muhammadnihal1449
    @muhammadnihal1449 5 ปีที่แล้ว

    Ushaar

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว

      Thankyou dear friend for your valuable comment and support 🙂

  • @rajeevpc1332
    @rajeevpc1332 5 ปีที่แล้ว

    Chetta code link thaa

  • @wassimsoualili7153
    @wassimsoualili7153 4 ปีที่แล้ว

    Code false

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Did you copy and paste other files to Arduino folder in my documents

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @wassimsoualili7153
      @wassimsoualili7153 4 ปีที่แล้ว

      Noo !

    • @wassimsoualili7153
      @wassimsoualili7153 4 ปีที่แล้ว

      Ah okey thx you can you help me to my other project i will use 4wd arduino car with bluetooth hc 06 and ultrasonic sensor with servo motor please brother

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Then copy and paste that 3 folders into Arduino folder in my documents

  • @sidragull4138
    @sidragull4138 3 ปีที่แล้ว +1

    Servo ans sensor is not rotattinv

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      Read it
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

  • @HarshGArt
    @HarshGArt 3 ปีที่แล้ว +1

    YOU ARE GREAT 👍 but i upload code they show error please help🙏 me i request you
    Helpme!

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      Read it
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

    • @HarshGArt
      @HarshGArt 3 ปีที่แล้ว

      @@GLENTECH bhi nahi ho raha hai please make a video on download files please🙏 make video I wish you have 50 million subscribe please make video

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      To Install :
      open my documents folder , then open Arduino folder , then open libraries folder and paste AFmotor , NewPing , Servo folder into it .
      download it from below :
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //

    • @HarshGArt
      @HarshGArt 3 ปีที่แล้ว

      @@GLENTECH bhai nahi samja please make video bhi
      Jab mai link khualta hu to 5 file download ka option he nahi aata please🙏 make video

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      th-cam.com/video/Mw589orCT3c/w-d-xo.html

  • @jishabenny9183
    @jishabenny9183 2 ปีที่แล้ว +1

    Can i use arduino uno R3 SMD Atmega328p board clone compatible model plz. Reply

  • @RighttoInformationAct2005
    @RighttoInformationAct2005 2 ปีที่แล้ว

    make obstrakle avoiding and line following togerther

  • @aryavats5403
    @aryavats5403 4 ปีที่แล้ว +1

    I made this but the motors start to beep when i attach the battery.
    Pls hlp bro

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      CODE :
      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }

    • @aryavats5403
      @aryavats5403 4 ปีที่แล้ว

      @@GLENTECH When i entered the code it says that readPing was not declared in this scope. What should i do?

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      @@aryavats5403
      Read it .
      Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

    • @aryavats5403
      @aryavats5403 4 ปีที่แล้ว

      @@GLENTECH i already have theses libraries installed.

  • @crazyexperiment6705
    @crazyexperiment6705 4 ปีที่แล้ว

    We can put 15 pin header

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    Bro pls tell me ...all the connections are correct....but motor are not rotating.........

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

  • @puvanapriyapalaniappan5102
    @puvanapriyapalaniappan5102 4 ปีที่แล้ว +2

    sir the code from your link is unable to use

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @swamyswami3737
      @swamyswami3737 4 ปีที่แล้ว

      Sir but you have to put these libraries in description if you put here most of the people not see properly

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      @@swamyswami3737 in description there is a link to download these files

  • @rodolfosulimajr.9136
    @rodolfosulimajr.9136 4 ปีที่แล้ว +1

    Thanks a lot Bro

  • @lokeshlucky7593
    @lokeshlucky7593 4 ปีที่แล้ว +2

    Hii bro Can You please make a video about how to upload code for this in mobile

    • @lokeshlucky7593
      @lokeshlucky7593 4 ปีที่แล้ว +2

      How to upload code for arduino obstacle avoidance car in mobile (Arduinodroid)

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +3

      uploading soon

    • @lokeshlucky7593
      @lokeshlucky7593 4 ปีที่แล้ว +1

      @@GLENTECH I need To upload code for my arduino in sciencefair

  • @smartways-livelifelessordi5761
    @smartways-livelifelessordi5761 5 ปีที่แล้ว +1

    Can we use regular 9v battery or pencil cells

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +1

      9v battery will work sometimes . Better use two 3.7v rechargable batteries .

  • @funnydudes8647
    @funnydudes8647 2 ปีที่แล้ว

    Adriuno nano mathiyavooooo

  • @devanandp8381
    @devanandp8381 3 ปีที่แล้ว

    Bro ee file phoneil yahana install chayyunathu

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว

      See this video : th-cam.com/video/Mw589orCT3c/w-d-xo.html

  • @neeshmaanilkumar6066
    @neeshmaanilkumar6066 4 ปีที่แล้ว +1

    Ok cheta thanks

  • @C4UShaijuMalluMedia89
    @C4UShaijuMalluMedia89 5 ปีที่แล้ว +1

    Super video 👍👍 👍...

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +1

      Thanks bro 🙂

    • @iamtechnical3737
      @iamtechnical3737 5 ปีที่แล้ว +1

      Kitne amh ki

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +1

      @@iamtechnical3737 3.7v 2500 mAh battery

    • @iamtechnical3737
      @iamtechnical3737 5 ปีที่แล้ว +1

      2000 amh buy Kiya hai

    • @GLENTECH
      @GLENTECH  5 ปีที่แล้ว +1

      @@iamtechnical3737 2000 mAh no problems

  • @abhiraj2338
    @abhiraj2338 4 ปีที่แล้ว +1

    Thankzx

  • @koonmarkchannal
    @koonmarkchannal 4 ปีที่แล้ว

    error help me plss

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

  • @thisisawesome1859
    @thisisawesome1859 4 ปีที่แล้ว

    Its coming serial port not selected plz help

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      8:37 see from here

  • @akarshkt1041
    @akarshkt1041 2 ปีที่แล้ว

    ചേട്ടാ motor driveil എത്ര volt വരെ കൊടുക്കാം

    • @GLENTECH
      @GLENTECH  2 ปีที่แล้ว

      It's can run motors on 4.5vdc to 25vdc

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    Bro but the only thing....is servo motor does not rotating.......does it heavy power supply...then means how much power supply is needed...to rotate all the 5 motors....

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Before uploading the code you have to install the necessary library
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      3.5v 2000mAh two rechargable batteries only needed

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว +1

    How i want to control the servo motor...help me...

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      th-cam.com/video/Xr873sXm2WI/w-d-xo.html

  • @vishnuts5812
    @vishnuts5812 4 ปีที่แล้ว +1

    Chetta code correct ano njn ee project palla site nokki onnum sheri ayilla

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      My code will work . Link in description

  • @praseenao5425
    @praseenao5425 4 ปีที่แล้ว +1

    Full cost ethrayaa

  • @kumariwijesinghe8892
    @kumariwijesinghe8892 4 ปีที่แล้ว

    What is the code

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      For Downloading code Link in the video description

  • @sugumarvelu2079
    @sugumarvelu2079 4 ปีที่แล้ว +1

    What is the rpm of the bo motor

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      www.amazon.in/dp/B07CVYWYQ7/ref=cm_sw_r_cp_apa_i_4LJvFbDJFB3QW

  • @sugumarvelu2079
    @sugumarvelu2079 4 ปีที่แล้ว +1

    What is the rpm of the bo motor

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      Operating voltage : 3v 12v dc
      Rpm : approximately 150 rpm

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    Bro i install all the library but .servo motor was rotate in 360 degree..

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Add this code

    • @saravanakumart8902
      @saravanakumart8902 4 ปีที่แล้ว

      Tq bro

  • @abhiraj2338
    @abhiraj2338 4 ปีที่แล้ว +1

    Chetta Mobile yill upload cheyunna oru video cheyyuvoo plzz full support

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      I have uploaded already See this video : th-cam.com/video/Mw589orCT3c/w-d-xo.html

    • @abhiraj2338
      @abhiraj2338 4 ปีที่แล้ว

      ChettA whatsApp no onnu tharamoo?

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      സംശയങ്ങൾ ഒക്കെ ഇവിടെ ചോദിച്ചോളൂ

  • @anurag8226
    @anurag8226 3 ปีที่แล้ว

    Bro library install ചെയ്യാന്‍ പറ്റുന്നില്ല.
    ??

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links

    • @anurag8226
      @anurag8226 3 ปีที่แล้ว +1

      @@GLENTECH ath install cheythu
      But newping master install cheyyumbol properties file not found eannnn kaanikkunnnu

  • @sugumarvelu2079
    @sugumarvelu2079 4 ปีที่แล้ว

    No bro what is the rpm of the motor

    • @sugumarvelu2079
      @sugumarvelu2079 4 ปีที่แล้ว

      Speed of the motor bro

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Operating voltage : 3v 12v dc
      Rpm : approximately 150 rpm

  • @ajayanilkumar9940
    @ajayanilkumar9940 3 ปีที่แล้ว

    Sir aurdino amazon link taramo itu available alla

  • @sugumarvelu2079
    @sugumarvelu2079 4 ปีที่แล้ว

    No bro what is the accurate of the rpm of motor

  • @juan-dk7qe
    @juan-dk7qe 3 ปีที่แล้ว +1

    hello. what if i don't have a pin header connector? how do i make it work?

    • @juan-dk7qe
      @juan-dk7qe 3 ปีที่แล้ว +1

      i hope u can answer this, i hope u can help becasue this is for school purposes

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      Just solder the wires to that port .

    • @juan-dk7qe
      @juan-dk7qe 3 ปีที่แล้ว

      @@GLENTECH thank u for responding! but how do i solder it? do i solder it from the below of the motor shield and not from the top??

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      @@juan-dk7qe solder it from below the board . See the diagram .

    • @juan-dk7qe
      @juan-dk7qe 3 ปีที่แล้ว

      @@GLENTECH oh okay thank u so much! btw last question, is it required for it to have a switch? or it can work without the switch?

  • @crazyexperiment6705
    @crazyexperiment6705 4 ปีที่แล้ว

    Do you know kariku

  • @5GBUDDY
    @5GBUDDY 4 ปีที่แล้ว

    Chetta ഈ റോബോട് കാറിനെ ഒന്ന് modify ചെയ്തു WALL - E robot നെ നിർമിക്കുന്ന ഒരു വീഡിയോ ചെയ്യാമോ, please.

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      I will try

    • @5GBUDDY
      @5GBUDDY 4 ปีที่แล้ว +1

      @@GLENTECH Thanks

    • @5GBUDDY
      @5GBUDDY 4 ปีที่แล้ว +1

      @@GLENTECH I will support your channel 👍👍

  • @aiswaryak2810
    @aiswaryak2810 3 ปีที่แล้ว

    What is the total budget of this robot car. Plz reply

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      Below 4000

  • @neeshmaanilkumar6066
    @neeshmaanilkumar6066 4 ปีที่แล้ว

    We can use 2100mah battery

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Yes , use 2 batteries

  • @bobbylal3212
    @bobbylal3212 4 ปีที่แล้ว

    Pls give new code link

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Link in description

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      drive.google.com/file/d/1Sjspsz2em8Thq_8WhalYu_YcsMar9z60/view
      Open this link and download it

    • @bobbylal3212
      @bobbylal3212 4 ปีที่แล้ว

      This link not working

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      When the link open you will see a download button click on that and the files will start to download

    • @bobbylal3212
      @bobbylal3212 4 ปีที่แล้ว

      They say there was a problem in preview cant downlod the link

  • @darkastra9322
    @darkastra9322 2 ปีที่แล้ว

    Hi Glen tech I have a doubt what should we do with the libraries

    • @GLENTECH
      @GLENTECH  2 ปีที่แล้ว +1

      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

    • @GLENTECH
      @GLENTECH  2 ปีที่แล้ว

      In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library. At the top of the drop down list, select the option to "Add .ZIP Library''.

    • @darkastra9322
      @darkastra9322 2 ปีที่แล้ว

      But I want to code in laptop

    • @darkastra9322
      @darkastra9322 2 ปีที่แล้ว

      Your videos are amazing

    • @darkastra9322
      @darkastra9322 2 ปีที่แล้ว

      Please reply

  • @rekhakumari9247
    @rekhakumari9247 4 ปีที่แล้ว

    Can i use 12v battery

  • @DivinkDavis
    @DivinkDavis 3 ปีที่แล้ว

    Can u give the parts list

    • @GLENTECH
      @GLENTECH  3 ปีที่แล้ว +1

      It's already given in video discription .

  • @kulishvsannu7742
    @kulishvsannu7742 4 ปีที่แล้ว

    Bro circuit diagram

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Download this file : drive.google.com/file/d/1Sjspsz2em8Thq_8WhalYu_YcsMar9z60/view
      It includes the code , files and diagram

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    I were inserted code into Arduino ..howcan i delete that and reset my board..

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      No need to reset , you just insert new code

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      //ARDUINO OBSTACLE AVOIDING CAR//
      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //
      #include
      #include
      #include
      #define TRIG_PIN A0
      #define ECHO_PIN A1
      #define MAX_DISTANCE 200
      #define MAX_SPEED 190 // sets speed of DC motors
      #define MAX_SPEED_OFFSET 20
      NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(2, MOTOR12_1KHZ);
      AF_DCMotor motor3(3, MOTOR34_1KHZ);
      AF_DCMotor motor4(4, MOTOR34_1KHZ);
      Servo myservo;
      boolean goesForward=false;
      int distance = 100;
      int speedSet = 0;
      void setup() {
      myservo.attach(10);
      myservo.write(115);
      delay(2000);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      distance = readPing();
      delay(100);
      }
      void loop() {
      int distanceR = 0;
      int distanceL = 0;
      delay(40);
      if(distance=distanceL)
      {
      turnRight();
      moveStop();
      }else
      {
      turnLeft();
      moveStop();
      }
      }else
      {
      moveForward();
      }
      distance = readPing();
      }
      int lookRight()
      {
      myservo.write(50);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      }
      int lookLeft()
      {
      myservo.write(170);
      delay(500);
      int distance = readPing();
      delay(100);
      myservo.write(115);
      return distance;
      delay(100);
      }
      int readPing() {
      delay(70);
      int cm = sonar.ping_cm();
      if(cm==0)
      {
      cm = 250;
      }
      return cm;
      }
      void moveStop() {
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      motor3.run(RELEASE);
      motor4.run(RELEASE);
      }
      void moveForward() {
      if(!goesForward)
      {
      goesForward=true;
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      }
      void moveBackward() {
      goesForward=false;
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      for (speedSet = 0; speedSet < MAX_SPEED; speedSet +=2) // slowly bring the speed up to avoid loading down the batteries too quickly
      {
      motor1.setSpeed(speedSet);
      motor2.setSpeed(speedSet);
      motor3.setSpeed(speedSet);
      motor4.setSpeed(speedSet);
      delay(5);
      }
      }
      void turnRight() {
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(BACKWARD);
      motor4.run(BACKWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }
      void turnLeft() {
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      delay(500);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      motor3.run(FORWARD);
      motor4.run(FORWARD);
      }

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

  • @wassimsoualili7153
    @wassimsoualili7153 4 ปีที่แล้ว

    Can i get your facebook

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Instagram link in video description

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    And also i cant get install the af motor library.

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      Download this 3 files and open documents , Arduino folder , library folder and paste 3 files in it

  • @sugumarvelu2079
    @sugumarvelu2079 4 ปีที่แล้ว

    Bro accurate of the rpm of the gear motor

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      The BO motor has an operating voltage of 3V - 12V DC.
      This BO motor runs at a speed of approximately 150RPM.

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      If you give 12v , it will work with rpm of 150

    • @sugumarvelu2079
      @sugumarvelu2079 4 ปีที่แล้ว

      Thanks bro

  • @bobbylal3212
    @bobbylal3212 4 ปีที่แล้ว

    Pwoli

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      Thankyou dear friend for your valuable comment and support 🙂

  • @saravanakumart8902
    @saravanakumart8902 4 ปีที่แล้ว

    Bro how to download code....pls tell me

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      For Downloading link in video description

    • @saravanakumart8902
      @saravanakumart8902 4 ปีที่แล้ว

      But bro it tell me having an error .....at NewPing sonar (TRIG_PIN,ECHO_PIN,MAX_DISTANCE);

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      // Before uploading the code you have to install the necessary library//
      //AFMotor Library learn.adafruit.com/adafruit-motor-shield/library-install //
      //NewPing Library github.com/livetronic/Arduino-NewPing//
      //Servo Library github.com/arduino-libraries/Servo.git //
      // To Install the libraries go to sketch >> Include Library >> Add .ZIP File >> Select the Downloaded ZIP files From the Above links //

    • @dancestepstep1790
      @dancestepstep1790 4 ปีที่แล้ว +1

      Code batao to bro in weels

  • @sreyeshkotha9735
    @sreyeshkotha9735 4 ปีที่แล้ว

    Bro I got it in RAR file bro

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว +1

      Open (Extra) that folder using RAR software

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      www.win-rar.com/start.html?&L=0

    • @sreyeshkotha9735
      @sreyeshkotha9735 4 ปีที่แล้ว

      Bro it shows new ping no such file or directory

    • @GLENTECH
      @GLENTECH  4 ปีที่แล้ว

      When you extra the RAR file you will get 4 folders from that copy AFMotor , NewPing , servo folder and open my documents then open Arduino folder then open library and paste this three folders .