I would seriously consider the simple solution, it's just
three switches in a handy, spring loaded format.
EC111012010H - ALPS - ENCODER, SELF RETURN, 11MM | Farnell United Kingdom
But if you
must use the encoder solution, here is the circuit I used...
You will need some way to program the PIC. Let me know if you want to give this a try and I'll post the source and .hex file.
Wiring:
I connected V+, 0V to the battery (max permissible voltage 5V!) and added the protection diodes to avoid damage to the
dna. You could try to tap 3.3V directly from the DNA board, it's something I'm thinking about.
EA, EC, EB connect to the corresponding three pins on the encoder.
U and D go to the Up+ and Down+ on the DNA board. If the up and down act backwards just swap these two wires.
MC is not connected to the DNA, it is one of the signals needed to program the chip. While programming you also need to disconnect U and D and connect the programmer to GP0 and GP1 as per the PIC programmer documentation.
The click switch on the encoder is wired to the DNA as any other switch would be.
The only down side to the encoder or three way switch solution is the specified switch life. I'll let you know more in a year lol
Hope this helps
