There’s a number of good references on the net where folks are using the Arduino to control various aspects of their model railroad layouts. Here’s a number of interesting projects:
Become the Maker you were born to be. Try Arduino Academy for FREE!
http://modelrail.otenko.com/category/arduino