I have the Mega, motor shield, and Ethernet 2 shield. I built an interface board to interface with my S88 network, but I’m stuck. Which pins should I use for clock, load, and data? Maybe 51-53? Where do I add my code? I wrote a small sketch that reads the S88 sensors. Has someone already done this? Thanks, Chuck
OK, so either nobody knows about S88 on DCCpp, or nobody has time to help the new guy. If it's the former, then I have good news. I figured it all out myself. I have a prototype PC board that plugs into the exposed end of the Arduino Mega, which gives it access to the extra data pins. On this board I have 3 RJ45 connectors for 3 S88 buses, in my case, one for west, one for east, and one for the town and yard. I added two files, S88_Sensor.cpp and S88_Sensor.h, then I made three simple modifications to Sensor.cpp. It should only take a millisecond to read a whole bunch of S88 sensors. The output has the same <Q #> or <q #> messages when bits change, and I also support the <Q> command. If there's any interest in this, let me know. I could have some PC boards made then sell them for a reasonable price and put the software out on Github. Maybe someone could help with this??? BTW, I'm also the head mechanic for the Fort Collins Municipal Railway Society. Check out what I did with my 1:1 electric train yesterday.
Sorry, man. I don’t have a clue what you’re saying but it sounds as if you have a good grip on the situation. I use a simple NCE DCC system on my small layout and that’s as advanced as I’ll probably ever be.