Picture of NanoStat in 3D-printed enclosure with LiPo battery and US quarter for scale.

An ESP32-Based Potentiostat

Ever wanted to make your own wireless chemical sensor? Researchers from the University of California, Irvine (UC Irvine) have got you covered with their ESP32-based potentiostat.

We’ve talked about potentiostats here on Hackaday before. Potentiostats are instruments that analyze the electrical properties of an electroactive chemical cell. Think oxidation and reduction reactions (redox) from your chemistry course, if you can remember that far back. Potentiostats can be used in several different modes/configurations, but the general idea is for these instruments to induce redox reactions within a given electroactive chemical cell and then measure the resulting current produced by the reaction. By measuring the current, researchers can determine the concentration of a known substance within a sample or even determine the identity of an unknown substance, to name a few potential applications.

These instruments have become mainstays in research labs around the world and have incredible utility in the consumer space. Glucometers, devices used to measure blood glucose levels, are an example of technologies that have made their way into everyday life due to the advances made in electrochemistry and potentiostat research over the last few decades. Given their incredible utility to scientific research and medical technologies, a great deal of effort has gone into democratizing potentiostats, making them more available to the general public for educational and hobbyist purposes. Of course, any medical applications must go through rigorous testing and approvals by each country’s appropriate governing bodies. So we’re talking more non-medical purposes here.

The first popular open-source, DIY potentiostat was the CheapStat, which we’ve covered here on Hackaday before. Since then, developing newer and more advanced open-source potentiostats has become a popular endeavor within the scientific community. The researchers from UC Irvine wanted to put their own special spin on the open-source potentiostat craze and they did so with their inclusion of the ESP32 as their main processor. This obviously opens up them up do a whole host (see what we did there) of wireless capabilities that others before them have not explored.

With the ESP32, they developed a nice web-based GUI that makes controlling and collecting data from the potentiostat very seamless and user-friendly. You can imagine the great possibilities here. Teacher-led classroom demonstrations where the instructor can easily access each student’s device over the cloud to help troubleshoot or explain results. Developing soil monitoring sensors that can be deployed all around a farm to remotely collect data on feed, soil composition, and plant health. The possibilities here sure are promising.

We hope you’ll dive into their paper as it’s well worth a read. Happy hacking, Hackaday.

Electronic Treatment For Diabetes?

If you ask power companies and cell phone carriers how much electromagnetic radiation affects the human body, they’ll tell you it doesn’t at any normal levels. If you ask [Calvin Carter] and some other researchers at the University of Iowa, they will tell you that it might treat diabetes. In a recent paper in Cell Metabolism, they’ve reported that exposing patients to static magnetic and electric fields led to improved insulin sensitivity in diabetic mice.

Some of the medical jargon in a paper like this one can be hard to follow, but it seems they feed mice on a bad diet — like that which many of us may eat — and exposed them to magnetic and electrical fields much higher than that of the Earth’s normal fields. After 30 days there was a 33% improvement in fasting blood glucose levels and even more for some mice with a specific cause of diabetes.

Continue reading “Electronic Treatment For Diabetes?”

A Sweet Little Insulin Reminder Light

So much of what we do relies on a certain societal structure that has been absent for a few months now. When the days run together, it’s hard to remember to do the things that must happen daily. You think you did something, and maybe you’re right, but it’s quite possible you’re thinking of yesterday.

[Flameeyes] has diabetes and must use an insulin pen every morning without fail, no matter what’s happening outside his door. This was pretty much a non-issue in the before-time, but quickly became a serious problem as the routine-free weeks wore on. With no room for false positives, he needed a solution that doesn’t trigger until the deed is done.

Now when [Flameeyes] puts the pen away, he also triggers a Flic smart button mounted nearby. The Flic shares its status with a Feather M4 Express through a web app, and the Feather in turn changes the RGB LED inside of Pikachu’s base from red to yellow for the day. Pikachu sits in plain sight by the kettle, so there’s no guessing whether [Flameeyes] took his insulin.

Insulin is a critical commodity with a lot of DIY interest, which is probably starting to spike about now. Our own [Dan Maloney] wrote a great piece on the subject that brings up an insulin hack from around 80 years ago.

Homebrew Pancreas Gets 30 Minutes Of Fame

It is pretty unusual to be reading Bloomberg Businessweek and see an article with the main picture featuring a purple PCB (the picture above, in fact). But that’s just what we saw this morning. The story is about an open source modification to an insulin pump known as the RileyLink. This takes advantage of older Medtronic brand insulin pumps and allows you to control the BLE device from a smartphone remotely and use more sophisticated software to control blood sugar levels.

Of course, the FDA isn’t involved. If they were, the electronics would cost $7,000 instead of $250 — although, in fairness, that $250 doesn’t cover the cost of the used pump. Why it has to be a used pump is a rather interesting story. The only reason the RileyLink is possible is due to a security flaw and an active hacker community.

Continue reading “Homebrew Pancreas Gets 30 Minutes Of Fame”

Ask Hackaday: Preserving Electronic Devices

Conventional wisdom holds that we no longer make things to last for the long haul, and that we live in a disposable world. It’s understandable — after all, most of us have a cell phone in our pocket that’s no more than a year or two old, and it’s often cheaper to buy a new printer than replace the ink cartridges. But most of that disposability is driven by market forces, like new software that makes a device obsolete long before it breaks down, or the razor and blades model that makes you pay through the nose for ink. It turns out that most electronic devices are actually pretty well engineered, and as long as they’re not abused can still be operating decades down the road.

But what happens when you want to put an electromechanical device away and preserve it for a rainy day? What can you do to make sure the device will operate again a few years down the road? Are there steps one can take beyond the typical “keep it in a cool, dry place” advice? In short, how do you preserve electronic devices?

Continue reading “Ask Hackaday: Preserving Electronic Devices”

Hacking Diabetes Meters, Towards An Artificial Pancreas

We’ve covered a number of diabetes-related hacks in the past, but this project sets its goals especially high. [Tim] has diabetes and needs to monitor his blood glucose levels and administer insulin accordingly. As a first step, he and a community of other diabetics have been working on Android apps to log the data when combined with a self-made Bluetooth re-transmitter.

But [Tim] is taking his project farther than previous projects we’ve seen and aiming at eventually driving an insulin pump directly from the app. (Although he’s not there yet, and user input is still required.) To that end, he’s looking into the protocols that control the dosage pumps.

We just read about [Tim] in this article in the Guardian which covers the diabetic-hacker movement from a medical perspective — the author currently runs a healthcare innovation institute and is a former British health minister, so he’s not a noob. One passage made us pause a little bit. [Tim] speaks the usual praises of tech democratization through open source and laments “If you try to commercialize [your products], you run up against all sorts of regulatory barriers.” To which the author responds, “This should ring alarm bells. Regulatory barriers are there for a reason.”

We love health hacking, and we’re sure that if we had a medical condition that could be helped by constant monitoring, that we’d absolutely want at least local smart-phone logging of the relevant data. But how far is too far? We just ran an article on the Therac-25 case study in which subtle software race conditions ended up directly killing people. We’d maybe hesitate a bit before we automated the insulin pump, but perhaps we’re just chicken.

The solution suggested by [Lord Ara Darzi] in the Guardian piece is to form collaborations between patients motivated by the DIY spirit, and the engineers (software and hardware) who would bring their expertise, and presumably a modicum of additional safety margin, to the table. We like that a lot. Why don’t we see more of that?

The Biohacking Movement And Open Source Insulin

In March of 2014, I knew my eight year old daughter was sick. Once borderline overweight, she was now skeletally thin and fading away from us. A pre-dawn ambulance ride to the hospital gave us the devastating news – our daughter had Type 1 diabetes, and would be dependent on insulin injections for the rest of her life.

This news hit me particularly hard. I’ve always been a preparedness-minded kind of guy, and I’ve worked to free myself and my family from as many of the systems of support as possible. As I sat in the dark of the Pediatric ICU watching my daughter slowly come back to us, I contemplated how tied to the medical system I had just become. She was going to need a constant supply of expensive insulin, doled out by a medical insurance system that doesn’t understand that a 90-day supply of life-saving medicine is a joke to a guy who stocks a year supply of toilet paper. Plus I had recently read an apocalyptic novel where a father watches his 12-year old diabetic daughter slip into a coma as the last of her now-unobtainable insulin went bad in an off-grid world. I swore to myself that I’d never let this happen, and set about trying to find ways to make my own insulin, just in case.

Continue reading “The Biohacking Movement And Open Source Insulin”