M
mike
- Jan 1, 1970
- 0
I want to monitor the state of a mechanical SPST switch.
I have access to both ends of the floating switch.
I have zero experience with low energy design and am
looking for clever ways to monitor hardware using extremely
low energy. I'm not sure exactly what terms are normally used, but
I think energy is the one I mean. At the end of the day,
the fewer electrons required by the system, the better.
I'm currently using a microcontroller in sleep mode
with wake on pin change. This has at least two problems.
The pullup resistor takes current when the switch is closed.
There's a tradeoff between current and noise immunity.
I can't put the processor back to sleep until the contacts
quit bouncing. A lot of wasted electrons go thru the processor
during that time.
A cap mitigates the bounce problem 'cuz I think I can temporarily
change the in to an out and slam it to the rail. I have not yet
counted the electrons required to do that tho...
A SPDT switch solves both problems, but that's NOT the question.
The switch is SPST.
IF I had a lot of switches, waking the processor and polling
is probably cheaper trading cpu current for pullup current.
I'd like to have options.
Yes, I'll have to make mix/match tradeoffs for a total system.
At this point I'm looking at options for only ONE part: the switch.
In the interest of focusing input...
I'm NOT interested in a discussion of replacing the switch.
I'm NOT interested in a global system discussion that doesn't directly
solve this specific problem.
I'm NOT interested in discussing WHY. I'm interested in learning HOW.
If you're gonna tell me to google it, at least tell me the search terms
that you used to find the answer. Mine didn't.
Yes, there can be many issues. In this thread, I'm asking about
ONE of them.
I AM interested in ways to use a microcontroller to monitor a SPST
switch using as near zero energy as I can.
TIA, mike
I have access to both ends of the floating switch.
I have zero experience with low energy design and am
looking for clever ways to monitor hardware using extremely
low energy. I'm not sure exactly what terms are normally used, but
I think energy is the one I mean. At the end of the day,
the fewer electrons required by the system, the better.
I'm currently using a microcontroller in sleep mode
with wake on pin change. This has at least two problems.
The pullup resistor takes current when the switch is closed.
There's a tradeoff between current and noise immunity.
I can't put the processor back to sleep until the contacts
quit bouncing. A lot of wasted electrons go thru the processor
during that time.
A cap mitigates the bounce problem 'cuz I think I can temporarily
change the in to an out and slam it to the rail. I have not yet
counted the electrons required to do that tho...
A SPDT switch solves both problems, but that's NOT the question.
The switch is SPST.
IF I had a lot of switches, waking the processor and polling
is probably cheaper trading cpu current for pullup current.
I'd like to have options.
Yes, I'll have to make mix/match tradeoffs for a total system.
At this point I'm looking at options for only ONE part: the switch.
In the interest of focusing input...
I'm NOT interested in a discussion of replacing the switch.
I'm NOT interested in a global system discussion that doesn't directly
solve this specific problem.
I'm NOT interested in discussing WHY. I'm interested in learning HOW.
If you're gonna tell me to google it, at least tell me the search terms
that you used to find the answer. Mine didn't.
Yes, there can be many issues. In this thread, I'm asking about
ONE of them.
I AM interested in ways to use a microcontroller to monitor a SPST
switch using as near zero energy as I can.
TIA, mike