News for hackers. Stuff that matters.
Re:New partnership changes everything for the DIY diabetes c... by pkaye on Wednesday July 03, 2019 @04:57PM (#20348708)
Do you really need a Raspberry PI to do all this? Wouldn't a low end 32-bit (even 8-bit) micro-controller be enough?
Re:New partnership changes everything for the DIY diabetes c... by hanniabu on Wednesday July 03, 2019 @05:07PM (#20348793)
The documentation, community support, accessibility, etc all make a difference in making RPI the go-to
Re:New partnership changes everything for the DIY diabetes c... by rullgrus on Wednesday July 03, 2019 @05:19PM (#20348922)
Exactly. A low end micro-controller would do the trick but a Raspberry Pi is much more accessible - almost anyone can get one fairly quickly and if they themselves don't have the knowledge to do the setup they most likely know someone who can help.
Re:New partnership changes everything for the DIY diabetes c... by mrob on Wednesday July 03, 2019 @05:31PM (#20349031)
ATmega micro-controllers also have great community support and documentation because of their use in Arduinos. If I was relying on an electronic device to protect my health I'd trust a simple 8-bit device more than something as complex as a Raspberry Pi.
Re:New partnership changes everything for the DIY diabetes c... by endymi0n on Thursday July 04, 2019 @02:26AM (#20352053)
If I was relying on an electronic device to protect my health I‘d trust my garbage collected code on a 64 bit ARM CPU using real CPU timers way more than my own ability to not segfault or OOM myself to death (literally) with low-level embedded C code.

YMMV.

Re:New partnership changes everything for the DIY diabetes c... by zaarn on Thursday July 04, 2019 @05:53AM (#20353088)
Segfaulting and OOM on MCU's is far more rare than on a device with an entire operating system on top.

In most cases, MCU IDE's like the classic Arduino one don't even give you an allocator, all data must be statically allocated beforehand.

IIRC it doesn't use the stack either. The main() and loop() functions initialize all their variables statically.

When you have 2KB of memory to share between code, data and stack, allocating and using stack for function calls is luxury that only introduces problems.

Hence, I've never ever ever seen an MCU crash from segfaults or OOMs.

On the plus side they will also use vastly less energy. 10 Milliamps is enough to drive a ESP8266 or ESP32, in deep sleep you start counting microamps. A single battery cell can easily last a month.

Re:New partnership changes everything for the DIY diabetes c... by stefan_ on Wednesday July 03, 2019 @07:13PM (#20349930)
This diagram of an open source pancreas has about 3 devices and 3 cables too many. A coin cell can run the control loop forever.

I'm guessing industry hasn't produced this in a streamlined (reasonable) device because it will never be certified, and open source is just a codeword for subverting the regulatory process. Which, from a diabetes sufferer POV, is understandable.

The dark cloud on the horizon is that if the FCC throws a hissy fit because you can install new software on your wireless router, imagine what the FDA will do if you market your device as compatible with this open source software that claims to automagically control your insulin pump.

Re:New partnership changes everything for the DIY diabetes c... by Adirael on Thursday July 04, 2019 @06:41AM (#20353331)
The diagram is a bit old. I use a closed loop system (Loop) and I just carry a RileyLink that bridges RF-to-BT so my iPhone can talk with the pump.

No cables at all (and no infusion set cord if you use an Omnipod pump!)

Re:New partnership changes everything for the DIY diabetes c... by Adirael on Thursday July 04, 2019 @06:38AM (#20353305)
There are a few variants on how to do a closed loop system. OpenAPS is phone agnostic and everything runs on a RaspberryPi.

I myself use Loop. It's an iOS app that uses a RF-to-BT bridge to talk with the pump and intercepts the CGM reading from the official Dexcom app (there are forks that support different methods, being the Dexcom source the "official" one). The bridge is the size of a 9V battery, I never stopped to see which processor uses but it's probably 8 bit.

Each system support different pumps, sometimes people want to use one but are stuck with a different one to be able to use their pumps.