Choose contact arrangement and rating, and account for mechanical bounce.
How it works
A pushbutton may be normally open (NO) or normally closed (NC). A digital input requires a defined pull-up or pull-down state. During actuation, contacts can bounce and create several transitions; debounce in hardware or software when one event is required.
Types and construction
Toggle, slide, pushbutton and microswitch parts differ in actuation and contacts. A high-power contact rating does not by itself establish suitability for tiny signal currents; contact materials and minimum load can matter.
Worked example
A normally open button between a microcontroller input and ground can use an appropriate pull-up so the idle input reads high and a press reads low. One physical press may produce multiple short edges, so the software must treat the observed transition sequence accordingly.
Reading a datasheet
Verify the contact diagram and terminal numbering, AC/DC ratings for the actual load, inrush or inductive-load limits, minimum applicable load, mechanical/electrical life and environmental sealing.
Common mistakes
- Assuming the same current rating applies to AC and DC.
- Leaving a digital input floating when the contact is open.
- Counting every bounce transition as a separate user action.
Explore further
Source and review
Reviewed 18 November 2026 against Omron, Switch applications and contact bounce. Examples are simplified educational models; ratings and pinouts depend on the exact device.