Author Topic: Arduino Scale Speed Calculator  (Read 2574 times)

0 Members and 1 Guest are viewing this topic.

peteski

  • Crew
  • *
  • Posts: 32958
  • Gender: Male
  • Honorary Resident Curmudgeon
  • Respect: +5343
    • Coming (not so) soon...
Re: Arduino Scale Speed Calculator
« Reply #15 on: November 16, 2014, 01:23:57 AM »
0
Won't work with just a loco right now, sensor 1 and sensor 2 are too far apart.  Loco + 1 car will work though.  I currently have a 'warn for 10 seconds' thing built in to allow the train to reach the exit sensor.  Then after 10 seconds the warning continues until the exit sensor is clear.  Gotta figure out how to handle this part better though.

When installed on the module, sensor 1 and sensor 2 will be just closer than the length of a short loco (GP-38 or F7 or something).

I see.  I originally mentioned that the speed (and also direction) sensors should be close together. That way you can detect short trains.  That pair of detectors should also provide you the direction of travel info (by looking at the sequence in which the sensors were covered).  That way if a train (short or long) enters the crossing's detection block but then stops and backs out without ever getting to the crossing, your circuit will be able to detect that and take appropriate action (raise the gates).  At least that is how I would envision it.
. . . 42 . . .

Mark W

  • Crew
  • *
  • Posts: 1988
  • Respect: +2125
    • Free-moNebraska
Re: Arduino Scale Speed Calculator
« Reply #16 on: November 16, 2014, 02:01:13 AM »
0
Final piece of the puzzle!  Now to put it all together and finish the script.

Contact me about custom model building.
Learn more about Free-moNebraska.
Learn more about HOn3-mo.

Mark W

  • Crew
  • *
  • Posts: 1988
  • Respect: +2125
    • Free-moNebraska
Re: Arduino Scale Speed Calculator
« Reply #17 on: November 21, 2014, 01:13:16 AM »
0
Drifting past the speed calculator to the full crossing driver.  All together now.

Contact me about custom model building.
Learn more about Free-moNebraska.
Learn more about HOn3-mo.