The data sheet has a number of switches but they all look the same. If you notice, they all have a "push" switch that connects T to C. On some of the switches, there is also a "Ground" pad which is sort of the opposite pad from C.
So here is my question. If I am going to wire this active high with pull-down resistors, I would connect 1, T, 2 to the signal wires with the pulldown resistors, then connect C to +3.3V, then the pad "opposite" of C is ground?
I'm using an esp32-S3. I am writing an application where I want any one of multiple gpios to "wake" the mcu from deep sleep. Unfortunately, the only options for multiple gpios to wake an esp32 are ALL_LOW or ANY_HIGH (I don't make the rules). Because of this, I have to wire my switches active high.
Looking at the pictures, it looks like one side is a metal plate. It would make sense if this was connected to “GROUND”.
The pictures are not clear enough to see whether or not the other side, “COMMON”, is connected to the metal plate too. I hope not because in that case you are more or less forced to use pull-ups. (Unfortunately what makes sense to us, might not be what the manufacturer did.)
The datasheet has two "code tables" that actually explain the game. The first one is relevant for the 3-contact one, the second one seems to be for a 6-contact variant. Explanations:
the three pin one - treat it like an SPDT (on)-off-(on) three position toggle switch.
the six pin one - has a center pin; positions are left-left, left, off, right, and right-right.
The sixth pin, if I read it right, is connected to the center pin when you press down on the device.
I'd ignore most information about voltage, and if you use it solely as an input device, the currents from any pullup/pulldown will be well within the tolerance.
I'd bet coffee(which I value) that you can use this in a pullup, or pulldown application however you desire.
That's my take on it, anyway. Years of reading bs datasheets taught me to try to use diagrammatic information exclusively, as translators are often hired on the street corner at midnight. With apologies, if any translators are present.
And yes, the pins are C for center, 1,2 for left and right.
For the 6-pin, it's C for center, T for touch, and 1,2,3,4 for the left and right positions.
I see no indication of a connection between any of the pins I've described, and the metal shroud - which has it's own two connection pads.
Not the best datasheet.
Good job, folks! Thanks for all of the replies. There is no continuity between "C" and "Ground". So I will just wire it up as I posted in my first message with "C" at +3.3V and Ground the other side.
Note 1: The schematic in post#2 is not about these navigation switches, but for general applications.
Note2: On a PCboard you don’t need to worry about short circuits.
Note3: If a switch is mounted elsewhere, and you really need to use a pull-down, you might want to put in 1 resistor in the 5V line.
OP wants to configure the switch active high.
LarryD suggests not to and presents a diagram noting a concern in doing so.
My question is wouldn't adding a resistor solve Larry's concern of shorting 5V to ground if the input pin becomes an output?
Right, the resistor limits the short circuit current. OTOH it forms a voltage divider with the pulldown resistor and consequently should be sufficiently low to cause a reliable HIGH level E.g. 1k vs. 10k pulldown. If multiple switches can be pressed together during normal operation, the voltage divider is formed with the resistance of multiple parallel pulldowns. In this case it may be good to add a resistor to each switch instead of a single common resistor.