Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Arduino By Example

You're reading from   Arduino By Example Design and build fantastic projects and devices using the Arduino platform

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785289088
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Adith Jagadish Boloor Adith Jagadish Boloor
Author Profile Icon Adith Jagadish Boloor
Adith Jagadish Boloor
 Boloor Boloor
Author Profile Icon Boloor
Boloor
Arrow right icon
View More author details
Toc

Programming the robot


Programming the robot is the hardest task in this book. It is not only about simply writing code and hoping for the best. Technically, you can use that technique and still get away with it, but it would consume a huge amount of time and energy. We will go through the prior art again, see how a dog (and a robot dog) walks, and try to mimic some of that motion. We will also look at the mechanical design of our robot and see how it can be upgraded for better performance.

Weight distribution

Funnily enough, it makes sense to put this in the programming section. This is because weight distribution and the creation of the walking motion go hand in hand. Before programming the bot, we will have to power it. Since we have made our circuit in the previous chapter, we just have to put it in place on the robot, such that the weight of the battery and the Arduino MEGA is evenly distributed.

First, let's take a look at the battery (the larger one):

This is the heaviest object that the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images