Well, J and I threw together a couple segments of track and pulled out a cheap Santa Fa engine - no sense in blowing up a good loco the first time out of the gate. We did a little bit of coding to control the speed and direction, as well as a couple LEDs and a button to switch direction, and got it to work that very same afternoon. Sorry, we don't have a video, but I'll post a picture of what it all looks like with the Arduino, the motor shield and the proto shield all stacked together.
Now we just need to make a big circle of track instead of a straight line - blasted thing kept running off the end of the track before we could push the button to switch directions. We could probably also use some better inputs, like a Wii Nunchuk controller, which as it happens, I have two on order right now. They are coming from Canada, so it might be a couple days before they get here.
No comments:
Post a Comment