|
In lugnet.announce.moc, Esben Kolind wrote:
> Here's my go at an automated level crossing using NXT.
>
> All pictures in this folder:
> http://www.brickshelf.com/cgi-bin/gallery.cgi?f=340102
Nice - the strings are invisibly thin, probably even while moving. They might
break at some point, but you seem to have a pretty good system there.
> Using another sensor, it should be possible to automatically
> detect the speed and length of the train pasing and adjust the
> times accordingly.
Actually, I think you could do this at least partially with a single sensor. If
the train is running at a fixed speed, you can have the program figure that
speed out by measuring the interval between crossings (you know the size of the
track loop). You can then get the length of the train by measuring how long the
single sensor detects a train. This could be set up to self-adjust both the
delay and the length of time the gates stay down.
A quicker way with a little more tuning is to use the length of time the sensor
detects the train as the length of time the gates stay down (maybe with a little
bit added). That assumes however long it takes the train to pass the sensor is
how long it takes to pass the crossing as well (unless the train is changing
speed between those two, a safe assumption). The delay between when the train is
detected and when the gates start to drop could be set on the NXT (by a simple
text input system on the LCD and using the three buttons). That means you'd only
have one parameter to set when you run the system, and it could be entered on
the NXT itself (no need for continuous tweaking of the program).
What language are you programming in?
--
Brian Davis
|
|
Message is in Reply To:
| | Automated Level Crossing using NXT
|
| Hey, Here's my go at an automated level crossing using NXT. All pictures in this (URL) folder>. Two movies on YouTube: (URL) Movie 1> (Entire setup) (URL) Movie 2> (Zoom on level crossing) (URL) Here's how it works: The train passes the (URL) (...) (16 years ago, 4-Sep-08, to lugnet.announce.moc, lugnet.trains, FTX)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in...
Robotics
NXT programmable brick
|
|
|
|