The Arduino is an excellent tool to use on the layout. I played with it on and off for 6 months or so.
IMO its usefulness for model railroading is pretty much limited to your imagination.
i experimented with it to see how well it a actually worked. It really is useful for many train related tasks.
As for the programming side I found it fairly simple but I have a fair amount of programming experience.
if programming is not you suite then there are numerous books that are great for learning this. Any most of them come with lots of example scripts so you can probably find a script that either does just what you want, or is close enough that you can make minor changes. I bought the "Arduino Cookbook" and found it terrific. You can also find lots on the internet.
in addition there are a bunch of "shields that you can purchase which add additional functionality such as lan or wi-fi capability, motor shield, etc, etc. Shields are boards that plug in to the Arduino to provide the additional functionality.
Note I called the programs "scripts" but i think they may be called something else which I cannot remember.
Thanks,
Ed