Hi, @Cois_za
Can you DRAW your circuit please, with pen(cil) and paper.
Fritzy pictures show basically nothing of pin names or labels.
Draw proper schematic and label components and pin names, and you ca draw your proper DPDT switch.
Can you post a picture of your project so we can see your component layout.
The write a basic pot input PWM output code and get it working.
Doing all your code in cad before using real world components is flawed as you have found.
Thanks.. Tom...
![]()