Show HN: 32V TENS device from built from scratch under $100

https://news.ycombinator.com/rss Hits: 10
Summary

Building a Monophasic TENS Device for the Hand I鈥檝e always been fascinated by the intersection of electronics and the human body 鈥攈ow a few carefully shaped pulses can interact with nerves and muscles. Recently, I built a monophasic TENS (Transcutaneous Electrical Nerve Stimulation) device for a family member, specifically tailored for the hand. 馃攱 Power Stage The heart of any stimulator is its power supply. I started with a 3.7V LiPo battery as the energy source, managed by the MCP73831 charger IC. This gave me a simple USB-C charging interface and safe single-cell management. From there, I needed two rails: +3.3V logic rail for the microcontroller and digital circuitry High-voltage rail (~32V) for the stimulation pulses The TPS55340 boost converter handled the heavy lifting, stepping the battery voltage up to 32V. Careful selection of inductors (100 碌H for the boost stage). While the boost converter gave me the high-voltage stimulation rail, the digital brain needed a clean and stable 3.3V supply. For that, I used the TPS63001 buck鈥慴oost converter from TI. Why this choice? The hand鈥慼eld device runs from a single Li-ion cell, which can swing from 4.2V (fully charged) down to ~3.0V (discharged). A simple LDO wouldn鈥檛 cut it, because once the battery dips below 3.3V, the logic rail would collapse. The TPS63001 solves this by buck鈥慴oosting: it can step voltage up or down as needed, keeping the microcontroller happy at 3.3V across the entire discharge curve. This ensured the ATmega32U4 and other logic devices always had a reliable rail, independent of battery state. Control Stage For brains, I went with the ATmega32U4. It鈥檚 a familiar workhorse, USB-capable, and has enough timers and PWM channels to generate the stimulation waveforms. Key features in the control block: 10bit PWM outputs mapped to finger electrodes (Thumb, Index, Middle, Ring, Pinky) ADC inputs reserved for sensing or feedback (though not strictly necessary in monophasic mode) Internal clock for stable t...

First seen: 2025-11-21 09:07

Last seen: 2025-11-21 18:09