A very basic PCB design question but I want to be sure before I move on.
I'm translating my project from breadboard to PCB.
I am using a rotary encoder with two large mounting tabs, that I assume are there to be soldered in to reduce any chance of pressure on the pins themselves.
In my PCB software I can connect he mounting hols to a net if I wish. Should i connect them to GND hence also grounding the entire body and shaft of the encoder or should I leave this pads unconnected to any net?
As long as you are soldering the mounting tabs, it shouldn't matter one way or the other. But do remember that these encoders are very jittery and since you are designing the PCB, you may as well add a de-bouncing cap and resistors.
Here's a simple setup I've used, one for each of the encoder pins and one for the switch pin.
The exact resistor values and capacitor values are not that important. The larger the values, the longer the time constant.