Train That Makes Noise With Arduino, by Graecen, Gabe, Abdi

by PHS_Engineering in Circuits > Arduino

170 Views, 0 Favorites, 0 Comments

Train That Makes Noise With Arduino, by Graecen, Gabe, Abdi

IMG_0130-preview.JPG

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

wiring diagram.png

Follow the wiring diagram pictured.

Connect the Wires With the Alligator Clips

IMG_0130-preview 2.JPG

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

code.jpg

Copy the code pictured above. Then upload the code and it should work! If this doesn't work, swap the sloth for a train.