TRISTAN WHISENANT
Published © GPL3+

Arduino Train Magnetometer

Turn your Arduino into a data-taking monster using only a small magnetometer, a toy train, and a magnet (or two).

IntermediateFull instructions provided15 hours997
Arduino Train Magnetometer

Things used in this project

Hardware components

SparkFun RedBoard
SparkFun RedBoard
×1
Breadboard (generic)
Breadboard (generic)
Optional: you can find the Arduino + breadboard holder I used here: https://www.sparkfun.com/products/11235
×1
Adafruit LSM9DS1 9-DOF Breakout Board
Serves as the magnetometer for the project.
×1
Salty the Toy Train
Motorized engine drives the magnetometer and Arduino around a track.
×1
Brio Train Track
Keeps our train on a straight path.
×1
Brio Car Transporter
To mount our measuring equipment.
×1
AA Batteries
AA Batteries
To power the train.
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Philips Head Screwdriver

Story

Read more

Schematics

Fritzing for LSM9DS1 + Train Motor

Code

Arduino Sketches for Salty

There are three different sketches depending on desired level of automation. The NoMotorMagTrain can be used by moving the train by hand or flipping a switch manually The MotorMagTrain can be used in conjunction with a transistor/batterypack to move the train using pin 12 The Salty_Driver_TJW allows for IR communication with the train.

Credits

TRISTAN WHISENANT

TRISTAN WHISENANT

1 project • 0 followers

Comments