Thanks in no small measure to a timely visit from my friend Jim Gadd I've now got a much better grasp of what's required to drive a solenoid from the Basic Stamp. I've tossed the old circuits and replaced the redundant voltage regulators with transistors, as per my original idea. Thanks to Jim we had all set to rights in a brief afternoon's tinkering and I've been happily programming away ever since!
At present my programming skills are for shit, but thanks to a few tricks I've picked up from Jim I've now got a feel for what's needed to make the thing work. To date I've managed to write several subroutines that, when combined, actually do make the thing sort of dance. The next thing I've got to figure out is where to go, to find some transcribed dance steps that I can "arrange", to use the composer's term, into something that works for Patty.
Following is the latest program listing, which includes several subroutines, along with descriptions of what happens when they run.
Return to A Foray into Robotics