Sign in to follow this  
mtrkustoms

ARDUINO AUTOMATED LEGO RAILCAR

Recommended Posts

Hi to all,

From the MTRkustoms factory we have the pleasure to present the ARDUINO AUTOMATED LEGO RAILCAR

Here you can see the Railcar in detail

This use modification pass the following phases

PF --> 9v --> Arduino Control

The original idea was very simple, have an autonomous and continuous Railcar in open circuits.

I based the function in a great cheap invent, The Arduino Board, this small, easy programming and low cost, gives me the chance to make it real with a cost below 10€, including a PWM motor controller L298N

Only 1 9v cable was "damaged" to convert its connection.

The cycle work is very simple, Railcar goes from end to end regulated by the L298N with a PWM velocity. When the Railcar hit the final of the track (switch detection) stops 5sec and go to the other end and stops 10sec (and able to the passengers to go down)

Time, velocity and stops time can be easy fixed by the programming.

Some pictures of the system

Stop No.1

17079897130_a604214c75_c.jpg

Stop No.2

17241468566_e40d6b0730_c.jpg

Switch Detail

16644996644_edaa001fa7_c.jpg

Cable connection boxes

16644997704_444f248c3c_c.jpg

16647228553_f0bda30b3d_c.jpg

To hide the Arduino board and the L298N I made a modern prefabricated transformation Station

17265661172_5d429b67a5_c.jpg

17241469116_80a9b551de_c.jpg

16644997264_77bf64fe26_c.jpg

Detail of the track connection

17265660842_14d77a6e0c_c.jpg

Interior of the Transformation station

17060041867_9f73943442_c.jpg

All Full resolution pictures here

A little video

Enjoy it

Share this post


Link to post
Share on other sites

Great to see someone else putting an Arduino to use - especially a little Nano!

For future attempts, you might want to try an ultrasonic sensor at the end of your tracks instead of switches - that means you're not dependent on a physical contact to shut off the train (which can be unreliable sometimes). Here's a video to show you what I mean:

Share this post


Link to post
Share on other sites

That's a great setup on many different dimensions- a tram running in the street, the automation, and perhaps the thing that stands out the most to me is the attention paid to the "transformer" building- a great job camouflaging the electronics.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.