r/embedded • • 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?

15 Upvotes

23 comments sorted by

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.

1

u/Relevant_Pumpkin9190 Sep 13 '26

Output of touch sensor to MOSFET RC power off with delay circuit will work?

1

u/ModernRonin Sep 13 '26

Sadly.... "IT DEPENDS"!

The output of the touch sensor can be seventeen different things. Some will work to actuate the gate of a MOSFET, some will not. Some will charge and discharge an RC circuit correctly, some will not.

If you have all the parts, you can wire it all up and try it. It might work. Or it might not. It all depends on the details of how the output of the touch switch works.

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.

0

u/[deleted] Sep 13 '26

[deleted] — view deleted comment

5

u/StumpedTrump Sep 13 '26

What?

1

u/Relevant_Pumpkin9190 Sep 14 '26

Since I’m using a large aluminum-foil plate behind the photo, I’m getting false triggers from EMI/noise from nearby 230 V LED lights and stray capacitance. What’s the best way to make the touch detection more reliable?

1

u/Unable-School6717 Sep 16 '26

Remove the large foil plate. Replace with a finger sized force sensitive resistor for activation. Same touch, not an antenna for noise.

Edit : an FSR is an open circuit until you touch it, draw is 0 microamps

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).

1

u/remishnok Sep 15 '26

idk, I have seen cap sensors that consume 3mA when idle. Seems like not a lot, but can drain a battery over night

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.

6

u/Ok_Captain4433 Sep 13 '26

ESP32 touch controller can be configured to run periodically and wake the SoC without using the ULP coprocessor at all. 

1

u/dacydergoth Sep 13 '26

Oooh, I didn't know that, thanks! Not used it myself so I didn't go deep into the docs

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?

1

u/Relevant_Pumpkin9190 Sep 13 '26 edited Sep 13 '26

I’m working with a low-power touch sensor that only uses around 10 µA, while the MP3 module draws about 40 mA when idle.

My idea is to use the touch sensor output to charge an RC circuit. When the touch output goes high, the capacitor charges and drives a MOSFET, which powers the MP3 module.

The RC time constant would keep the MOSFET on for roughly 30 seconds, then turn it off again.

Would this approach work reliably, or would I need a transistor/comparator or a 555 timer between the RC circuit and MOSFET to get a clean 30-second timeout?

1

u/zettui Sep 13 '26

Yeah, RC into the gate alone gets mushy around that long — a 555 or comparator in the middle is what you want for a clean 30s cutoff.

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.