Towers of Hanoi with Picaxe 08M

Posted on 11/05/2011 by rick100
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

 This is the robot I built to solve the Towers of Hanoi puzzle . It uses three rc servos and a Picaxe 08M . This is the first time I've used the picaxe  but I have experience with pics and basic programing .   The arm is constructed mostly with leftovers from my rc plane hobby . The rotation and elevation are done with two 15 year old worn out servos . They are double sided taped together with the rotation servo output arm screwed to the wooden base . The elevation servo arm has a ...


Towers of Hanoi with Picaxe 08M

 This is the robot I built to solve the Towers of Hanoi puzzle . It uses three rc servos and a Picaxe 08M . This is the first time I've used the picaxe  but I have experience with pics and basic programing .

  The arm is constructed mostly with leftovers from my rc plane hobby . The rotation and elevation are done with two 15 year old worn out servos . They are double sided taped together with the rotation servo output arm screwed to the wooden base . The elevation servo arm has a balsa stick taped to it . The gripper is made from 2 identical gears I salvaged from something . The fingers are balsa hot glued to the gears . Sandpaper glued to the fingers helps grap the disk . A paperclip pushrod pulls on the gears with a wheel collar spring setup to avoid stalling the servo .

  The Picaxe 08M is on a Radio Shack project board . The servo signal lines are driven through 330 ohm resistors by the Picaxe .The programming is done through a Sparkfun FT232RL USB to Serial breakout board . The servos are powered directly from 4 AA batteries . Two1N4001 diodes drop the voltage to about 4.8 volts for the Picaxe .

  The program is adapted from a program in the book "Artificial Intelligence Projects For The Commodore 64" by Timothy J. O'Malley . I Bought the book around 1985 . The program uses 235 of the Picaxe's 256 bytes .

  The arm works better than I thought it would considering the servos are old , weak , and jittery . The arm is short and that causes problems picking the disks up without hitting the posts . I had to do a lot of tweaking to get it to work and it still leaves a disk on top of a post about once in 15 moves .  I will include the picaxe program  if anyone is interested .

Updated 5-15-2011 I have added the program hanoi_ser4.bas to the attached files . This program prints the stacks to the terminal window so you can run it in the simulator or on a picaxe without the servos . It can solve for 3 to 8 disks . I also added a schematic .

  • Actuators / output devices: rc servos
  • CPU: picaxe 08M
  • Power source: 4 AA batteries
  • Programming language: Picaxe basic
  • Target environment: desktop
Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post