Arduino Smart Robot Car from Banggood: Part4 Code in Depth

Поделиться
HTML-код
  • Опубликовано: 15 мар 2018
  • This episode will dive into the codes in depth, let me know if you have any questions!
    🎈Related videos:
    1⃣Part1: Unboxing and Assembly: • Arduino Smart Robot Ca...
    2⃣Part2: Electronic Connections: • Arduino Smart Robot Ca...
    3⃣How my robot took its own life!: • How my robot took its ...
    4⃣Part3: Updates for the full Codes: • Arduino Smart Robot Ca...
    👇Codes
    chenthedesignmaker.com/robot-c...
    If you like this video, please 👉**SUBSCRIBE**👈
    A lot of thanks to any advice and suggestions! :D
    Links for parts:
    Smart Robot Car Kit(New): www.banggood.com/2WD-Avoidanc...
    Smart Robot Car kit: www.banggood.com/DIY-L298N-2W...
    M3 *10mm Standoffs: www.banggood.com/50pcs-M3-10m...
    Amazon: amzn.to/2Auwbzq
    Extra servo for pan and tilt camera mount: www.banggood.com/TowerPro-SG9...
    Amazon: amzn.to/2jO7BBE
    Speed encoder kit(Will cover in later video): www.banggood.com/HC-020K-Doub...
    Amazon: amzn.to/2kq7H6J
    3 in 1 Jumper cable set: www.banggood.com/3-IN-1-120pc...
    Amazon: amzn.to/2D5QYuw
    Toys in the show:
    Excavator: www.gearbest.com/rc-cars/pp_5...
    BullDozer:www.gearbest.com/rc-cars/pp_5...
    RC Car:www.gearbest.com/rc-cars/pp_3...
    Gears I'm using:
    Gimbal Stabilizer: Zhiyun Crane Plus amzn.to/2nmgvbd
    Learn how to get $80 off: • [Early Bird Discount] ...
    Camera I'm using: amzn.to/2FqKhmz
    Let me know if you have any kit that need help with!
    My Website: chenludesign.com
    My Instagram: / friedlc
    My Dribbble: dribbble.com/chenludesign
    My Instructable: www.instructables.com/member/...
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
  • НаукаНаука

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

  • @ChenTheDesignMaker
    @ChenTheDesignMaker  6 лет назад +2

    Update: If you want to control the motor speeds, please swap pin 11 and pin 13 connections, as well as update the define section in the code. Pin 13 is not PWM pin but pin 11 is. sorry for the mistake.

  • @JohnMcGraw47
    @JohnMcGraw47 5 лет назад +2

    Thank you Chen, spent the last 3 days trying to find an obstacle avoidance program to work from ( a little weak in the code dept) and shazam you appeared in my RUclips list. Thank you so much for the detailed tutorial and your patience with this Rookie!

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  5 лет назад

      Hi John, you are very welcome! Glad I can help! Happy making.

  • @docroe8754
    @docroe8754 4 года назад +1

    Hi Chen - new to robot cars - followed your videos on how to assemble the Banggood kit - excellent. Loaded the test code and it worked first time!
    I have watched your video on the code explanation - again excellent. Just waiting for some longer connectors to link up the ultrasonics and then load the full code.

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  4 года назад

      Hi Doc Roe, glad these are helpful :D

    • @docroe8754
      @docroe8754 4 года назад +1

      @@ChenTheDesignMaker Got my longer leads today, all parts seem to work, but the servo only rotates through 90 deg when I load up the code. I agree with the issue over the supplied castor wheel - I need to alter it.

  • @bendeboueblues3390
    @bendeboueblues3390 3 года назад +1

    Hello Chen, congrats wih your new blog.
    As I'm still working on your project arduino smart car1-4, I noticed that yr http website is gone and so all the links to your final arduino sketches.
    As I'm a newbee, and your diy youtubes gave me a boost to learn more about arduino, i hope you can provide a new download link for the final sketches .
    Thank you very much,
    Ben

  • @tarekboinaheri3559
    @tarekboinaheri3559 6 лет назад +2

    you video is excellent thanks very much

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  6 лет назад +1

      Hi Tarek! Glad I can help! Let me know if there is anything I didn't make clear in the video!😀

    • @tarekboinaheri3559
      @tarekboinaheri3559 6 лет назад +1

      no worry okay !👍

  • @apriljaytagaytay8692
    @apriljaytagaytay8692 4 года назад

    Ive make a 4wd car arduino powered and followed the wirings and coding but it didnt run why ?

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

    Hello, very good video but I have a query, what happens is that I have the robot armed with the programming set but the problem is that the robot does not work for me, the only thing that works is the sensor but only when it is connected to the computer and if not is connected nothing works, could you know what the problem is please?
    thanks

  • @user-mb7lg7xt5l
    @user-mb7lg7xt5l 5 лет назад +1

    Multiple libraries were found for "Servo.h"
    Used: C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Servo
    Not used: C:\Program Files (x86)\Arduino\libraries\Servo
    exit status 1
    'A1' was not declared in this scope
    why ??

  • @khm1597
    @khm1597 5 лет назад

    hallo,
    wie und wo kann ich die neusten code herunter laden?

  • @geraldinejns
    @geraldinejns 5 лет назад

    can a raspberry pi 3 be used? Also, to program the car can I use ROS(robot operating system)?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  5 лет назад

      Definitely for the pi. I'm not very familiar with ROS but looks like it supports Linux.

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

    hi chen just trying to get into trying to code but i am a complet noob. i was hoping you still have the code you could share with me/us. thanks

  • @khm1597
    @khm1597 5 лет назад

    hallo,
    bei mir bewegt sich nur entfernungsmesser vorne, kein motor bewegt sich. Es sind die kabel in part 2 anders gesteckt wie in part3. bin Anfänger und verstehe leider auch keinenglisch

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  5 лет назад

      Ich muss google translate verwenden, um Ihre Frage zu verstehen: D. Eine Sache, an die ich denken kann, ist, Ihnen das englische Transkript zu schicken, dann können Sie es mit Google ins Deutsche übersetzen?

  • @abyaardesigns
    @abyaardesigns 6 лет назад

    Do you have the latest code in the description?

    • @ChenTheDesignMaker
      @ChenTheDesignMaker  6 лет назад

      Yes the one on my site is the latest. Let me know if you running into any problem.

  • @rejeandevin6729
    @rejeandevin6729 6 лет назад

    The code is public. Where I can have it?

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

    guys can someone please copy the code and paste it over here ?

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

    The code isn't working for me! It gives me many errors... Could seriously use some help here!

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

      you have to go trough the errors and replace the "-" in the code by deleting them and typing them in again.

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

      if you get a port related error when uploading the code just close other programs running in the background. did it for me

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

      also you can add:
      leftMotor.Drive(-255);
      rightMotor.Drive(-255);
      Serial.println(" Backward");
      delay(600);
      at the beginning to every case in the end of the code to make the robot go backwards before turning.
      add "backward" here too: enum Directions { Forward, TurnLeft, TurnRight, TurnAround, Brake, Backward};
      changing delay makes it turn more or less and changing 255 is the speed for each wheel (255 is max)

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

      @@donalain69Thankkkk uuu