Hi all,
How do I wire Honeywell Micro Switch models 1SW12-R (green plunger) and 1SW52-R (red plunger)?
I would like to make a small, hand wired, macro pad but I am unsure how to wire these up.
I will connect them to an Arduino to do USB HID.
Thanks in advance,
-Chris
How do I wire Honeywell Micro Switch models 1SW12-R (green plunger) and 1SW52-R (red plunger)?
-
- Location: 94103
- Main keyboard: MBP
- Main mouse: trackpad
- Favorite switch: Hall Effect
- DT Pro Member: -
- Attachments
-
- tempImage9mwuqM.gif (2.07 MiB) Viewed 3373 times
- jsheradin
- Location: USA
I think they're the same as 4 pin SD series. Two pins will be for power (+5V DC/GND) and the other two depend on if they're current sink or scan variants.
Current sink variant has two output pins, both change when pressed. Scan variant has one output pin while the other is an output enable; you'll need to tie the enable pin high for the other pin to output when pressed. I'm not sure which variant you have so it might take some testing.
For just a couple switches, I'd put both on an individual Arduino pin and use digitalRead. No need to mess with matrix scanning or anything.
Current sink variant has two output pins, both change when pressed. Scan variant has one output pin while the other is an output enable; you'll need to tie the enable pin high for the other pin to output when pressed. I'm not sure which variant you have so it might take some testing.
For just a couple switches, I'd put both on an individual Arduino pin and use digitalRead. No need to mess with matrix scanning or anything.
-
- Location: 94103
- Main keyboard: MBP
- Main mouse: trackpad
- Favorite switch: Hall Effect
- DT Pro Member: -
Thanks!
How do I tell which pin is for +5V and which pin is ground? I know they are the outside two pins, but which is which?
How do I tell which pin is for +5V and which pin is ground? I know they are the outside two pins, but which is which?
- jsheradin
- Location: USA
There's some good info here. Including a pinout:fixated_on_mks wrote: ↑17 Jan 2022, 00:49Thanks!
How do I tell which pin is for +5V and which pin is ground? I know they are the outside two pins, but which is which?
Spoiler:
-
- Location: 94103
- Main keyboard: MBP
- Main mouse: trackpad
- Favorite switch: Hall Effect
- DT Pro Member: -
Thanks!!