To control our motorized toy, we have to first pull out any wires linking to the switch, motor, and speaker. Unfortunately, this model toy only has one motor which causes the toy to jump.
We carefully pull the fabric off of the toy in order to access the electronics located inside the toy's chassis.
I solder on extension wires to any wires that were too short for use. The purpose of these wire will be for later use when interfacing with our microcontroller.
MadCow transformation into CyborgHappyCow
MadCow has been mad all his life. I decided to make MadCow happier since he has such a great smile. However, to do this MadCow needed a new eye to see the world in a new light. So, I reamed a hole through his right eye and inserted a LDR to sense light.
Once the light becomes dimmer, the new CyborgHappyCow plays a Happy Birthday tune and then jumps for 2 secs. To play the tune, I programed the PicAxe to control pin 4 which plays through Piezo sounder with a 10 microfarad capacitor to intensify the sound.
To control MadCow's motor, I programmed the PicAxe microcontroller to power on Pin 1 which will power the motor. I used a Tip42C transistor to boost the voltage to MadCow's motor.
So, as soon as the tune finishes playing his tune he jumps for hurray for 2 secs.
Overall, CyborgHappyCow is much happier and much more satisfied with his new and improved abilities
No comments:
Post a Comment