-
Notifications
You must be signed in to change notification settings - Fork 47
TI USB stick
This repository lets you communicate with the Medtronic pumps in alternative ways. See https://github.com/oskarpearson/mmeowlink/wiki for more information on the available options.
Note that this is not the smallest or cheapest connection method, and doesn't necessarily have the best range. However, it does work a lot better than the CareLink, and doesn't require soldering.
Here's a picture of the complete setup. I've included the Carelink simply for comparison purposes - you don't need the Carelink!
Our original closed-loop setup weighed 430 grams (15oz). The new setup weighs 170 grams (6oz).
Inside the box, I've used double-sided Velcro tape to hold the components in place. I've also placed a cable-tie around the power cable that leads out the box, so that it won't pull out accidentally.
As this image shows, 50% or more of space inside the box is currently empty, but is required for the usb extension cable.
If we replace the OTG cable with a OTG Adapter we can reduce the size even further, at the expense of requiring a longer case.
Once you've got a working solution, you can also cut the pins off the TI stick with a Dremel. This would shrink the width even further.
NOTE You might want to consider one of the other options on The Wiki as they might be cheaper, smaller, or have larger range.
- Intel Edison Compute Module - Get it from Amazon, Adafruit, Sparkfun or your nearest provider.
- The photographed version uses the Sparkfun Base Block, but you can also use the slightly bigger and more versatile Intel Edison Breakout board. (NOTE - not the Arduino board). You might find it cheaper to buy the Intel Edison Module and Breakout board as a kit. Future and smaller versions of this project are likely to use the official Intel Breakout board rather than the Sparkfun Base Block.
- Battery - we use the 3350mAh Anker battery Without wifi or bluetooth hotspots running, the Anker battery powers the Intel Edison for approximately 13 hours. It also does passthrough charging. Note that some other higher-power chargers that work with the Pi will randomly turn off as the Intel Edison draws too little power and the charger decides nothing is connected to it.
- A short OTG adapter/cable to connect the TI stick to the Edison. Amazon has many of these - the exact one you use probably doesn't really matter. Note that you might consider using a nano OTG adapter.
- A box to house it in. You might want to visit your local electronics store to find a box that fits everything snugly.
- Double-sided Velcro stickers to hold the pieces in place in the box.
- A short micro-USB cable to connect the Anker battery to the Edison Base Board. This gets a lot of wear - so get a good quality cable.
- A cable-tie to tie inside the box, to stop the micro-USB being pulled loose.
- A craft knife or drill to cut a hole into the box that you can fit the micro-USB cable through.
Additionally, you will need the items:
- A CC1111EMK868-915
- A programmer for the CC1111EMK868-915 - the CC-Debugger or GoodFET or Adafruit GoodFET. Note that you should only need this once. Ask other users in your area if they have one, or check with a local Hackspace.
I'm going to experiment with putting rechargable lipo batteries and the controller inside a case, and dispense with the external battery pack. I'm also considering using a QI charger unit. This way the device can be charged by placing it on a bedside charger and no cables are required. It seems that a set of 6000mAh lipo batteries would give us full-day functionality in a pocket-sized device.
You will need the following:
- cc1111emk868-915
- TI Debugger or a GoodFET or similar. (You only need this for the first installation. See if a local Hackspace or other user could help you)
The best instructions for this are on the MMCommander Site. However, overall the process is as follows.
- Download the MMCommander source code.
- Sign up for a trial license of the EW8051 compiler / Homepage
- Install the compiler with the license code emailed to you automatically.
- Open the MMCommander project's src/MMCommander/MMCommander.eww file
- Edit the configuration.h file, setting:
- If you are in the USA, set this to 1: #define _USA_FREQUENCY_MODE_ 1
- #define _TX_ENABLE_ 1
- #define _REPEATED_COMMAND_ENABLED_ 0
- #define _TX_FILTER_ENABLE_ 0
- Build the project, which will generate you a .hex file.
Once built, you will need to write the firmware to the stick. To do this, you will need to follow the instructions for the TI Flash Programmer Tool. Alternatively, CC-Tool works well too.