Hello,
Though I am more familiar (experienced) in PIC, hence Arduino, the Raspberry Pi vs Arduino is a question of what you have in hand and how much time do you have at your disposal.
There is a good example of model of controlled railway, including hardware, coding and connection steps.
This is an older thread, you may not receive a response, and could
be reviving an old thread. Please consider creating a new thread.
Model Railway Forum
A forum community dedicated to Model train and railway owners and enthusiasts. Come join the discussion about collections, displays, models, styles, scales, motors, reviews, accessories, classifieds, and more!