Jump to content
THIS IS THE TEST SITE OF EUROBRICKS! ×
THIS IS THE TEST SITE OF EUROBRICKS!

Recommended Posts

Posted (edited)

Hi,

I'm new to this forum and what to share my project of the last months: Arduino Powered LEGO train!

Check this video to get the first look:

What i can do right now:

  • Arduino MEGA powered trains
  • Up to 3 trains (can be more, not tested yet)
  • Self written C++ code for controlling the trains. Trains chooses random his path, no predefined paths yet.
  • HTML5 Web Interface
    • Canvas dynamic train layout
    • Control trains and Points
    • Check status of tracks and Points
    • reset MEGA
    • MEGA connected to Raspberry Pi with send/receive commands via SocketIO (temp solution, waiting for the Ethernet Shield!)
  • Working crossover
  • Working red/green signals (not on video)
  • Magnets in Trains to let reed sensors detect the trains
  • Differente speeds per tracks
  • Multiple station segment (wait a couple of seconds on that segment)
  • Cargo segment (wait couple of seconds and reverse)
  • Track in video has 18 track segments, 4 normal points, 1 double point, 1 crossover, 1 red/green signal, 2 station segments, 1 cargo segment.

Some issues left:

  • Speed of the MEGA, not always fast enough to check reed sensors.
  • USB connection to Raspberry Pi not as stable
  • Lots of crashed :)
  • longest stable run with 3 trains: 4 minutes... with 2 trains: 10 minutes

Components used (most bought at BangGood)

  • Arduino Mega with shield for connections
  • modified points
  • 3 HW-95 Motor drivers
  • 1 powerfull IR led
  • lots of wires (used old CAT5 wires!)
  • LOTS of time...

So far for today! post pictures of details later.

 

Herwin

 

 

Edited by herwin
Posted

Hi,

Thanx! Yes I must use a lot of cables. There are 18 reed sensors with use 2 wires per sensor. The Points use also 2 wires and the signals 3....

I don't have a table and build on the floor, so the cables are next to the tracks. As we are in experimental fase i did not tight them up yet.

 

 

  • 10 months later...
Posted

Hi,

Hereby a big update. I have completely rewritten the application in QT with the Arduino only as collecting device and for process the lights, IR e.d. on the track.

Hope soon to implant my PFx Bricks with Bleutooth (delivery beginning 2018?).

Here a little video of my test track: 

 

 

I motorize my switches with modified switches (open up the switches to remove the click). and they are powered by a 5V battery pack.

 

Herwin

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...