I am considering dipping my feet into the use of Arduino. There are mechanical solutions involving the use of Double Throw Double Pole and momentary switches, but I am looking for something a bit more with a single momentary switch. As I learn from my son's layout for when I build my layout (wife approving of course).
I have a DC track for my 4yr old son. I am keeping power very simple, even though its quite complex. What I have built so far is in prep for DCC in the years to come.
I have a train yard puzzle where the train has to zig zag off the inner loop to the end where the engine house is. This part is made up of 4 track power segments which are electronicly isolated on both rails.
If I wanted to use 2 DPDT switches, 1 would be used to alternate which of the 2 left tracks are powered, the second would do the same with the right 2 tracks.
What I am interested in is the use of a Arduino (maybe mega or uno) to run 2 relays (I think) to alternate between 2 track legs. To simplify things, ideally using on 2 momentary switches. I have seen momentary switches which turn from green to red, which I can use to indicate which track has power.
My second Arduino project is more common. I am looking for a good turnout control for RailCrew switch machines. They use 2 wires like Kato. The problem I am want to over come is the 4 turnout limitation. Some form of stackable board method where I can control 13 turnouts.
The ideal solution would be where all of this could be done with 1 Arduino. If I apply some digital knowledge, 5 channels is good for 32 addressable results. So if I can use some of that logic and stackable boards, that would allow me to keep the physical of this simple. Just more program dev work.
Thanks,
John
I have a DC track for my 4yr old son. I am keeping power very simple, even though its quite complex. What I have built so far is in prep for DCC in the years to come.
I have a train yard puzzle where the train has to zig zag off the inner loop to the end where the engine house is. This part is made up of 4 track power segments which are electronicly isolated on both rails.
If I wanted to use 2 DPDT switches, 1 would be used to alternate which of the 2 left tracks are powered, the second would do the same with the right 2 tracks.
What I am interested in is the use of a Arduino (maybe mega or uno) to run 2 relays (I think) to alternate between 2 track legs. To simplify things, ideally using on 2 momentary switches. I have seen momentary switches which turn from green to red, which I can use to indicate which track has power.
My second Arduino project is more common. I am looking for a good turnout control for RailCrew switch machines. They use 2 wires like Kato. The problem I am want to over come is the 4 turnout limitation. Some form of stackable board method where I can control 13 turnouts.
The ideal solution would be where all of this could be done with 1 Arduino. If I apply some digital knowledge, 5 channels is good for 32 addressable results. So if I can use some of that logic and stackable boards, that would allow me to keep the physical of this simple. Just more program dev work.
Thanks,
John