Electronics > Projects, Designs, and Technical Stuff

Switch pain

(1/3) > >>

PerranOak:
Switches and buttons give me more pain than any other component!

I have a microcontroller pin that has a pull-up resistor. All I need is a simple slide switch (PCB mounted, through-hole, about 8mm x 4mm ish) for the user to take this pin low while other things are selected then to return it to the pull-up situation.

So is this an SPDT, SPST, this, that or what!?!? Argh!  |O

Any help, gratefully received.

Buriedcode:
The P is the number of poles - how many actual switches are inside the switch either a number of S for single, D for dual, and T is toggle - how many ways each individual switch can be switched.  Eg DP4T has two separate switch, each common can connect to 4 nodes.

If you just need to pull a pin low/high then you only need one toggle, and one pole - SPST.  But you can of course use SPDT as you just need the NC (normally closed) unconnected.  And you can use DPDT and just leave one whole switch unconnected.

In my experience, you narrow down the search first by type (slide, toggle, rocker etc..) then by termination (PCB, solder lug, tab, screw terminal).

MarkF:
Maybe this will help:

   

soldar:

--- Quote from: PerranOak on June 10, 2019, 04:46:45 pm --- I have a microcontroller pin that has a pull-up resistor. All I need is a simple slide switch (PCB mounted, through-hole, about 8mm x 4mm ish) for the user to take this pin low while other things are selected then to return it to the pull-up situation.
--- End quote ---

Not being American I always found the pole-throw nomenclature kind of silly.

If you are using the switch with a microcontroller you want to be very careful with debouncing.

Gyro:

--- Quote from: Buriedcode on June 10, 2019, 04:56:26 pm ---The P is the number of poles - how many actual switches are inside the switch either a number of S for single, D for dual, and T is toggle - how many ways each individual switch can be switched.  Eg DP4T has two separate switch, each common can connect to 4 nodes.

--- End quote ---

The T actually stands for throw, not toggle, as in 'throw the switch'.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod