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

Recommended Posts

Posted (edited)

Hi folks,

It is one of my earlier builds that I want to share with you: an automatic railway crossing. The LDD sketch:

17526502820_a71c977e78_b.jpg

The barriers of the crossing are powered by two medium PF motors. I use two PF receivers: one to control the PF motors of the barriers, and one to control the lights. The two PF lights are crosswise connected to the PF receiver. By this means, I am able to get flashing lights and add sound. All of this above is controlled by a Lego Mindstorms NXT and an Hi-Technic HR link (in case you don't know: with the HR link you can translate Mindstorms commands into PF commands).

In the video below you can see and hear the result:

In the video below you can see the result in a small train layout. A PC application controls the two trains (both having a Mindstorms NXT + HiTechnic sensor to control the train) and also the Mindstorms NXT that controls the railway crossing.

Hope you like it.

/Hans

Edited by Hanso
Posted

Looks great.

How does the crossing know when a train is coming? Seems like the one train signal is a bit earlier than the other.. ?!?

Posted (edited)

The PC application "knows" the train location on the layout. This is done by RFID tags under the rails (Codatex). The Codatex RFID reader reads the unique tag id and passes this information to the PC application. The application is flexible, that is: you can configure that if a specific card id is passed, the barriers have to close and at another card id they open again.

Hope this explanation helps.

/Hans

PS And yes, it is a quite pricey solution. But it is the perfect combination of writing software, playing with Lego and trains ;-)

Edited by Hanso
Posted (edited)

I built a similar thing, but instead of using a RFID reader / computer software / IR stuff, I just had the train run over a section of track (one on either side of the crossing) that pushed down on a touch sensor that triggered the gates to go down until both sensors were released.

Sorry, I don't have any picks as my Lego stuff is currently boxed away at the moment. :cry_sad:

edit: typo

Edited by WholeWheatLego
Posted

Yes, it is pricey. But it is the only way to have the flashing lights and sound, all with standard Lego (okay, I count HiTechnic as true Lego).

/Hans

Posted (edited)

So awesome!!

Hanso makes a good point:

PS And yes, it is a quite pricey solution. But it is the perfect combination of writing software, playing with Lego and trains ;-)

he's not just buying a crossing ....it's the whole experience.

Cheers,

LLL

Edited by Luke_likes_Lego
  • 1 year later...
Posted (edited)

Added a new video with the automatic railroad crossing at Youtube:

Enjoy,

Hans

Edited by Hanso
Posted

Amasing work Hanso, and quite complicate for the average NXT Builder, but not for you!

You managed to achieve something realy nice and a lifelike resault!

Posted

Amasing work Hanso, and quite complicate for the average NXT Builder, but not for you!

You managed to achieve something realy nice and a lifelike resault!

Thank you Patgeo for the nice words.

Hans

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...