I was looking at LEGO NXT components, and I found the ultrasonic sensor. I was wondering that if I put off to the side of the track, the nose of my train would activate the sensor, thus operating the servo and closing the gate?... I have already prepared my crossing with a gate attached to a 12 stud axle. At the end of the axle pointing away from the track, a servo would move the axle at about 45 degrees. Is this possible or are there any alternatives that would work better? I'm not sure if my idea has been attempted before with Power Functions tracks. Also note that I am using a 32x32 base plate. I am hoping that I won't have to use a Mindstorms control panel (I'm not entirely sure what they're called) because they are so expensive.

1 Answer 1


As you suspected, you cannot use the Ultrasonic sensor without an "Intelligent Brick" (EV3 or NXT). MINDSTROMS would be a great way to automate your train if you are willing to make the investment.

For more ideas on how to use LEGO MINDSTORMS with LEGO trains, check out Sioux.NET.

  • Thank you! I appreciate my question being answered and you have contributed to my LEGO City layout! Oct 5, 2014 at 4:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.