I got the 5 way tactile switch. I don't think it will work as well as regular tactile switch, and the size is really small. So I'm going back to using 3 regular tactile switch. For 3 functions, left, right, mode (just like dct controller).
Since it appears CP and DCT pump timing are different, I am going to program them separately, but user selectable.
When when plugging in the controller, if the mode button is held down, it will switch between CP mode or DCT mode.
I am using two 74hc595 shift registers so I have 16 LEDs. 10 will be used for speed display, and the 6 for mode.
In CP mode, Ext, H1, W1, W2, W3, ELSE
In DCT mode, Ext, H1
press and hold mode button will switch to feed mode for 10 minutes. During feed mode, I will make the 10 leds display the count down remaining time. I hate it when I don't know how much time is left during feed mode. During feed mode, I will make all 6 mode leds ON.
In either DCT or CP mode, if you switch to Ext mode, the pump speed is controlled by the PWM input.
In CP mode, press and hold left button to switch to time mode (equivalent to the knob on the CP controller), then press left/right to adjust time. Press hold left button to switch back to speed mode.
I can still use the right button press and hold for other things, like pwm calibration, change direction for CP mode, etc.
While pump is running, I will make the 10 leds display the actual speed. So for H1 mode, it is fixed, but for wave modes W1, W2 and W3 and likewise for Ext, I will make it display in real time the actual speed.
sort of like this
<iframe width="420" height="315" src="https://www.youtube.com/embed/dvPxNqefzbQ?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
https://youtu.be/dvPxNqefzbQ
I am still waiting for the FETs parts to arrive, I hope to get them by next weekend.