September 2005
Controlling a train and its tracks using LEGO Mindstorms.
![]()
This station allows passengers to get on and off the train. But underneath the platform, a light sensor detects the train when it arrives. It can be placed either to detect the wheels (then it can even count them if necessary) or the body of the train. I chose the latter option.
![]() Using pneumatics, this module is able to switch the direction the train will take. Though this invention works, some things should be taken into consideration:
![]() Some parts where removed to show the inside of the rail switch.
You know that with LEGO rails, they only recieve power when at least one of the switches is set so that power is delivered to that part of the track. In order to achieve this, the switch must be moved all the way in the desired direction. Because my rail switch uses the pneumatic mini-cylinder, this is not always done correctly, thus resulting in power loss as soon as the train crosses the switch. I'm working on a version using the large cylinder. Meanwhile, you should be careful when using this design (though it worked fine with me most of the time).
![]() This is actually a pole reverser switch attached in a way that one side short circuits it shortly when it rotates. This way it can be read by an RCX/Scout as a normal touch sensor that opens and closes rapidly by connecting it with the other side. You can even measure the length of the train by counting the clicks it produces on the sensor.
![]()
You can see that the pole reverser is mounted on the back side of a 2x2-2x2 bracket. The large wheel that turns the pole reverser touches the train withoug tilting it or slowing it down too much.
![]()
This crossing can be coupled with the roll-by sensor or the station sensor to lower the crossing gate when the train is about to come and raise them again afterwards. It is powerd by a micro-motor, but you can use a normal motor as long as you gear it down so it does not move the crossing gate too quickly. A touch or rotation sensor might increase the accuracy a little, but it was not necessary in my case.
A little flash movie to help you understand how the modules work together.
|
← navigation ↑ home · stuff ↓
E-mail:
Visitor map:
SITE STATUS:
|