Control toy train from a phone or tablet. Only simple details of Arduino and full DIY instructions. You can install this system in any electrical toy and get a remote control on your phone or tablet via Bluetooth.
You can activate the IR sensor of the Arduino system on the train and it will stop before the obstacles.
And even more ... This application is also part of the large URB project, and you can use it to manage a large railway layout.