How to use microcontroller to stand in for joystick
March 5, 2011
I wasn't sure if I should post this in another forum or not. I consider it a beginners question having to do with electronics but I need to give some back story.
Back in the day (probably around 1985) I bought this quickfire SVI-2000 robot arm (http://www.theoldrobots.com/arms2a.html). I thought it was so super cool. We had them at my school and when I found one for sale for $19 at a local factory outlet store I snatched it up. Back in '85 that was a lot of allowance money. It has five degrees of motion each controlled by a small motor and gears. Unlike the Armitron, sold by radio shack at the same time, each joint has an independent motor which I would think would make it an ideal target for microcontroller control. There were originally two ways to control it. You can hook up two standard atari 9 pin joysticks and use them to control all of the motions or you could use the optional computer interface card (which I never had) and control the arm with a MSX Computer. When used like this, the arm was seen as a kind of trainer to teach programming. It used a language called Rogo which was very similar to Logo.
I never did use it with a computer but I recently dug it out and wondered if I could control it with a micro controller. It runs on 4 D cell batteries. From what I understand of the joysticks, they are just switches. I can see from some info online (http://pinouts.ru/Inputs/JoystickAtari2600_pinout.shtml) that pin 8 is the ground and then the joystick just connects that to the other pins to close the circuit. I measured the current across the relevant pins and it looks like 2.5 volts. I can see inside the arm there is a little circuit board between the joystick inputs and the motor wires and it appears to have transistors on it.
I'm planing of buying the start here microcontroller kit from solarbotics to do that beginners project but I'm wondering if that microcontroller could also be used to drive this arm. Since the power for the motors is already provided by the 4 D cells, I would just need something to stand in for the switches in the Joystick. Pardon my completely beginner question, I'm very new to microcontrollers. My impression is that I wouldn't need an actual motor driver for this application as I don't need to control direction and current and all that, I simply need to open and close circuits just like the joystick would. I'm guessing it would involve the analog out pins on the chip but I'm a bit at a loss as to exactly how I would wire it to make a complete circuit since that is what the joystick does. Would the ground pin (pin 8) have to be connected into the circuit somewhere as well? I wonder if that 2.5 volts is just opening one of the transistors to pass the larger current to the motors. I realize it may be hard to give an exact answer when no one has the exact robot arm in front of them. I tried looking in the manual for the Picaxe but it didn't really seem clear as to how to use a microcontroller to do this. Any thoughts?