🌈 ESP32-S3 Rainbow: ZX Spectrum Emulator Board! Get it on Crowd Supply →
View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi

A little while back I ripped the PIR and mystery chip out of one of these cheap night lights and dropped a microwave radar module in its place. It worked beautifully: much better sensitivity, sensible timeout, the whole thing tucked back into the original case like nothing had happened.

But I had a sneaking suspicion I might have improved one thing and quietly ruined another. The radar module is always on. The PIR-and-mystery-chip combo, on the other hand, looked like it was doing something clever with sleep. So before I get smug about my mod, let’s actually measure what each version is pulling from the battery.

Out comes the Nordic Power Profiler Kit II.

PPK2 wired up to the original night light PCB

The Original: LEDs On

Power the supply on, start logging, and the LEDs immediately come up to greet me. It takes a moment to actually trigger because I’ve taped over the LDR (the night light flatly refuses to light up unless it thinks it’s dark), but once it triggers we’re sitting at about 80 mA, which matches the last time I measured this on the bench.

PPK trace with the LEDs on, drawing about 80 mA

That’s the easy bit. The interesting question is what the board does when it’s not lighting up.

The Original: Waiting Mode

Wait long enough for the LEDs to time out and the trace drops off a cliff. The board settles into a “waiting for movement” mode at roughly 700-800 ”A. Fine, that’s basically what a comparator and a small MCU sipping at the PIR signal ought to look like.

But then something weird starts happening. Every so often the trace drops down to a tiny fraction of that. Not lower-by-a-bit. Much lower, about 30 ”A.

The mystery chip's pulsed ultra-low-power mode

It sits down there for a while, then briefly pops back up to a few hundred microamps, then drops again. It’s clearly a sleep-and-poke pattern: the chip is mostly asleep and only briefly waking up to look at the PIR. As long as I don’t move, it stays in this ultra-low-power mode pretty much indefinitely.

That’s actually really impressive for a chip with all its identifying marks sanded off.

Doing the Maths on the Original

Scroll back to a chunk of the ultra-low-power section, drag a selection across it, and the PPK helpfully spits out the average: 72 ”A.

Selecting the ultra-low-power region: 72 ”A average

And during the noisier “actively monitoring” segments it’s averaging more like 700-800 ”A. So depending on what mood it’s in, the original is sipping between 72 ”A and around 0.8 mA. Whichever number we pick, on its 350 mAh cell that’s a lot of standby time. In theory the 72 ”A figure puts it at something like 200 days. In practice it definitely doesn’t last that long, but the cell is almost certainly not really 350 mAh either.

The really annoying thing is that I already know from living with these things that the original barely triggers. So all that lovely low power gets wasted because the night light isn’t actually on when you want it to be. Which is, you know, the entire point of a night light.

My Mod: On the PPK

Swap the leads onto the radar version. There’s a current limit resistor in series with the indicator LED here so I don’t have to worry about the LED itself drawing a lot.

Radar-modded board hooked up to the PPK

Wait the ~40 seconds for the radar’s extended timeout to expire (that big cap on the CTM pad is doing its job) and then we get to see the real story.

My Mod: Idle Current

LED out, no movement, just sitting there waiting. The trace settles into a fairly fat band of noise centred around 2.85-2.9 mA.

Radar version drawing 2.85 mA at idle

I tried covering and uncovering the LDR to see whether the radar module was doing anything clever with it. Does it actually shut down in daylight, or just gate the output? Spoiler: it just gates the output. The module itself draws the same ~2.86 mA whether the LDR thinks it’s bright or dark. The LDR is purely there to stop the LEDs lighting up during the day, not to save power.

Honestly, 2.8 mA isn’t that bad for a radar module that’s continuously transmitting and listening. It’s just a lot more than 72 ”A.

So
 Did I Make It Worse?

Time to be honest with the numbers.

Original 72 ”A / 350 mAh / ~200 days versus Improved 2.8 mA / 820 mAh / ~12 days

On paper, the original on its sad little 350 mAh cell at 72 ”A average should run for around 200 days. My “improved” version at 2.8 mA on the 820 mAh cell I fitted comes out at
 about 12 days.

Ouch.

In fairness, the original definitely doesn’t get anywhere near 200 days in real life, partly because the cell is optimistic and partly because every actual trigger spends time at 80 mA. And my mod actually triggers reliably, which the original conspicuously does not. But still, twelve days between charges is rubbish for something that’s supposed to live on a wall.

Salvaging It

All is not lost. I’ve got a stash of much beefier 2000 mAh cells that physically fit inside the case if I’m a bit careful about packaging.

2000 mAh Liter Energy Battery dropped into the case

Swapping that in gets the modded version to roughly 30 days between charges, which is much more like it. Not as flashy as “charge it four times a year”, but I’ll actually believe 30 days from a thing that genuinely turns on when I walk past.

So yes: strictly on standby current, I made it considerably worse. But factor in “does it actually do its job”, and a bigger cell, and I think I’m still ahead. Just.

The bit that’s still nagging at me is the original. Whatever that mystery chip is doing in its sleep mode is really nicely done; 72 ”A average is properly low. If I could find a way to make the original trigger reliably, I’d have basically the perfect night light. That’s probably a project for another day.

If you want to watch the meters in motion (including the satisfying moment when the trace drops to a pancake-flat 30 ”A), it’s all on YouTube.

Related Posts

Hacking a Cheap PIR Night Light Into Something Actually Useful - Sick of flaky PIR night lights with laughable range and timeouts, I cracked one open, reverse‑engineered the sanded‑off mystery chip, and swapped the PIR for an RC‑WL0516 microwave radar. I added an LDR, bumped the timeout with a cap, drove the LEDs via a MOSFET and resistor, and upgraded the cell to 820 mAh—all neatly tucked back into the original shell. Result: way better sensitivity, sensible timeout, and battery life that should finally match the hype. It works. Now to do the rest of them.
75% Less Power! - Saving the Planet With Motion Sensing and Image Processing - In this blog, I was dealing with a conundrum on how to reduce the power consumption of my cool magic mirror that was always on, always drawing power. I considered options such as a PIR (Passive Infra Red) sensor and a doppler radar microwave motion sensor. The latter worked brilliantly except for a few too many false positives. Things got technologically fancy when I introduced a camera for motion detection and face recognition, even recognizing who is in front of the mirror! However, while it was fascinating, it upped the power consumption which was against our original goal. After combining everything into an impressive package and even forming simple state machine, I found that the sophisticated system needed more work. Conditions like lighting and screen turn-on time presented challenges. However, it did make a significant difference - nearly running at 25% of the original power consumption. Definitely a promising and interesting project worth looking into further!
No Power? No Problem! A Wireless Pi Doom Machine - In my latest wireless charging experiments, I got my hands on a set of wireless charging PCBs and dove into testing different voltage inputs and their efficiency levels. It was interesting to realise that the 5V input managed to provide a decent efficiency of 73%, while 12V input struggled and heated the receiver board excessively. With the perks and limits of this setup explored, I took a whirl at creating a wireless Pi Doom machine. It worked like a charm! However, I quickly noticed the need to split charging and boost board into two different modules - a project to look forward to. Half the fun is getting there! Check out the video [here](https://youtu.be/glCIuOoFm7U) for more detail on the project.
High voltage coin cell - I blew up the original PCB on a bistable cholesteric display, so I built a coin-cell Joule thief to crank out 27V and bring it back to life. A simple two-inductor setup with a 27V Zener does the trick—about 10 mA while the button’s held. Then I got fancy with a regulated version (just one extra transistor) that tops the cap to 27V and basically idles—average draw lands around 1.53 mA. It’s neat, tiny, and perfect for this low-current reset job. Full build and measurements are in the video.
I got this feeling bezos is watching - Discovered my Hue switch battery performance is correlated with room temperature after a nifty web scrape of Amazon's device usage history. While it's a given that batteries are temperature-sensitive, actual data from my own living room provided a neat confirmation, graphing a daily pattern. Wanted to go green with a rechargeable lithium coin cell, but the voltage risk to the ATmega256RFR2 on the PCB is a no-go. For now, it's back to the humdrum world of regular coin cells and unexciting battery charts. Dive into the video for a deeper geek-out on this!

Related Videos

Did I Ruin These Night Lights? - I cracked open some cheap night lights and thought I’d improved them with a radar sensor—turns out, maybe not. With the Nordic Power Profiler, the stock board sips ~72 ”A in ultra-sleep (~0.8 mA while monitoring, 80 mA with LEDs), but my radar mod idles around 2.8–3 mA and the LDR only gates the output, not the IC. That means ~12 days on an 820–850 mAh cell or ~30 days with 2000 mAh, while the original could hit ~200 days on 350 mAh if it would just trigger properly—so I’m going to investigate that.
Making this CR*P Night Light GOOD - I've been picking up cheap motion night lights—performance meh, battery life definitely not 'four charges a year'. So I cracked one open for a Big Clive-style reverse-engineer: TP4054 charger at ~300 mA into a tiny 350 mAh cell, an 8-pin mystery PIR/LED driver taking the PIR and LDR directly and sinking the LED cathodes. No visible current limiting on the board, but measured ~68 mA on the bench so it's baked into the chip. Then I gutted the brains, dropped in an RC-WL0516 radar sensor, added an LDR and a timing cap to stretch the ~3 s timeout, and drove the LEDs with a MOSFET and proper current limiting. Swapped in a bigger 820 mAh battery, reassembled so it still charges and looks stock—and now it actually works nicely. Also, bonus anti-subscribe jam. Good as new.
10Âą MCU Music Hack - CH32V003 - I spun some tiny WCH boards at PCBWay around an 8‑pin MCU (48 MHz, 16k flash, 2k RAM) to beep tunes off a coin cell. I tried hand-soldering, then used my paste-dispensing PCB printer—expired paste still worked great. Standby sips under 8 ”A, but it locks out programming; a WLink flash wipe rescued me. Wake draws ~3.3 mA, and audio peaks hit ~130 mA (~13–14 mA average), which browned out the coin cell. A tiny 80 mAh LiPo with a TP4056 (modded to ~100 mA) proved the design, then swapping the buzzer’s base resistor from 1k to 10k tamed it to ~56 mA peak and just over 7 mA average—coin cell friendly and still loud. I’m bit-banging audio for now (PWM/timers later). I also made a quick MIDI-to-note tool and a one-bit SFX generator. These boards are heading into my next project—stay tuned.
High Voltage Coin Cell - 27V Joule Thief - How much voltage can we squeeze out of a CR2025? Turns out
 plenty! I built a little Joule-thief-style boost circuit with two 1 mH inductors, an NPN, a Schottky, a 27 V zener clamp, and a storage cap to zap my LCD pad clean at around 27 V. I profiled it with a Nordic power monitor: about 11 mA during the boost and ~9.28 mC per click—so tens of thousands of presses from one coin cell. Then I added a second transistor tied to the zener to auto-limit the drive, dropping hold current to about 1.5 mA—huge win. Scoped it (~38.7 kHz, base swinging to nearly -6 V), laid out a PCB, 1:1 print check for fit, and sent the gerbers off to PCBWay.
Is it time to change my batteries? Amazon thinks so! - Got a heads up from Amazon that one of my device batteries was low. Gotta give it to the battery, it lasted quite longer than I anticipated. So, I peeked into the device usage history, which was a trove of data Amazon has kindly stored. In fact, I wrote a web scraper to download all this data. Sadly, records only go back to two weeks. Nevertheless, I plotted the data and surprisingly the pattern revealed that battery level gets affected by temperature change. Cool, isn't it? Finally managed to change the battery. Also, I might just plug in a rechargeable one next time so as to not be a part of the 'throw-away battery' culture. All in all, quite an interesting discovery, courtesy of my Amazon device battery.
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening


Published

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts