Pinkmodule

invention

Lego Rail Crossing Arm and Counter

by david.mccormack

Published on December 14, 2014

Keep the lego mini figures safe at rail crossings with this lego rail crossing.  It will also keep track of the number of trains which have passed over it as well.

How To Make It

STEP 1

Connect usb power to pressure sensor.

STEP 2

Connect pressure sensor to wire.

STEP 3

Connect wire to Arduino port a1.

STEP 4

Connect Arduino port d1 to wire, then wire to the servo.

STEP 5

Connect the Arduino port d5 to the branch.  Then connect the branch outputs to number and cloudbit. 
NOTE:  It is important to use the USB power instead of the 9V battery power.  The battery doesn't have enough power to keep the CloudBit powered, and it won't work most of the time.

STEP 6

Connect Arduino port d9 to all of the leds.

STEP 7

Implement the code for the Arduino.

STEP 8

Place the pressure sensor underneath the train track.

STEP 9

Attach the servo to a lego arm.  We just used a paper clip to put it on.  Enclose the servo in a lego housing to keep it upright.

STEP 10

Place pressure sensor underneath the track.

Related Projects

Number One Fan - BitOlympics event at BONEVET

This project is created by little makers on BitOlympics event at BONEVET Makerspace, where a number one fan is displayed...

Munch + Makeathon : What's on YOUR mind? #INVENTANYTHING

The secondary school at St Joseph's Institution in Singapore had it's first littleBits Munch + Makeathon. It was an inti...

Box Monster

In order to start using littleBits, Some kids of my community and the TicTec team run a workshop to get the Box Monster.