Let's Make Robots!

Polduino

Line follower
AttachmentSize
PololuQTRSensors.cpp16.45 KB
PololuQTRSensors.txt11.04 KB
line_follower.pde5.64 KB

Finally broken my robot post virginity. I decided to get an arduino to see what it was all about and was surprised how much quicker you can do things with the high level language and libraries. So I've built a line follower with parts from pololu and with a few lines of code and their sensor library got it working without too much fuss. The files are attached but I had to rename the header file to .txt to upload. Just change the extension to .h if you use it.

Reflective sensors and underneath

Update 27/12/10:

As Frits suggested I upgraded the power to a pair of Li-ion cells. I can pump them up to 8.4v giving me more than 6v at the motors. It wasn't all plain sailing. The extra power brought on epileptic fits and I had to improve the code and include pwm to the left motor because of the mismatch you get with motors. I'm happy with the result now and thanks for encouraging me to go further Frits.

Powerup

 

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Sweet :)

I bet you can feed the motor 1.5 times of what they get now, without any problem! (I estimate you only feed them some 3-4.5 volts. They can take 6 volts, no prob!) Would your system cope with the speed?

You may want a white underlay.

I may have to try but not sure if my code is fast enough to stay on line. I'll post another vid if I'm successful... or not.

In case you add more weight, you want to spread it evenly, some on front. (I'd think :)

Good job on your linefollower, it appears to work well!

Hope you like the update.