Model train crossing signals

Did not know, hadn’t thought about, the Arduino ground being connected to earth ground. Probably would not connect it to the track while powering from the USB port though.

Although I’m a ham and pretty good with electronics, I spent a career doing motor control with relays. Sometimes I forget about using electronic parts like transistors and opto isolators instead, thanks for the reminder.