Giter Club home page Giter Club logo

cgms's Introduction

cgms

Arduino to CGMS

I have stripped this down to the basics. Works on a teensy 3.1, you'll need to make some mods to compile on a Mega ADK. This should retrieve your current glucose every 5 minutes. It also populates an array with your most recent values. Limited attempt at power saving / sleep mode.

I use the circuits@home mini usb, a teensy 3.1 and a sparkfun bluesmirf silver or gold.
I use a battery pack and charger from adafruit.
circuits@home provides libraries.

Good write up on the USB code at http://www.instructables.com/id/Control-an-Arduino-With-a-Wristwatch-TI-eZ430-Chr/step2/The-Arduino-Sketch/ I think I lifted the USB Portion from here, as it’s not in the libraries/examples for the circuits@home dongle.

Be careful with your microcontroller choice, you need allot of SRAM, the 2kb in the UNO isn’t enough to pull back the 1056 byte pages of data. Hence why I use the Teensy, the Mega ADK is also OK.

The mini usb dongle needs to be modified to work properly, it runs at 3v and the CGMS needs 5. If you try this without making the modifications suggested by circuits@home, you’ll get a hardware battery fault from the CGMS.
So, you need to modify the board, to isolate the USB power, and separately provide 5v. Assuming you’re using a 3v lipo, you’ll need to step up the voltage, circuits@home has the board for that also.

The mega adk will work as is, since it's 5v. The full size circuits@home usb board is also 5v.

The code is a work in progress, I make no claims etc.
You'll need to make changes depending on the micro you choose.

I should be able to get much more battery life by cutting the power to the CGMS, using a transistor as a switch off of one of the teensy pins.
The issue with this is you need to reboot the microcontroller at wake up, otherwise the USB doesn't come up.
I can get to 24 hours then. Without shutting down the usb, you'll get 8-11 hours(1200 mAh battery). When you are connected to the CGMS, it draws 100ma.
The circuit I use can keep the CGMS at whatever charge level it was at when you plugged it in.

cgms's People

Contributors

brownedon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.