Saturday, February 14, 2015

Post 10:Using the Serial Port/Hack-A-Toy






Since I stupidly forgot to document the Serial Port lab, I decided to fuse it with the Hack-A-Toy lab and turn this cat on with the Serial input to the Arduino!




So first we have to open kitty up! Okay so there's a lot of wires in here and...2 motors.






Okay now we just need to see how to attach him to the power supply instead of the batteries he's used to!
Okay! After a few adjustments our cat is hooked up and ready to go! First let's see what this cat does when he's on...



Oh. That's kind of creepy. First step accomplished though! We got it to move! Now let's get the Arduino to send voltage to it via a signal from the laptop we're using!

 
It's a success! I know it's a little hard to tell (blame my crappy camerawork...) but to explain it, I programmed the Arduino to allow power to be sent to the cat when I sent a 1 through the Serial port. Then I got it to cut power when I sent a 0 instead, turning off the cat (keep an eye on the LED eyes). In the original the cat would have been replaced with an LED, but hopefully this suffices.


Thanks for your help catbot! I'll try to put you together at home...maybe...


No comments:

Post a Comment