{"id":3212,"date":"2015-11-16T08:00:08","date_gmt":"2015-11-16T14:00:08","guid":{"rendered":"http:\/\/www.cyberward.net\/blog\/?p=3212"},"modified":"2015-11-16T08:00:08","modified_gmt":"2015-11-16T14:00:08","slug":"robbie-the-robot-simple-arduino-powered-robot","status":"publish","type":"post","link":"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/","title":{"rendered":"Robbie the Robot &#8211; Simple Arduino Powered Robot"},"content":{"rendered":"<p>I decided that I wanted to\u00a0build a robot, and build one with my daughter who is about to turn 9. I have plans in my head for the most amazing robot ever, but I figured we should start with something a little simpler and smaller.<\/p>\n<p>First up, what to build? After a bit of research, I decided that a 2 wheel drive and a caster for a third wheel was the way to go for our first robot. Next, I needed a frame. I read a bit about building my own with metal, or wood, or cardboard, or coroplast, but I thought that I wanted to go with a purchased frame. I figured that a plastic frame would be sturdy enough, more durable than cardboard, and would not scare off my daughter. They can really be pricey. What I settled on, due to price was the &#8216;old&#8217; frame that Sparkfun used to base their basic robot off of. I found it at the <a href=\"http:\/\/www.robotshop.com\/en\/2wd-beginner-robot-chassis-v2-red.html\" target=\"_blank\">Robot Shop<\/a>.<\/p>\n<p>This kit came with a two tier frame, two motors, two wheels, the caster, and a battery holder for $15. My kinda deal. This is what the kit looks like, putting the motors on the bottom.<\/p>\n<div id=\"attachment_3220\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3220\" data-attachment-id=\"3220\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7301\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?fit=768%2C1024&amp;ssl=1\" data-orig-size=\"768,1024\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1446651917&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;320&quot;,&quot;shutter_speed&quot;:&quot;0.058823529411765&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Motors\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;The motors sit under the lower deck.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?fit=240%2C320&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?fit=500%2C667&amp;ssl=1\" class=\"size-large wp-image-3220\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?resize=500%2C667\" alt=\"The motors sit under the lower deck.\" width=\"500\" height=\"667\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?resize=500%2C667&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?resize=240%2C320&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?resize=225%2C300&amp;ssl=1 225w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7301.jpg?w=768&amp;ssl=1 768w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3220\" class=\"wp-caption-text\">The motors sit under the lower deck.<\/p><\/div>\n<p>This chassis is a two tier design. Their design places the battery pack in the middle. Note: for this phase of the project, with the robot connected via USB cable, the battery pack is not needed. But, if we didn&#8217;t put it in now, it would be really hard later.<\/p>\n<div id=\"attachment_3219\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3219\" data-attachment-id=\"3219\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7302\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?fit=768%2C1024&amp;ssl=1\" data-orig-size=\"768,1024\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1446651930&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Battery Pack\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;The battery pack sits on the top of the lower deck.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?fit=240%2C320&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?fit=500%2C667&amp;ssl=1\" class=\"size-large wp-image-3219\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?resize=500%2C667\" alt=\"The battery pack sits on the top of the lower deck.\" width=\"500\" height=\"667\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?resize=500%2C667&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?resize=240%2C320&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?resize=225%2C300&amp;ssl=1 225w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7302.jpg?w=768&amp;ssl=1 768w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3219\" class=\"wp-caption-text\">The battery pack sits on the top of the lower deck.<\/p><\/div>\n<p>The whole thing goes together pretty easily. There are screws and standoffs included with some ok but not great instructions. Still, Lily managed to put most of it together with some guidance.<\/p>\n<div id=\"attachment_3218\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3218\" data-attachment-id=\"3218\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7303\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?fit=1024%2C768&amp;ssl=1\" data-orig-size=\"1024,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1446894101&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Assembling the upper deck\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?fit=240%2C180&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?fit=500%2C375&amp;ssl=1\" class=\"wp-image-3218 size-large\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?resize=500%2C375\" alt=\"\" width=\"500\" height=\"375\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?resize=500%2C375&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?resize=240%2C180&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?resize=900%2C675&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7303.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3218\" class=\"wp-caption-text\">Assembling the upper deck<\/p><\/div>\n<p>Next up was the brains. I didn&#8217;t want to buy an entire kit. For example the <a href=\"https:\/\/www.sparkfun.com\/products\/13166\" target=\"_blank\">RedBot Basic Kit<\/a> that SparkFun sells is $84. Two issues for me. First was that the kit relies on a single purpose built board for everything. I wanted more flexibility. I didn&#8217;t want a micro-controller and the motor controller, and the sensors all contained in the same silicon. I wanted more reuse. Second, I wanted more input into this. I didn&#8217;t just want a step by step kit. I wanted to still keep things simple, but with some stuff that I purchased separately. This also allows us to build it in separate stages. After the chassis was built, I said to Lily, &#8220;now what?&#8221; We decided that it needed a brain. She thought that one just like we were already using (an <a href=\"https:\/\/www.sparkfun.com\/products\/12757\" target=\"_blank\">Arduino Red Board<\/a>) would be a good idea. Instead of using the one we had, I placed an order for another of these $20 boards.<\/p>\n<div id=\"attachment_3217\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3217\" data-attachment-id=\"3217\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7315\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?fit=1024%2C768&amp;ssl=1\" data-orig-size=\"1024,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1447353931&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;320&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Arduino Red Board Blinking\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?fit=240%2C180&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?fit=500%2C375&amp;ssl=1\" class=\"wp-image-3217 size-large\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?resize=500%2C375\" alt=\"\" width=\"500\" height=\"375\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?resize=500%2C375&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?resize=240%2C180&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?resize=900%2C675&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7315.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3217\" class=\"wp-caption-text\">Arduino Red Board Blinking (default sketch)<\/p><\/div>\n<p>It took us awhile to figure out a good way to mount it to the top. We couldn&#8217;t find a pattern of holes that fit exactly. We did have some extra short standoffs from the chassis kit, and were able to use these. We managed to attach the screws to the Red Board and the chassis at 3 points of contact. The one at the top near the headers is just connected to the board.<\/p>\n<p>I also ordered a motor controller shield. I thought quite awhile on what to get here. In the end, I decided that a shield would make this much simpler and have less wires going all over. I purchased a <a href=\"https:\/\/www.sparkfun.com\/products\/13295\" target=\"_blank\">Ludus Prototype Shield<\/a> from SparkFun. At a whopping $25 this was the most expensive part. It does have an interesting trick. This version of the board supports plugging in an XBee. I think that taking this robot wireless eventually will be a big draw for my daughter in the near future.<\/p>\n<div id=\"attachment_3216\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3216\" data-attachment-id=\"3216\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7317\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?fit=1024%2C768&amp;ssl=1\" data-orig-size=\"1024,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1447353992&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;320&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Ludus Motor Controller\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?fit=240%2C180&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?fit=500%2C375&amp;ssl=1\" class=\"wp-image-3216 size-large\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?resize=500%2C375\" alt=\"\" width=\"500\" height=\"375\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?resize=500%2C375&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?resize=240%2C180&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?resize=900%2C675&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7317.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3216\" class=\"wp-caption-text\">Ludus Motor Controller shield plugged into the top of the Red Board<\/p><\/div>\n<p>It then took some deft maneuvering of the motor wires from the bottom of the chassis to the top so they could get plugged into the Ludus controller. (You can see a servo in this image. I had one lying around and plugged it into the controller as well, but it is not necessary)<\/p>\n<div id=\"attachment_3213\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3213\" data-attachment-id=\"3213\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7326\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?fit=1024%2C768&amp;ssl=1\" data-orig-size=\"1024,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1447361982&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Wiring up the motors\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?fit=240%2C180&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?fit=500%2C375&amp;ssl=1\" class=\"wp-image-3213 size-large\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?resize=500%2C375\" alt=\"\" width=\"500\" height=\"375\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?resize=500%2C375&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?resize=240%2C180&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?resize=900%2C675&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3213\" class=\"wp-caption-text\">Wiring up the motors<\/p><\/div>\n<p>In this next image, you can see that I pushed the wires up from the bottom, and plugged them in. Actually we plugged them in wrong. If you look closely you can see that the + and &#8211; signs aren&#8217;t lined up with the black and red wires properly. We got our first chance to debug our hardware once the software had been loaded. \ud83d\ude09 But that&#8217;s it. Just a few wires to connect the motors, and we have the first iteration of our robot. Now for some brains.<\/p>\n<div id=\"attachment_3215\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3215\" data-attachment-id=\"3215\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7323\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?fit=1024%2C768&amp;ssl=1\" data-orig-size=\"1024,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1447354841&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Connecting the Wires\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?fit=240%2C180&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?fit=500%2C375&amp;ssl=1\" class=\"wp-image-3215 size-large\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?resize=500%2C375\" alt=\"\" width=\"500\" height=\"375\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?resize=500%2C375&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?resize=240%2C180&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?resize=900%2C675&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7323.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3215\" class=\"wp-caption-text\">Connecting the wires to the controller<\/p><\/div>\n<p>To start with, to get it running quickly so Lily could see some progress, we used a sketch that SparkFun wrote. They have a whole tutorial on the <a href=\"https:\/\/learn.sparkfun.com\/tutorials\/ludus-protoshield-hookup-guide\" target=\"_blank\">Ludus Controller.<\/a>\u00a0This is one reason that I purchase from companies like SparkFun and Adafruit in the United States. There are often cheaper places to source some of these parts, but I like to support the companies that are creating tutorials, and supporting their customers on their forums \/rant. Anyway&#8230;.<\/p>\n<p>Using the Arduino IDE, I copied the sketch from SparkFun (I grabbed the entire thing from <a href=\"https:\/\/github.com\/sparkfun\/Ludus_ProtoShield\/blob\/master\/firmware\/Ludus_Example\/Ludus_Example.ino\" target=\"_blank\">GitHub<\/a>) and pasted it into a new sketch. After setting the correct board type (Arduino Uno) and a baud rate of 9600, I uploaded the sketch with no problems. This particular sketch uses the serial monitor built into the IDE to send command to the robot over the USB cable.<\/p>\n<div id=\"attachment_3221\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3221\" data-attachment-id=\"3221\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/sketch\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?fit=1024%2C775&amp;ssl=1\" data-orig-size=\"1024,775\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Arduino Sketch and Serial Monitor&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?fit=240%2C182&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?fit=500%2C378&amp;ssl=1\" class=\"size-large wp-image-3221\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?resize=500%2C378\" alt=\"Arduino Sketch and Serial Monitor\" width=\"500\" height=\"378\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?resize=500%2C378&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?resize=240%2C182&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?resize=396%2C300&amp;ssl=1 396w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?resize=900%2C681&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/sketch.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3221\" class=\"wp-caption-text\">Arduino Sketch and Serial Monitor<\/p><\/div>\n<p>What&#8217;s cool is that we can just type in a few letters into the console and send these commands to the robot over a USB cable, and the robot moves. That was pretty exciting. Here is Lily entering some commands to move the robot on the table.<\/p>\n<div id=\"attachment_3214\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3214\" data-attachment-id=\"3214\" data-permalink=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/img_7324\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?fit=1024%2C768&amp;ssl=1\" data-orig-size=\"1024,768\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5s&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1447355580&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;320&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Lily sending commands\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?fit=240%2C180&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?fit=500%2C375&amp;ssl=1\" class=\"wp-image-3214 size-large\" src=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?resize=500%2C375\" alt=\"\" width=\"500\" height=\"375\" srcset=\"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?resize=500%2C375&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?resize=240%2C180&amp;ssl=1 240w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?resize=400%2C300&amp;ssl=1 400w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?resize=900%2C675&amp;ssl=1 900w, https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7324.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"(max-width: 500px) 100vw, 500px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-3214\" class=\"wp-caption-text\">Lily sending commands<\/p><\/div>\n<p>Phase one complete. Chassis built, check. A micro-controller with a motor shield, check. A program to move the robot across the table, check. 8 year old excited to be a maker, check.<\/p>\n<p>Lily doesn&#8217;t like the USB cable. She wants it to move on the floor. I think that might be the next step.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided that I wanted to\u00a0build a robot, and build one with my daughter who is about to turn 9. I have plans in my head for the most amazing robot ever, but I figured we should start with something &hellip; <a href=\"https:\/\/www.cyberward.net\/blog\/2015\/11\/robbie-the-robot-simple-arduino-powered-robot\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3213,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[341,336],"tags":[339,338,337],"series":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.cyberward.net\/blog\/wp-content\/uploads\/IMG_7326.jpg?fit=1024%2C768&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pffAy-PO","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/3212"}],"collection":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/comments?post=3212"}],"version-history":[{"count":2,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/3212\/revisions"}],"predecessor-version":[{"id":3243,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/posts\/3212\/revisions\/3243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/media\/3213"}],"wp:attachment":[{"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/media?parent=3212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/categories?post=3212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/tags?post=3212"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.cyberward.net\/blog\/wp-json\/wp\/v2\/series?post=3212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}