3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Linefollower robot from Arduino and junk - thoughts and code

Linefollower robot from Arduino and junk - thoughts and code
This linefollower ended up as kind of failure regarding the competition, but I learned some things I'm going to share now.

If you want to see the general build, go to photoseries which I posted earlier while the building was in progress. Information is there in image notes. I just updated some of it.

Here I want to share the code and some thoughts and experiences about the problematic parts.

Here's a video about the testing stages in chronological order and also the final result.



I doubt my code would be useful to anyone as is, but if someone is facing similar problems with a linefollower there might be some ideas to peek at. I hope the comments in code are helpful, but if You have questions what does some part do and why, then please ask.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Problems - moving

Problems - moving
«
  • vimg_3083.jpg
  • 6.jpg
  • ylekanne_vana.jpg
The robot has two differentially driven wheels with simple and cheap DC motors and rubberband transmission. Wheels are made from two CD-s each and run on inline skate bearings.

First two parts in the video (link in intro) are only riding tests, random this and that way. The very first version had especially small pulleys on wheels and had too little torque to get moving straight, the robot could only turn around its axis. Second had medium sized pulleys and was able to move, but I made them even bigger later when the sensors acted as brakes and it was also desireable to make it slower. Which was still not enough slowing down and I also coded movements into shorter impulses instead of continuous.

The final sensor attachement was also the "caster". Crucial part with all the braking was to get balance right so that the driving wheels had minimum resistance from the caster (weight in center) but also the thing did not fall over to the other side. For that moving the battery pack on the underside was perfect. If someone plans to build two wheel differentially driven robot I recommend keeping some room around the battery to adjust the balance.

Images of wheel pulleys in reverse order of versions.
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Jan 9, 2012. 6:39 PMalien200049655 says:
Could you please edit your instructable to include a "SENSOR SCHEMATIC"?
Are you using a "motorshield" or a homemade motor controller?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
9
Followers
10
Author:liba_hunt
The name means "werewolf" in my mother tongue. I'm a physics student with interest in electronics and inventing. Still on the journey to find my way and mission in this world.