Author Topic: Soldering four-pin SMT switch?  (Read 1243 times)

0 Members and 1 Guest are viewing this topic.

Offline WinfriedTopic starter

  • Contributor
  • Posts: 24
  • Country: fr
Soldering four-pin SMT switch?
« on: November 21, 2022, 10:39:07 pm »
Hello,

I bought a bag of compact tactile switches so I can insert one between the battery and the JST plug on an ESP32 micro-controller.

I have a couple of questions:
1. Will the solder hold if I apply some directly on the pins?
2. Which pins should I use for the two red wires — Apparently, I should connect the two black wires directly?

Thank you.
 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 3478
  • Country: us
Re: Soldering four-pin SMT switch?
« Reply #1 on: November 21, 2022, 10:45:49 pm »
There is no reason not to connect all four pins to PCB pads, even if mechanical robustness is the only reason.   Not all pairs of pads need to be connected electrically, of course.
 

Offline EPAIII

  • Super Contributor
  • ***
  • Posts: 1061
  • Country: us
Re: Soldering four-pin SMT switch?
« Reply #2 on: November 22, 2022, 02:18:24 am »
As for how to wire them,

The only thing that the photo tells about those switches is that they have four terminals/pins. That does not tell me/us what the switching configuration may be or even if all of the pins are actually used. With four pins there are several switching configurations that are possible:

SPST (Single Pole - Single Throw)
SPDT (Single Pole - Double Throw)
SP3T (Single Pole - 3 Throw)(not likely but possible)
DPST (Double Pole - Single Throw)

In some of these the pins may be doubled up with internal shorts. Also in some of them one or more pins may have no connection. This may have been done to have the pins there for a better mechanical mount.

You can easily determine the switching arrangement inside the switches with a multimeter, using the resistance scale or the continuity setting. I believe you marked the pins as A, B, C, and D. Start with the meter connected to pins A and B and note the reading. Call this by the switch position as "Switch 1". It should be either close to 0 Ohms (closed circuit) or infinity (open circuit). Now, with the meter probes still connected, change the button to the opposite setting and again note the reading. Call this by the switch position as "Switch 2". Keep track of the current switch position. These readings tell you something about pins A and B.

Switch 1 = 0 Ohms
Switch 2 = infinite Ohms
A and B are switched with Switch 1 being the ON state.

Switch 1 = infinite Ohms
Switch 2 = 0 Ohms
A and B are switched with Switch 2 being the ON state.

Switch 1 = 0 Ohms
Switch 2 = 0 Ohms
A and B are NOT switched and they are connected internally. 

Switch 1 = infinite Ohms
Switch 2 = infinite Ohms
A and B are NOT switched. By itself this does not tell you if those pins are in use or not.

That test tells you a bit about the switch. Now you must repeat it for the other five combinations of the terminals:

AC
AD
BC
BD
and CD.

Once you have the above information on all of those pairs of terminals, you can determine the internal configuration with a bit of logic. If you have difficulty interpreting the results of these tests please post the readings and I/we will help.
Paul A.  -   SE Texas
And if you look REAL close at an analog signal,
You will find that it has discrete steps.
 

Offline WinfriedTopic starter

  • Contributor
  • Posts: 24
  • Country: fr
Re: Soldering four-pin SMT switch?
« Reply #3 on: November 22, 2022, 06:05:59 pm »
Thanks for the infos.

This is what it looks underneath, and this is the multimeter I have — which I barely know how to use.

I set to 2k Ohms and touched the pins but it only says "1". The switch is tiny and it's hard to hold it down to measure things.

 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 3478
  • Country: us
Re: Soldering four-pin SMT switch?
« Reply #4 on: November 22, 2022, 06:54:32 pm »
The bottom of that switch seems to show which pair pins are connected.  If it reads "1" always, that may mean open circuit, but more likely you have set something up wrong.  Get small micro clips/grabbers to hold onto SMD pins.
 

Online wasedadoc

  • Super Contributor
  • ***
  • Posts: 1365
  • Country: gb
Re: Soldering four-pin SMT switch?
« Reply #5 on: November 22, 2022, 07:40:26 pm »
Those switches look like "push on, release off" types.  Meaning that they only connect while the button is pushed.  If they are indeed that type, are they really suitable for your intended purpose?

Almost always with those little 4 contact switches there are two pairs of commoned contacts.  The two of each pair will always show zero ohms.  Testing between either of the two in one pair and either of the two in the other pair will only show zero ohms when the button is held down.  If you cannot determine the pairs, using two diagonally opposite pins will work as the switch.

But as I already wrote, if you want an on-off switch that disconnects the battery from your device, you will probably find those switches are not suitable.  They appear to be the same as those on the RaspberryPi Pico board.
« Last Edit: November 22, 2022, 07:49:12 pm by wasedadoc »
 

Offline WinfriedTopic starter

  • Contributor
  • Posts: 24
  • Country: fr
Re: Soldering four-pin SMT switch?
« Reply #6 on: November 23, 2022, 02:07:59 pm »
I can hear a click when I push the button.

I chose those because they're very compact, but maybe they weren't a good choice :-/

How should I set the multimeter before touching one pin with the red tip and another with the black tip to figure it out?
 

Online wasedadoc

  • Super Contributor
  • ***
  • Posts: 1365
  • Country: gb
Re: Soldering four-pin SMT switch?
« Reply #7 on: November 23, 2022, 03:10:20 pm »
The click is not significant.  It does not prove or disprove anything.

Turn the knob to the 9 o'clock position.  Touch the probes together and you should hear the beeper sound.  You can concentrate on touching the switch pins while pressing the button without needing to look at the meter.
 

Offline WinfriedTopic starter

  • Contributor
  • Posts: 24
  • Country: fr
Re: Soldering four-pin SMT switch?
« Reply #8 on: November 24, 2022, 02:55:39 pm »
After turning the dial to 1,5V, there's no sound but maybe that meter has no beeper.

Using other switches I bought, with only two ends: When touching one end with the red probe and the other with the black probe, it only shows "0.00", no matter the position of the switch. Same result when setting the meter to 20V DC.

I'll drop by a fablab and ask the experts.

Thanks for the help.
 

Online wasedadoc

  • Super Contributor
  • ***
  • Posts: 1365
  • Country: gb
Re: Soldering four-pin SMT switch?
« Reply #9 on: November 24, 2022, 03:23:26 pm »
After turning the dial to 1,5V, there's no sound but maybe that meter has no beeper.

Using other switches I bought, with only two ends: When touching one end with the red probe and the other with the black probe, it only shows "0.00", no matter the position of the switch. Same result when setting the meter to 20V DC.

I'll drop by a fablab and ask the experts.

Thanks for the help.
There is no 1.5V position on the meter in the picture you posted. If that is the meter you have, turn its knob two clicks clockwise from the position shown in the picture.

That meter comes with a good manual.  Look for the instructions about "Continuity".  Section 7.8 in the language section you prefer, even German.  If you lost the manual you can download from Lidl's service site.  Put IAN308530 in the search box.

I'm 99% sure that all four of those switches are non-latching.  Same as a door-bell button switch that only rings the bell when the button is pressed.  Let the button go and the bell stops.  Same with those switches.  You need a switch  that can stay in both on and off positions.  Like a light switch or the plunger at the top of a retractable ball point pen.  I have neve seen a switch which works like that in such a small size as those in your photo.
« Last Edit: November 24, 2022, 03:50:19 pm by wasedadoc »
 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 3478
  • Country: us
Re: Soldering four-pin SMT switch?
« Reply #10 on: November 24, 2022, 04:03:18 pm »
Maybe a picture will help.  Turn the pointer to the lime-color circled position.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11501
  • Country: ch
Re: Soldering four-pin SMT switch?
« Reply #11 on: November 26, 2022, 05:57:46 pm »
As for how to wire them,

The only thing that the photo tells about those switches is that they have four terminals/pins. That does not tell me/us what the switching configuration may be or even if all of the pins are actually used. With four pins there are several switching configurations that are possible:

SPST (Single Pole - Single Throw)
SPDT (Single Pole - Double Throw)
SP3T (Single Pole - 3 Throw)(not likely but possible)
DPST (Double Pole - Single Throw)

In some of these the pins may be doubled up with internal shorts. Also in some of them one or more pins may have no connection. This may have been done to have the pins there for a better mechanical mount.


While everything you wrote is technically correct, when is the last time you encountered a tact switch that was anything other than SPST NO momentary? (Yes, other types exist, but are specialty parts you have to seek out.) Other switch configurations are common on other types of switches (non-tact push buttons, rocker, toggle, slide, etc), but in tact switches, SPST NO momentary is the norm.

Consequently, I think you might just be confusing the OP unnecessarily. The chances that their button isn’t SPST NO momentary are vanishingly small.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11501
  • Country: ch
Re: Soldering four-pin SMT switch?
« Reply #12 on: November 26, 2022, 06:09:38 pm »
After turning the dial to 1,5V, there's no sound but maybe that meter has no beeper.

Using other switches I bought, with only two ends: When touching one end with the red probe and the other with the black probe, it only shows "0.00", no matter the position of the switch. Same result when setting the meter to 20V DC.

I'll drop by a fablab and ask the experts.

Thanks for the help.
1.5V is almost certainly a battery test function. You need either continuity test, diode test, or ohms measurement mode.

But I’m guessing that you want to use your switch as a latching on/off switch, right? (Latching = press once to turn on, press again to turn off.) Then it’s probably not what you’re looking for. Those little tactile switches are momentary switches, meaning they close the circuit only while you hold the button. As soon as you release it, the circuit opens again. Tact switches are also not designed to switch large amounts of current. The size you have is typically rated for 50mA maximum, while a typical ESP32 dev board draws around 60mA already, unless you remove the LED and change some power settings, and if you attach peripherals, you could draw much more. (The on-board regulators of most ESP32 boards can supply up to 800mA, far beyond what your switch could survive.)
 

Offline EPAIII

  • Super Contributor
  • ***
  • Posts: 1061
  • Country: us
Re: Soldering four-pin SMT switch?
« Reply #13 on: November 29, 2022, 05:22:33 am »
Perhaps so, but I was trying to cover all the bases.

I think our OP could benefit immensely from a few hours spent reading an elementary book on electricity. He can probably find one at a local library. Then a few more hours with an elementary one on electronics.



As for how to wire them,

The only thing that the photo tells about those switches is that they have four terminals/pins. That does not tell me/us what the switching configuration may be or even if all of the pins are actually used. With four pins there are several switching configurations that are possible:

SPST (Single Pole - Single Throw)
SPDT (Single Pole - Double Throw)
SP3T (Single Pole - 3 Throw)(not likely but possible)
DPST (Double Pole - Single Throw)

In some of these the pins may be doubled up with internal shorts. Also in some of them one or more pins may have no connection. This may have been done to have the pins there for a better mechanical mount.


While everything you wrote is technically correct, when is the last time you encountered a tact switch that was anything other than SPST NO momentary? (Yes, other types exist, but are specialty parts you have to seek out.) Other switch configurations are common on other types of switches (non-tact push buttons, rocker, toggle, slide, etc), but in tact switches, SPST NO momentary is the norm.

Consequently, I think you might just be confusing the OP unnecessarily. The chances that their button isn’t SPST NO momentary are vanishingly small.
« Last Edit: November 29, 2022, 05:26:19 am by EPAIII »
Paul A.  -   SE Texas
And if you look REAL close at an analog signal,
You will find that it has discrete steps.
 
The following users thanked this post: tooki


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf