Posts: 13
Joined: Sat Apr 18, 2015 9:53 am
Location: Denmark

Gertbot / rpi how to input on/off signals ?

Fri Dec 11, 2015 9:03 am

I got the Gertbot to work as a DCC controller, for trains and decoders, even programming of decoders works perfect.

Now i need a way to read on/off signals, as many as possible, for detection of trains on tracks or positions.
Since gertbot cant read the DCC feedback , i was thinking that i could do some analogue input somehow.

Im using a rpi2b and gertbot.

Im making controlling software in C++, for model railroads, and would love to have some kind of track detection , to go along with it.

Any good ideas ?

User avatar
Posts: 204
Joined: Mon Nov 10, 2014 7:39 pm
Location: Coquille OR
Contact: Website

Re: Gertbot / rpi how to input on/off signals ?

Fri Dec 18, 2015 5:10 pm

Do you mean, like you have dozens of wires, each of which might be in one of two states ('on' or 'off', these being signified by different voltage levels on the wire), and you want to get the state of each wire? You can connect them to multiplexer inputs (with logic level shifting if required), and connect the multiplexer's output and selects to GPIO pins. There's probably something already made for this. There are also lots of USB devices that can take a bunch of logic inputs.

Return to “HATs and other add-ons”