Build a robot – Part 8: First test drive with motor driver and ultrasonic sensor

The first prototype is done and is running very well. The missing steps for the final test drive were to assembly the power supply for the Arduino itself and the dc motors. For the Arduino I have used a simple 9V battery adapter. The robot base is using a bracket for two 18650 batteries, which was included within the assembly kit for the robot base. So, if you are vaping, you can use your batteries from your mod. I think for the future there is a need for replacement. Two 18650 will deliver together 7,2 V but the dc motors can run at 9V. So there is some improvement in performance possible.

Additionally some lines of code were needed for telling  “Horst” to turn right when an obstacle will appear in a giving range. The code is using the libs I have created in the previous posts. The repository for the project can be found here:

Finally, “Horst” is driving around and is recognizing obstacles. See the following clip:

26 thoughts on “Build a robot – Part 8: First test drive with motor driver and ultrasonic sensor

  • January 27, 2019 at 4:42 am

    Hello there, I found your blog via Google while looking for a related topic, your web site came up, it looks great. I’ve bookmarked it in my google bookmarks.

  • February 15, 2019 at 3:49 am

    I truly appreciate this post. I¡¦ve been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again

  • February 25, 2019 at 5:24 pm

    I constantly spent my half an hour to read this weblog’s articles all the time
    along with a cup of coffee.

  • February 25, 2019 at 10:20 pm

    Wow that was strange. I just wrote an extremely long comment
    but after I clicked submit my comment didn’t show up.

    Grrrr… well I’m not writing all that over again. Regardless, just wanted to say superb blog!

  • February 26, 2019 at 8:42 am

    Good man!
    Philadelphia Holistic Clinic quickly became the leading Acupuncture, homeopathy, and hypnotherapy center in the metro area. Dr. Tsan – Medical Director of the clinic has 40+ years of academic and practical experience in Internal Medicine (OB-GYN and Naturopathy). Victor Tsan, MD – an internationally recognized specialist in Traditional Chinese Medicine, Classical Homeopathy, and Clinical Hypnotherapy graduated from the most famous medical schools in Europe, Asia, and the USA.
    In our philosophy, each patient is a unique entity and not a case of a particular disease. The disease is a result of the bodily, psychic, public and ecological discrepancy. Thus, natural treatment becomes effective when all the fragments of human being converted into an appropriate set of balances. The holistic treatment techniques (Traditional Chinese Medicine, Homeopathic Medicine, Clinical Hypnotherapy, and Reiki, we teach your body systems to heal itself.
    Philadelphia Holistic Clinic accommodates five major departments:
    Philadelphia Acupuncture Clinic
    Philadelphia Homeopathic Clinic
    Philadelphia Hypnotherapy Clinic
    Philadelphia Addiction Center
    Philadelphia Weight Loss Clinic
    Details on this link.

    Thank you for your attention.

  • February 26, 2019 at 9:21 pm

    Way cool! Some very valid points! I appreciate you
    penning this write-up and the rest of the website is also really good.

  • March 13, 2019 at 7:24 pm

    Hmm is anyone else having problems with the images on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any feedback would be greatly appreciated.

  • March 14, 2019 at 12:35 am

    Fantastic site you have here but I was wanting to know
    if you knew of any user discussion forums that cover the same topics talked about in this article?
    I’d really love to be a part of online community where I can get
    feed-back from other knowledgeable individuals that share the same interest.
    If you have any recommendations, please let me know.

    Thanks a lot!

  • March 23, 2019 at 3:53 pm

    Hello i am kavin, its my first occasion to commenting anywhere, when i read this piece of writing i thought i could also create comment
    due to this good article.

  • March 31, 2019 at 10:57 pm

    My name is Pete and I want to share a proven system with you that makes me money while I sleep! This system allows you to TRY the whole thing for F R E E for a whole 30 days! That’s right, you can finally change your future without giving up any sensitive information in advance! I signed up myself just a while ago and I’m already making a nice profit.


    If you’re interested in knowing more about this system, go to and try it out. Again, it’s FREE!

    You can thank me later


  • April 23, 2019 at 2:09 pm

    Grow your bitcoins by 10% per 2 days.
    Profit comes to your btc wallet automatically.

    it takes 2 minutes only and let your btc works for you!

    Guaranteed by the blockchain technology!

  • April 25, 2019 at 10:49 am

    Hi, i believe that i noticed you visited my website so i got here to go back
    the choose?.I am attempting to find issues to enhance my site!I suppose its ok to use some of your concepts!!

  • April 27, 2019 at 9:44 am


    I’ve been visiting your website a few times and decided to give you some positive feedback because I find it very useful. Well done.

    I was wondering if you as someone with experience of creating a useful website could help me out with my new site by giving some feedback about what I could improve?

    You can find my site by searching for “casino gorilla” in Google (it’s the gorilla themed online casino comparison).

    I would appreciate if you could check it out quickly and tell me what you think.

    Thank you for help and I wish you a great week!

  • April 29, 2019 at 11:36 am

    I like the valuable info you provide in your articles.
    I’ll bookmark your blog and check again here regularly. I’m quite certain I will learn a
    lot of new stuff right here! Good luck for the next!

  • April 30, 2019 at 6:15 pm

    It’s awesome to go to see this site and reading the views of all friends concerning this paragraph,
    while I am also keen of getting familiarity.

  • May 1, 2019 at 11:12 am

    whoah this weblog is fantastic i like reading your articles.
    Stay up the great work! You recognize, lots of individuals
    are searching around for this info, you could
    aid them greatly.

  • May 1, 2019 at 2:39 pm

    If you want to get much from this piece of writing then you have to apply
    these methods to your won blog.

  • May 1, 2019 at 4:38 pm

    hi!,I love your writing very a lot! percentage we communicate
    more approximately your post on AOL? I need an expert on this house to resolve my problem.

    Maybe that’s you! Taking a look forward to look you.

  • May 10, 2019 at 3:08 pm

    Cable companies are sticking to all of us! You’re paying way too much for your cable. Save your money! Pay only $39 a month. NO other fees. Over 5,000 Live HD TV Channels. Including local, Spanish & International Channels. Plus ALL premium movie channels: HBO, Showtime, Cinemax, Starz, & more. All sports channels: NFL ticket, NBA pass, MLB plus more. Every major news channels: MSNBC, CNN, FOX news, etc. Also all Children’s & family networks plus music channels. Watch on any screen device without down loading. NO contacts, activation fees or any other hidden fees. Watch it first for FREE! No credit card needed. Refer 4 others and your service is completely free. Nothing to lose except your high cable bill. Start saving today! Visit website or call 214-529-2088


Leave a Reply

Your email address will not be published. Required fields are marked *