Hi all hoping someone can help. I am setting up JMRI with Arduinos using the CMRI library. So far I have got a turnout to operate from panelPro using CMRI two bit pulse. This sends out a bit which my Arduino code responds by operating a PL-11 turnout motor.
Within the Arduino code I have made an IF statement to send back one bit either 1 or 0 depending on the turnout state so I can use this as a feedback.
In panelPro I have the sensor setup for address 1001 which looks out for the one bit to come in from the Arduino.
?
For this part it is all working OK. I can operate the turnout on the turnout table and the sensor changes condition each time the turnout operates. ]
?
The problem is when I add the feedback sensor to the turnout properties it all stops. I can operate the turnout in one condition say Throw but not close. If I click on the sensor to change its state then I can operate the turnout close but not throw. It seems like the sensor is now preventing the turnout from operating due to the feedback
?
below is the arduino code
?
basic video of operation