Search the Community
Showing results for tags 'RCX Mindstorms automation'.
Found 1 result
-
Most of our layouts run a loop, but this time we wanted a commuting train on a single track. After considering different solutions using control centres and various non-Lego parts I came up with this solution for two RCX bricks. At each end is a setup like this: RCX Train Control by Duq, on Flickr The track connector is attached to outputs A & B together using a 2x4 electric plate. Using two outputs allows more power for the track. The third output is used for the PF light. Only one input is used, the original Mindstorms light sensor. Halfway along the track I used some sellotape to insulate the two sides. Hiding the light sensor under the platform makes it virtually invisible but the main advantage is that it's sheltered from ambient light. This makes the light trap very reliable. The trap at the other end of our track was not underneath a platform and as a result it failed when some sunlight lit up the room. The structure of the program is simple; when it starts it runs the train inwards until the light sensor detects a drop. It then pauses for a few seconds and send the train out in the opposite direction. After running it for a few seconds (the time it takes to reach the sellotape plus a few seconds) and then reverses the direction again. Before the direction is changed however the train will have crossed into the other section which was pulling the train in and waiting for the light sensor to be triggered. By the time this second section sends the train out again the first section is waiting for the train again. The system ran quite reliably all day long. This setup has a lot of advantages. Because it uses a light sensor trains will stop at the end of the platform, no matter where in the train the motor is. The program on both sides is identical (although I had to adjust the light sensor threshold and running times because the sellotape wasn't exactly in the middle). You could use this setup for a stop along a line as well. For the next show I want to add control of a switch so one train arrives in the station and another leaves.