I noticed there is a lot of people have a lot of interest in Arduino in automating and controlling their layout. I taught multiple classes on this over the years and ended up writing my own free book. Hopefully it will be of use to some of you.
It’s very step by step with photos and covers most aspects of programming and controlling Arduino boards. If you have any questions, please feel free to write me.
You deserve a great deal of praise for writing your book! I have tried to get into using Arduino several times but I gave up, perhaps too easily. I have only read the first 20 pages so far, but the important thing is that I think I understand what you are saying! That’s quite an accomplishment on your part. You have motivated me to take another stab at it.
Not to beat a dead horse, but I updated the links above.
There’s an intro chapter:
what arduino is,
accessories available for arduino (like servo and stepper motor control)
Appendix for basic electronics showing you some elementry circuits and how to use things like volt meters, voltage dividers diodes, LEDs, etc…
There’s only 3 things you need to know with arduino to master it:
Know if you want to read something (sensor, another arduino device) or control something (ie: Relay, servo, dc motor, stepper motor) and how to set up the pins to do that.
Know the pins are very low current and only operate at 5V/3.3V max. You’ll need to learn how to use transistors/relays/step-up,step-down circuits, logic level shift circuits, or voltage dividers. (All very simple)
A little basic programming and what shield board packages are available (ir detectors, photo voltiac detectors, servo controllers, stepper motor controllers, and DC motor PWM controllers
I could start a series showing how to create IR or current detection to detect a train. Then how to use that information to create working aspect heads or servos for aspect flags/RR Gate Crossings. I could also show how button presses could be used to animate a layout, or even play sound.
Judging from the Elegoo items and pictures on Amazon this appears to be identical to the “Arduino” brand. A number of companies have made their own clones of the Arduino boards. I don’t know if it is a license agreement or the Arduinos are in the public domain.
The main chip is a genuine atmel. The PCB design is licensed under creative commons and is available on the arduino website, meaning anyone can make one of these. If you burn out the main atmel chip on the uno, you can buy them in bulk < $5 each
I’m very late to this thread… Don, nice work on the first two chapters and the Appendix! Will you be preparing any chapters on how to operate servos with arduino? It would be nice chapter to encourage adoption of servos. Easy to find links to setting up servos but very little on sketches to operate the turnouts. If I may, I’d suggest a chapter for layout with just 8 turnouts using a Uno + sensor shield.&n
I also started my projects using the Elegoo starter kit. I believe they are almost exactly the same, but the Elegoo has a few more items, and it costs a lot less.
I did use the Uno for mapping out projects and testing them, but I bought a bunch of Nanos for very little money. They work the same as Unos, but cost less.
I’m still just a novice, but I really like my crossing signals I made that are controlled by nanos.
At age 70 with no computer background, I was at first reluctant to do this. But I actually enjoyed learning the basics.
John, great comment on using nanos. One can find great deals on nanos using screw terminals for those who prefer not to solder. I used a uno with sensor shield, very easy for beginners to set up servos with sensor shield. So many options!