Live Glucose Monitoring With The Apple Watch

There has been a rumor that Apple is working on a glucose monitoring solution for the Apple watch. [Harley] decided not to wait and managed to interface an Abbot FreeStyle Libre sensor with the Apple watch. The sensor doesn’t directly read glucose continuously, but it does allow for more frequent reading which can help diabetic patients manage their blood sugar levels. However, as part of the hack, [Harley] effectively converts the meter to a continuous-reading device, another bonus.

The trick is to add a Bluetooth transmitter to the NFC sensor. Using a device called a MiaoMiao, the task seems pretty simple. The MiaoMaio is small, waterproof, and lasts two weeks on a charge, which is longer than the sensor’s life. Honestly, this is the hack since once you have the data flowing over Bluetooth, you can process it in any number of ways including using an app on the Apple watch.

It isn’t perfect. There’s a slight lag with readings due to the way the sensor works. However, you usually don’t care as much about the absolute value of your glucose (unless it is very high or very low). You are usually more interested in the slope of the change. This data is more than good enough for that.

In fact, the most complex part of this seems to be the watch app. It might be less work to feed the data to a machine learning model and let AI guide your insulin injections. Something to think about.

We have a keen interest in glucose monitoring around here and we know why it is so darn hard. Honestly, the idea of pushing glucose meter data to a watch isn’t new, but this is a well-done implementation with a lot of possibilities.

The New-Phone Blues: A Reminder That Hackers Shouldn’t Settle

For all the convenience and indispensability of having access to the sum total of human knowledge in the palm of your hand, the actual process of acquiring and configuring a smartphone can be an incredibly frustrating experience. Standing in those endless queues at the cell phone store, jumping through the administrative hoops, and staring in sticker shock at a device that’s likely to end its life dunked in a toilet all contribute to the frustration.

But for my money, the real trouble starts once you get past all that stuff and start trying to set up the new phone just right. Sure, most phone manufacturers make it fairly easy to clone your old phone onto the new one, but there are always hiccups. And for something that gets as tightly integrated into the workflows of your daily life as cell phones do, that can be a real bummer. Especially when you find out that your shiny new phone can’t do something you absolutely depend on.

Continue reading “The New-Phone Blues: A Reminder That Hackers Shouldn’t Settle”

Hacking Diabetes Hack Chat

Join us on Wednesday, October 16 at noon Pacific for the Hacking Diabetes Hack Chat with Dana Lewis!

When your child is newly diagnosed with Type 1 diabetes (T1D), everyone is quick to point out, “It’s a great time to be a diabetic.” To some degree, that’s true; thanks to genetically engineered insulin, more frequent or even continuous glucose monitoring (CGM), and insulin infusion pumps, diabetics can now avoid many of the truly terrifying complications of a life lived with chronically elevated blood glucose, like heart disease, kidney failure, blindness, and amputations.

Despite these advances, managing T1D can be an overwhelming task. Every bite of food, every minute of exercise, and every metabolic challenge has to be factored into the calculations for how much insulin to take. Diabetics learn to “think like a pancreas,” but it’s never good enough, and the long-promised day of a true artificial pancreas always seems to remain five years in the future.

Dana Lewis is one diabetic who decided not to wait. After realizing that she could get data from her CGM, she built a system to allow friends and family to monitor her blood glucose readings remotely. With the addition of a Raspberry Pi and some predictive algorithms, she later built an open-source artificial pancreas, which she uses every day. And now she’s helping others take control of their diabetes and build their own devices through OpenAPS.org.

Join us on the Hack Chat as Dana drops by to discuss OpenAPS and her artificial pancreas. We’ll find out what her background is – spoiler alert: she wasn’t a hacker when she started this – what challenges she faced, the state of the OpenAPS project, and where she sees the artificial pancreas going.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, October 16 at 12:00 PM Pacific time. If time zones have got you down, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io. You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.

[Dana Lewis image source: GeekWire]

Continue reading “Hacking Diabetes Hack Chat”

Why Is Continuous Glucose Monitoring So Hard?

Everyone starts their day with a routine, and like most people these days, mine starts by checking my phone. But where most people look for the weather update, local traffic, or even check Twitter or Facebook, I use my phone to peer an inch inside my daughter’s abdomen. There, a tiny electrochemical sensor continuously samples the fluid between her cells, measuring the concentration of glucose so that we can control the amount of insulin she’s receiving through her insulin pump.

Type 1 diabetes is a nasty disease, usually sprung on the victim early in life and making every day a series of medical procedures – calculating the correct amount of insulin to use for each morsel of food consumed, dealing with the inevitable high and low blood glucose readings, and pinprick after pinprick to test the blood. Continuous glucose monitoring (CGM) has been a godsend to us and millions of diabetic families, as it gives us the freedom to let our kids be kids and go on sleepovers and have one more slice of pizza without turning it into a major project. Plus, good control of blood glucose means less chance of the dire consequences of diabetes later in life, like blindness, heart disease, and amputations. And I have to say I think it’s pretty neat that I have telemetry on my child; we like to call her our “cyborg kid.”

But for all the benefits of CGM, it’s not without its downsides. It’s wickedly expensive in terms of consumables and electronics, it requires an invasive procedure to place sensors, and even in this age of tiny electronics, it’s still comparatively bulky. It seems like we should be a lot further along with the technology than we are, but as it turns out, CGM is actually pretty hard to do, and there are some pretty solid reasons why the technology seems stuck.

Continue reading “Why Is Continuous Glucose Monitoring So Hard?”

Closing The Loop On An Artificial Pancreas

Life as a parent is never easy, but when you’ve got a kid with Type 1 diabetes it’s a little harder. Sometimes it feels like a full-time job in itself; there’s never a break. With carb counts and insulin ratios that change throughout the day, every meal is a medical procedure. A romp in the snow or a long bike ride can send her blood glucose plummeting. The overnights are the worst, though, because you never know if you overestimated the number of carbs at dinner and gave her too much insulin. Low blood glucose is easily treated with a few sips of juice, but if it goes unnoticed in the middle of the night, it could be fatal. That’s why parents of diabetics are always a little glassy eyed — we rarely sleep.

Why is all this necessary? It’s because Type 1 diabetes (T1D) is an autoimmune disease that attacks the insulin-producing beta cells in the pancreas. Once those cells are dead, insulin is no longer produced, and without insulin the rest of the cells in the body can’t take in the glucose that they need to live. Diabetics have to inject just the right amount of insulin at just the right time to coincide with the blood glucose spike that occurs after meals. Knowing how much to give and when is why we say we have to “learn to think like a pancreas.”

1-1-2-4_ping
Animas Ping insulin pump, partial teardown. The cylinder on the bottom is the battery, the motor and syringe compartment are on top. Source: Animas

Things are better than they used to be, for sure. Insulin pumps have been a game changer for T1Ds. An insulin pump is just a tiny syringe pump. A small motor moves the plunger on a disposable syringe filled with a few days worth of insulin. The hormone is delivered through a small catheter placed under the skin every few days — painful, but better than a needle stick with every meal and snack.  A computer keeps track of everything and provides safety against overdosing on insulin, so it’s terribly convenient, but we still need to “think like a pancreas” and calculate the amount to deliver.

Even with its shortcomings, my daughter’s pump has been a blessing, and I’ll do whatever it takes to keep her in the latest gear. Pumps generally cost about $5000 or so, and need to be replaced every three years. While I’m not looking forward to paying the bill when her current pump gives up the ghost, I am certainly keen to do a teardown on the old one. I suspect it’s dead simple in there — a tiny gear motor, some kind of limit switches, and a main board. It’ll be painful to see how little my money buys, but it’ll be cool to play around with it.

Continue reading “Closing The Loop On An Artificial Pancreas”