Pages: [1]   Go Down
Author Topic: Model Train grade Crossings with Lights and gates  (Read 794 times)
0 Members and 1 Guest are viewing this topic.
Canandaigua, NY, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am designing a circut to control the crossing lights and motors for the gates. I have an ideal to use photo sensors on the double main line, but I do not know if the senors should in series or be independent. I am also looking for some help in writing the code.
Logged

Queens, New York
Online Online
Faraday Member
**
Karma: 84
Posts: 3401
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it a single direction track? You may want to look at a simple button with a spring lever (I can think of the actual name) or an IR beam
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 156
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am designing a circut to control the crossing lights and motors for the gates. I have an ideal to use photo sensors on the double main line, but I do not know if the senors should in series or be independent. I am also looking for some help in writing the code.

You could use photo resistors under each track so when the train blocks the light hitting them the arduino can trigger the crossing lights. (With a delay in turning them off once the normal light level has returned) You could probably run them in series or independent and either would work. However, running them independent of each other will allow you to adjust them individually.
Logged


London
Offline Offline
Edison Member
*
Karma: 46
Posts: 1368
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am designing a circut to control the crossing lights and motors for the gates. I have an ideal to use photo sensors on the double main line, but I do not know if the senors should in series or be independent. I am also looking for some help in writing the code.

You'll probably also need sensors to tell when the whole train is clear of the crossing, as trains are of indeterminate length and speed. Also remember that two trains could be crossing at the (nearly) same time, so the gates will have to remain closed until both of them have cleared the crossing.

I would, therefore, use indepedent sensors, not connected in series.Your choice of sensor will somewhat depend on what gauge/scale you are modelling to. It's hard to hide a 1/2 dia. LDR on an N gauge layout smiley

Logged

Pages: [1]   Go Up
Jump to: