Having trouble with 3 pos switch
Hi all,
Long time lurker here, so please be gentle!
I would like to say a big thank you to Ian for helping me come out of my shell and try to make an AHCP panel for the A-10.
I got my Arduino and toggle switch for the CICU working like a charm, using a SPDT Toggle switch (ON-ON). :thumbup:
However I am struggling with my IFCC switch - I have a DPDT switch (ON-OFF-ON), up is wired to pin 7, down to pin 9. I have used the switch3pos code for the IFCC from the reference document, assigning PIN_A to 7 and PIN_B to 9.
If I throw my switch up, the IFCC goes up :thumbup:
If I move my switch to the middle position (OFF), the virtual switch jumps to off (down), missing test (middle).
If I move my physical switch down, the virtual switch just stays down. Like wise if I move back to the middle, the virtual switch stays down. :helpsmilie:
I'm a novice when it comes to electronics so I'm probably doing something stupid. I'm pretty sure my switch isn't broken however, as I've hooked up some LEDs to both poles and they work as I'd expect.
Any help would be appreciated!