Train That Makes Noise With Arduino, by Graecen, Gabe, Abdi
by PHS_Engineering in Circuits > Arduino
172 Views, 0 Favorites, 0 Comments
Train That Makes Noise With Arduino, by Graecen, Gabe, Abdi
We made a train that makes a noise every 10 seconds.
Supplies
Wires, resistors, a transistor, a toy sloth, a relay, a breadboard, and an arduino.
Open the Train
You have to unscrew the screws on train, the pry it open.
Strip the Two White Wires
Strip the two white wires with a wire stripper/cutter.
Build the Circuit
Follow the wiring diagram pictured.
Connect the Wires With the Alligator Clips
Connect the wire under the relay with an alligator clip to one of the white wires. Connect the wire in the top right of the relay with the other wire.
Write Your Code
Copy the code pictured above. Then upload the code and it should work! If this doesn't work, swap the sloth for a train.