This is a prototype Lego train built with a power functions XL engine, a RoboDuino arduino board with an IR receiver and a reflex detector. Through the IR receiver I can control the speed and direction of the train using the remote control for my DVD player. The reflex sensor is used to detect codes embedded in Lego along the track.
The code is billed as high and low spots, where the length of the low spots indicates whether a zero or a one is encoded. Two examples in the video are 01 and 10. The first code indicates that the engine should slow down, and the second code is a stop command.
Notice how the engine is commanded forward by the remote control. It quickly ramps up to full speed and continues like this until it reaches the first code block. Once the first code block is read, the engine slows down to a more moderate speed. This speed is maintained until the engine reaches the second code (a stop command). Once the code is detected, the engine quickly decelerates to a full stop.
True, but that wouldn't Have allowed the extensions I have made in later videos :-)
kolaffsx 7 months ago