Towers of Hanoi with 08M

Rick100

Senior Member
This is my first project with the Picaxe . It uses an 08M to solve the 'Towers of Hanoi Puzzle' . The construction uses 2 servos taped together with double sided tape for elevation and rotation . The gripper is made from a mini servo driving 2 identical gears . Power is 4 AA batteries driving the servos with 2 1n4001 diodes dropping the voltage to the Picaxe . The program is a non-recursive solution I got from the book 'Artificial Intelligence Projects For The Commodore 64' . It uses 235 of the 256 available bytes in program memory. I also wrote a program that outputs to the terminal screen so it can be run without any servos or in the simulator .

Here is a link to a video of the robot solving for 4 disks .
http://youtu.be/QmJiLNgP4Lw

I have posted the project on LMR at this link .
http://letsmakerobots.com/node/26793
 

Attachments

hippy

Senior Member
Excellent work considering it's a real algorithm rather than just a pre-programmed set of moves. It's impressive squishing it all into 256 bytes of program either way.
 

Rick100

Senior Member
Thanks for the compliments guys . This is my first experience with the picaxe and I really enjoy working with it . The algorithm for solving the puzzle was actually very simple . Controlling the servos was straight forward also . The program that outputs to the terminal screen was a lot more difficult . I forgot to attach that file in the original post so here it is .
 

Attachments

Top