Jump to content
 
  • entries
    400
  • comments
    930
  • views
    288,649

Level crossing gates controlled by an Arduino


Fen End Pit

2,710 views

Over the last week or so I've been inspired by an article in the MERG magazine to have a go with an Arduino. These little micro-controllers are ridiculously cheap and can be programmed to do all kinds of things. I've chosen to control a couple of stepper motors to make a pair of level crossing gates.

 

 

 

 

David

  • Like 7

7 Comments


Recommended Comments

  • RMweb Premium

That's really quite interesting. Not heard of those before.

Any reason why they couldn't be used to power turnouts or signal arms do you think?

Link to comment
  • RMweb Gold

That's really quite interesting. Not heard of those before. Any reason why they couldn't be used to power turnouts or signal arms do you think?

No reason at all. I have seen a bouncing signal implemented using them already. The only difficulty (which is the next stage of development) is that the system doesn't 'know where it is' on start up. On a signal that would mean  If it was turned off when 'normal' then everything is fine, but if the power goes when 'reversed' then the system doesn't know that and would try to rotate another 45 degrees from the danger position if you see what I mean.

The solution is simple enough, I'm going to put a little cam and micro-switch on the shaft so that the system can ensure that the motor is at a 'datum' point before it starts.

 

David

Link to comment

Hi David, Where did you get your Arduino from ? I've looked at one site but there cheapest one was

Link to comment
  • RMweb Gold

Hi Geddi

 

The thing with Arduinos is that you should always buy your first one as a 'genuine' arduino from one of the main suppliers, that way you support the arduino project and help fund development in future. That will probably cost about

Link to comment
  • RMweb Gold

Hi, Do you have the code for this, Looks really good

I'll send this as a PM, probably not of interest to too many people.

David

Link to comment

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
×
×
  • Create New...