Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 115257

Please do not use this tag. Use a "switch" tag instead

1 vote

Push button to act as toggle switch?

The switch needs to be debounced, which adds components to the circuit. And that's affected by your switch, whether it's SPST or SPDT. You don't state the supply voltages or what kind of output your …
TonyM's user avatar
  • 23.8k
30 votes
Accepted

Smart ways to detect a button (less power consuming)

A low-current method I used once was to connected a switch between two microcontroller I/O pins. One I/O was configured as an output (SWO). The second was configured as an input (SWI) with its progra …
TonyM's user avatar
  • 23.8k
2 votes

How do input pins work?

The notion of a pin being an input or output is from the point of view of the Central Processing Unit (CPU) within the microcontroller (MCU). The CPU is the block of circuitry that actually runs your …
TonyM's user avatar
  • 23.8k