Interfacing Micro to Transistors:
Having already programmed the picaxe-08m using LEDs, switches, and LDR, it's not all that much different to programmed the toy-hacked. It turns out the Frank Chicken has only one large motor that controls all aspect of its geared movements of the beak and wings and legs. I was able to located the motor positive and negative connection and cut and re-solder a much longer wire set that runs up and to the back and down. I burned a side-hole so the wires can easily slip between the casing and I glue the wire down using hot glue.
Though it seems as simple as plugging those motor wires into the picaxe output pins. There is one more criteria for this to work. The pic only put out about few mA, not enough to run the motor. We can use a relay switch but that would be a over-kill. Relay switch is a robust circuitry for 2Amps and above. For my motor, I just need to increase my gain, so here the fabulous TIP102, darlington transistor works wonders. With this configuration I could achieve gains of 750 to a 1000, depending on the resistors. Now, I may begin programming the Franken Chicken.
Music/Advance Motor Control:
I've also started playing with music and more advance motor controls. Instead of using switches or LDR as input to turn on the Franken Chicken, I use the serout Pic command that will command me to push a keyboard button and start up Franken Chicken. I simply added input, output devices to the darlington configuration.
No comments:
Post a Comment