Hi
I`m a relative novice with the arduino system and it was whilst looking on "youtube" I found exactly what I was looking for my model railway layout. I purchased all to hardware with e exception that I used a UNO model instead of the NANO, then followed the link for the arduino sketch and found five sketches which confessed me I thought that you can only download one sketch to the arduino otherwise they would all get written over, but aside from this I keep getting error messages every time I download the first sketch. Can anybody point me in the right direction please.
Please show the sketch and related error messages, using code tags </>.
The sample sketches demonstrate various things, so that you can learn how to implement various actions. You have to pick the essential code, adopt it to your environment (actor pin mapping...), and merge it into a new sketch.
That video project appears to be fundamentally flawed.
The LCD and and control software seem to be nicely written, but i'm guessing it uses a stepper to position the turntable without any feedback.
This means - every time the system is turned off and on, you have to 'recalibrate' the reference positions...?! Steppers don't hold position very well when off, and even when geared down can skip steps.
Ideally, there will be an index sensor for 'home', or better still - for each landing position.
Otherwise the potential for derailed rolling stock is huge.
The other thing i'd add, is sensors to ensure no trains are on the transition points before turning the motor.