Build and Program a Braccio Robot
There have already been a few other articles on DesignSpark about the Braccio Tinkerkit. It’s not surprising really, as the Arduino and Braccio combination is a low cost (and great FUN!) way to start your journey into robotics. In this article, I will reminisce on my first day with a Braccio Tinkerkit – and the creation of our New Year message to DesignSpark readers.
If You Build It, They Will Come…
Opening the box on a Braccio Tinkerkit brings back fond memories, inspired by the Ghost of Christmas Past, where a small boy can be seen near the Christmas tree; gleefully tearing off the wrapping paper from a present to reveal a Meccano No. 7 set. Opening that box revealed all those neatly packed parts that led to hours of construction fun (for both my Dad and me!) as we built all the examples in the manual and then went off-piste to create all sorts of strange, Heath Robinson contraptions together. In a similar vein, the Braccio box too presents you with neatly packed parts crying out to be put together according to those funky pictogram instructions.
So, in the best traditions of pictogram build instructions, here is the step by step guide to how my Braccio came together:
Talk is cheap. Show me the code.*
Of course, our Braccio is merely a stunningly orange, repositionable sculpture without some code to motivate it. Luckily for us, the Braccio is an Arduino-supported product, so the heavy lifting in programming it has already been taken care of by folks who know the hardware intimately.
What that means for us, is that getting our Braccio to do something is as simple as feeding it sets of articulation angles for each position we want the robot to assume.
As it is always easier to show something than explain it, there are some Braccio examples available that will end up being installed somewhere like C:\Program File (x86)\Arduino\libraries\Braccio\examples on your PC. You can also find them in the development tree on Github.
I have included our New Year message example with this post. Hopefully, the comments with the code will make it clear exactly what we are doing; which essentially boils down to:
- setup to a known position
- assume some other positions
- repeat 2
After you have been playing for a while, it might be an idea to have a look at the underlying C++ in the Braccio and servo library source code to get to grips with some of the ideas behind programming robots from scratch for yourself.
Happy Robot Controlling!
*To quote Linus Torvalds
CommentsAdd a comment
We at Makerspace Ringebu in Norway bought us a Braccio. In the code i got from Github there are some links to other sites or examples. When I use the links I come to Arduino.cc site but I cannot find anything on Braccio on the Arduino site. Or is there something I missed? Braccio is not a new product so maybe not supported by Arduino anymore. Somebody some can enlighten me before we at Makerspace buy more Braccio's?
@MarcellinusPetrusVanDerVelpen Thanks for your feedback. I have been in contact with the folks at Arduino and they have told me that the Braccio is fully supported. As the Braccio was originally supported on the Arduino.org web site, it may be that some links and/or some pages could have been removed or deleted when the content was migrated to Arduino.cc - they have told me that they will investigate these missing links. You should be fine to continue buying more Braccios.