I was asked at short notice to do an activity for a children's club I sometimes help at. It was supposed to be along a theme of knowing directions and compasses and stuff. I didn't think I could work out any compass stuff in time so decided to do what I knew something about, which was mobile robots. As it needed to have something to do with following directions I decided to use a black line following mobile robot. I initially decided to use a ready made black line following mobile robot but the ones I could obtain in time were rather puny and the better ones took too long to arrive, so I decided to make my own. I had just managed to get my 3D printer working again so it seem a good opportunity to make sure it was working properly.
I had some continuous rotation servo motors lying around waiting for a project, plus some LDRs left over from the LDR Camera Vision Thing Project14 activity, plus a Nano and some battery packs. What else do you need for a black line following mobile robot. All I did was to design a base plate for the 3D printer that held two servo motors and two battery packs, just push fit together. Unfortunately the battery packs wobbled about so nothing fitted tightly and I had to design a top plate to hold everything in place. I originally planned to redesign all the 3D printed parts to make amore coherent approach but time ran out. The Nano is plugged into a protoboard and then BlueTac-ed to the top. The sensor consists of a pair of white LEDs and associated LDR detectors. I spent a lot of time working out the correct height, spacing, brightness level and placement of the black line sensors and even on the evening before use I was still tweaking the hardware and software in order to get it to follow the black line reliably, see below.
It can still wander away from the black line on occasion, especially if there is a source of light shining in from the side and I wasn't able to make a compact and attractive design. But the idea was for the children to colour in a face for it and fold it into a box that just sits on top. Mostly they managed this and were quite excited when I got their parents to take a video of the mobile robot going round and round.
The code is fairly simple but getting the correct values for the motor speeds and delays took a lot of trial and error. I'm not a control engineer and I just didn't have the time to work out a mathematical solution to this so I tweaked values until I managed to arrive at a fairly stable and workable set of values.
So this is another contribution to the Makevember Idea.
Unfortunately due to redecorating the lounge (nearly finished!) and making this Black Line Following Mobile Robot I have rather neglected my LDR Camera and BeagleBone AI project. Still, there's still tomorrow, maybe it will all go together and work perfectly!
Dubbie
Top Comments
-
jc2048
-
Cancel
-
Vote Up
+4
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
-
dubbie
in reply to jc2048
-
Cancel
-
Vote Up
+4
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
-
jc2048
in reply to dubbie
-
Cancel
-
Vote Up
+3
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
-
dubbie
in reply to jc2048
-
Cancel
-
Vote Up
+2
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
-
14rhb
in reply to dubbie
-
Cancel
-
Vote Up
+4
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
Comment-
14rhb
in reply to dubbie
-
Cancel
-
Vote Up
+4
Vote Down
-
-
Sign in to reply
-
More
-
Cancel
Children