Prototyping & Installation Tip (Debouncing)
When using this 2-pin switch as a digital input for a microcontroller at Robogears, mechanical "bounce" can occur, where the switch rapidly opens and closes for a few milliseconds. To get a clean signal, implement a Software Debounce (checking whether the state is stable for 20-50ms) or add a Hardware Debounce using a 10 kω resistor and a 100 nF capacitor. This ensures that a single press is recorded as one event, not multiple.
[Image showing the 2-pin switch soldered onto a compact wearable sensor board]
Note: This product includes 1 x 2-Pin Miniature Tactile Switch. Product images are for illustration purposes only.