Re:Raspberry Pi Model Railway Automation
by cweagans on Saturday July 27, 2019 @04:21PM
(#20543945)
If you wanted to avoid the clock thing, you could probably do something like this.
Have two rows of sensors set up like this:
* * * * * * * *
* *
When both of the second row of sensors are high, read an 8 bit binary number from the first row of sensors. This allows you to have up to 255 different IDs with 10 magnets per train. First row is data, second row is alignment. Fast moving trains might have issues with this kind of setup though.
Have two rows of sensors set up like this:
When both of the second row of sensors are high, read an 8 bit binary number from the first row of sensors. This allows you to have up to 255 different IDs with 10 magnets per train. First row is data, second row is alignment. Fast moving trains might have issues with this kind of setup though.