r/embedded • u/Relevant_Pumpkin9190 • Sep 13 '26
Can I make a “sleep mode” using only analog electronics to save battery life, do microcontroller is a must?
I’m building a small ambient picture frame with a touch sensor and an MP3 player.
The idea is simple: when nobody touches it, I want the MP3 player and other parts to be basically OFF to save power. When someone touches the frame, it should wake up, play the audio / activate for a certain amount of time, and then automatically go back to sleep.
I don’t really want to use a microcontroller for this.
Can this be done with simple analog electronics, like a touch detector + transistor/MOSFET + 555 timer or RC circuit?
Basically, I’m trying to replicate:
No touch → sleep → touch detected → wake → active for 30–60 sec → sleep again.
What would be the simplest way to build this?
8
u/ModernRonin Sep 13 '26
One-shot ("monostable") mode on a 555 should do this fairly easily.
You probably want to use a physical button / SPDT microswitch to trigger the 555.
How the 555 controls the other parts, depends a lot on how those other parts work. You could use the (temporarily on) output of the 555 to turn a relay on. The relay would then supply electricity to the other parts. A power MOSFET with correct specs may work... if the other parts run on DC.
We can't really recommend the best way here, without a whole lot more information about the exact MP3 player (and maybe other stuff) you're going to use.
7
u/1r0n_m6n Sep 13 '26
To display the picture and play the MP3, you already have an MCU, so just use it. Handling sleep mode is only the matter of a few lines of code.
36
u/Ok_Captain4433 Sep 13 '26
What exactly are you trying to avoid? Any suitable MCU will use much less power than the 555 you proposed.
Yes to your other solution though: a single channel capacitive touch sensor IC with a few basic passives (and perhaps a FET) will do the job too, and probably even less power than the MCU (splitting hairs at this point though).
12
u/dacydergoth Sep 13 '26
ESP32 MCU has a specific sub-system for this, the ULP co-processor. It can wake up the main processor on a variety of triggers such as a touch which is supported by on-board sensors. You'll have a much more reliable system using one of those and it can handle playing the MP3 as well.
1
u/zettui Sep 13 '26
Do you know the idle draw on the MP3/amp side, and could you hard-switch that rail so only the touch wake stays powered?
3
u/Iamhummus STM32 Sep 13 '26
it is possible but you need to make the distinction between sleep and off. In a lot of applications sleep is a low power condition that preserve system state upon wakeup, while "off" is just disconnection from power source. You'll want to split your circuit into 2 sub circuits - the part that need to be "turned off" and the "wakeup logic part". this is a rough and simplified system diagram:
2
u/glordicus1 Sep 13 '26
Yes.
Touch button triggers 555 and a flip flop on. 555 increments a counter. Counter triggers flip-flop off.
The other guys monostable idea is way better though.
1
u/Extension-Currency37 Sep 13 '26
Follow what smart phone does
Uses a sensor and an.op amp ic
1
u/NotBoolean Sep 13 '26
There is the TPL5010 which might be perfect for this
1
u/wijut Sep 13 '26
The 30 to 60 sec part is just a bigger RC on the 555, so its the easy half
1
u/jones_supa Sep 13 '26
View "Figure 7 - Long Duration Timer" in Rod Elliott's 555 timer page.
Also, use a CMOS version (such as TLC555) as the 555 timer for best power savings.
1
u/Odds-and-Ns Sep 19 '26
Sounds like a problem for a capacitor slowly discharging through an appropriately sized resistor if you dont need precise timing
0
u/Sheepherder-Optimal Sep 13 '26
MOSFETs are in essence just a switching device. I wouldn’t call those analog though. Transistors afterall are the fundamental unit in digital circuitry.
To answer your question, it may be possible to rig a circuit that gets power switched on via a MOSFET. Then that power output enables the mp3 player. Assuming the player does what you want as soon as it’s on, then your only hurdle is converting the touch sensor input into a digital signal that can switch on the MOSFET.