JoernL / LimiTTer

Transmitter for the Freestyle Libre FGM system
200 stars 103 forks source link

LIMITTER #1

Open pedrojrr opened 8 years ago

pedrojrr commented 8 years ago

Hola mi nombre es Pedro y soy padre de un niño Diabetico que usa el freestyle libre. Primero quisiera darle mi enhorabuena por el desarrollo del proyecto ya que llevábamos tiempo buscando algo parecido. Estoy deseando que comparta su diseño para poder probarlo en mi hijo sobre todo por la utilidad de guardián nocturno. Gracias por su tiempo y dedicación estoy convencido que seremos muchos los padres que se lo agradeceremos. Espero tener pronto noticias suyas

VoronMods commented 8 years ago

@SandraK82 here is my try to fix it with Velcro http://imgur.com/yWh2rkH , I can even sleep on it but its far from optimal or safe :) one problem is you can snap off the sensor if you not careful when detaching the transmitter. good way to experiment with flexible case is 3D print with e.g. NinjaFlex, just have to wait til I have parts for my Ultimaker 2 clone then can do some case experiments.

jolaca01 commented 8 years ago

Congrats on your development JoernL and everyone in this community for trying to improve your original design!! I'm also very interested in all your findings. Thanks again for your interest and work!!

libxmike commented 8 years ago

@JoernL finally got it working with the new version of both xDrip and LimiTTer.ino, what it was is still a mystery :) Thanks!

JoernL commented 8 years ago

@libxmike, fine :) Enjoy!

libxmike commented 8 years ago

@JoernL is it possible to send the packets direct to NightScout/Azure DB over WiFI with ESP8266 instead over BT? the only problem I see is the ESP8266 needs some power

JoernL commented 8 years ago

Hmm ... i've got none experience with uploading the data to any database. All i know is the dexcom community always uses xDrip to upload their data - not directly the wixel. But i think it should be possible. But then the data must be parsed into an acceptable format like xml or something else.

libxmike commented 8 years ago

@JoernL I found one problem with xDrip for LimiTTer, in shows LOW alarm when the BG high is, red LOW letters on the screen

JoernL commented 8 years ago

Yes, i have already fixed that. Will upload new code next days ...thx!

Maik-dyk commented 8 years ago

Hi everyone, I ordered a BM019 but the circuit is out of stock and they can’t serve me until June. Do you know any shop that serves in Europe and has this item in stock? I want to start testing the Limitter. Thanks in advance.

jolaca01 commented 8 years ago

Hi, same problem here Maik-dyk!! Any idea where to get in a reasonable period of time(=in stock) a BM019 in Europe?? Thanks!!

jolaca01 commented 8 years ago

Actually, I'm also having difficulties to find in stock besides the solutions cube BM019 NFC , the HM-11 BT module, and theadafruit lipo battery 3.7V 100mAh (I've found others but not sure connectors and dimensions to be right for the project). Anyone know some website in Europe when I can order these PCBs at a reasonable price and delivery time?? Thanks in advance!!

VoronMods commented 8 years ago

@jolaca01 and all other who are looking for BM-019 module, warburtech have the best price for it, I order my module always there, can only recommend http://www.warburtech.co.uk/products/modules/solutions.cubed.bm019.serial.to.nfc.converter/

SandraK82 commented 8 years ago

@jolaca01 if you order something like: http://www.amazon.de/dp/B00MJ0HOKS/ref=sr_ph?ie=UTF8&qid=1463228267&sr=1&keywords=adafruit+usb you get the cable you need. Currently i use this lipo: http://www.amazon.de/Original-Hexacopter-Batterie-Quadrocopter-Ersatzteile/dp/B017IO6ZXQ?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o03_s00 It holde great, currently i read the whole sensor every 2 minutes and one charge lasts about 48 hours. May guess is, if i can finally release and test my improved lib, i can get up to 4 days with one charge. @LibCGM the velcro idea is great! I use a curapor to cover the whole sensor and surrounding skin, a path velcro on top of the sensor and my board is good to go for the day, only at night and while beging in the gym i use flexible bandages to further lock it in place.

jolaca01 commented 8 years ago

Thanks both for the links SandraK82 and LibCGM!. I've ordered BM-019 NFC reader from warbutech although they didn't have their web updated and actually didn't have it in stock. However they're expecting it in two weeks. Meanwhile, I'll practice and try to improve my soldering skills! ;-))

jolaca01 commented 8 years ago

Hi, I've had problems today with my daughter's sensor. I have to replace it but I'm concerned about what has happened. I've just read the sensor within the same minute with 2 different mobiles and the official reader and then came the failure. I understood that the sensor just lets read the info from it by any NFC reader in a transparent manner. However now, I'm not so sure and I'm also thinking that the problem could have been to read too soon with inconsistent time values (different times in the mobiles or official reader). Could this 'break' the FS sensor or is this just impossible as it does not record/keep track of how we are reading from it?? Any info regarding it would be great. I don't want to break a sensor again. Thanks!!

libxmike commented 8 years ago

@jolaca01 i had two sensor failure because of simultaneous read (I suspect), one was not so bad because it had just 10h to end his 14 days cycle. I had two transmitters on my arm, LimiTTer and my own which transfers to iPhone, both with BM019, one reads every 2min and the LimiTTer every 5min, the sensor died after maybe 15h, I recommend to never read at the same time with two readers, Liapp, LimiTTer, Flash Reader. Read with Flash Reader between LimiTTer reads, 2min after or 2 before next read.

Also you can read on Sandras blog, last entry. It is in german, http://unendlichkeit.net/wordpress/?p=86

libxmike commented 8 years ago

just for info, the LiPo chargers on Aliexpress you can get for 0.17 EUR http://www.aliexpress.com/item/Free-shipping-5pcs-LOT-TP4056-1A-Lipo-Battery-Charging-Board-Charger-Module-lithium-battery-DIY-MICRO/32617576606.html thats where I buy my chargers.

libxmike commented 8 years ago

I just noticed that LibCGM and libxmike is the same person, me :) I thing with one account I'm logged in at work, with other one at home :)

holmberg81 commented 8 years ago

It was cheap. In Sweden I found it: http://www.kjell.com/se/sortiment/el-verktyg/elektronik/arduino/moduler/adafruit-laddare-for-li-jon-micro-usb-p87927 Den 15 maj 2016 1:28 em skrev "libxmike" notifications@github.com:

just for info, the LiPo chargers are on Aliexpress you can get for 0.17 EUR

http://www.aliexpress.com/item/Free-shipping-5pcs-LOT-TP4056-1A-Lipo-Battery-Charging-Board-Charger-Module-lithium-battery-DIY-MICRO/32617576606.html thats where I buy my chargers.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-219279816

libxmike commented 8 years ago

@holmberg81 it was not cheap, 13EUR for LiPo charger, never. HM-11 I ordered here: http://www.aliexpress.com/item/Free-shipping-2014-Latest-Bluetooth-4-0-BLE-TI-CC2540-module-low-power-HM-11-bluetooth/32230126910.html

holmberg81 commented 8 years ago

Did not wont to wait. Order evreryting in EU. Only have to wait 5 days on NFC. :) Order 250mA batteri. Ser how long time it works now. Hope off 48 hour. Den 15 maj 2016 1:37 em skrev "libxmike" notifications@github.com:

@holmberg81 https://github.com/holmberg81 it was not cheap, 13EUR for LiPo charger, never. HM-11 I ordered here:

http://www.aliexpress.com/item/Free-shipping-2014-Latest-Bluetooth-4-0-BLE-TI-CC2540-module-low-power-HM-11-bluetooth/32230126910.html

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-219280216

JoernL commented 8 years ago

@jolaca01 , hmm i had often read a sensor at same time in sequence with the original reader and the limitter. No problems. Could it be that several nfc devices could grill a sensor? Don't think so. But maybe ...?

JoernL commented 8 years ago

@holmberg81 , Android 6, 5 or 4?

holmberg81 commented 8 years ago

5.1.1 cyanogenmod Den 15 maj 2016 2:01 em skrev "JoernL" notifications@github.com:

@holmberg81 https://github.com/holmberg81 , Android 6, 5 or 4?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-219281846

JoernL commented 8 years ago

Then it will last about 75-90hrs with a 250mAh lipo.

holmberg81 commented 8 years ago

Nice. :)

2016-05-15 14:09 GMT+02:00 JoernL notifications@github.com:

Then it will last about 75-90hrs with a 250mAh lipo.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/JoernL/LimiTTer/issues/1#issuecomment-219282190

tim2000s commented 8 years ago

We've seen this with the implementation of NFC on certain phones as well. Glimp has been known to cause sensor failure although I'm not clear of the details around why it happened.

Sent from my iPhone

On 15 May 2016, at 12:59, JoernL notifications@github.com wrote:

@jolaca01 , hmm i had often read a sensor at same time in sequence with the original reader and the limitter. No problems. Could it be that several nfc devices could grill a sensor? Don't think so. But maybe ...?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

jolaca01 commented 8 years ago

Thanks tim2000s, JoernL and libxMike for your thoughts about the reason for sensor failures. I've been searching info and think now that I know what it is: from Glimp documentation there's this note: " ATTENTION: devices Samsung Galaxy Core Prime, Samsung Galaxy Young and Samsung Galaxy J5 may break Libre sensor. If you have one of these models please don't use Glimp for reading sensors!"
Actually, I usually do readings with my Moto Nexus 6 but when I had the failure I was trying an older (android 4.4) Samsung Galaxy Ace4 mobile that was not in the list but I think should get added to it!!. So beware what mobile phone you're using to read your sensors!!. Hope this helps. I have contacted CTAPP software in order to inform them also (should they want to increase their incompatibility list).

anoukackermans commented 8 years ago

Yeay realy good thing the limmitter. I want to build this and have all the materials but my usb to ttl is a mini usb to ttl is that a problem? In the tutorial you must bend the CTS and the 5v But I don't have the 5v. I have: DTR-RX-TX-VCC-CTS-GND Witch one I must bend?

I hope you can help me.

jolaca01 commented 8 years ago

Hi, it depends on the position of the pins in your USB to TTL. The important thing here is to be sure to connect Vcc with Vcc (3V, never 5V in order not to fry it) ground with ground (gnd), TX with RX and RX with TX. Just check if your USB to TTL aligns properly these pins with your arduino, if that's not the case, you'll just need to connect them in order to program your arduino. ;-)

MaxHo123 commented 8 years ago

How do I need to modify the code if I want to use something like the redbearlab ble nano??

libxmike commented 8 years ago

@JoernL where do you put the power switch, between LiPo and charger or between charger and Arduino?

JoernL commented 8 years ago

Lipo and charger. My LimiTTer has not a switch. I built it as small as possible.

libxmike commented 8 years ago

@JoernL I use a very tiny switch soldered to Micro USB on the LiPo charger I connect the switch between charger and Arduino, so I can charge w/o powering the LimiTTer.

pedrojrr commented 8 years ago

I finished my limitter, but I have a problem. After receiving the first reading on the phone, the device is disconnected and does not return to receive readings. I use a phone with Android 5.0 bq Can anyone tell me where to look for the problem?

pedrojrr commented 8 years ago

more detail in the application appears in xdrip message "signal missed"

JoernL commented 8 years ago

If the reconnect failed, you should see the device after Scan BT in xdrip app every 4 minutes . Right?

pedrojrr commented 8 years ago

Dear Joernl After 4 minutes "conection status: connected" if I go "system status" appears, but in the BT scan the device does not appear limitter 4 minutes after the first reading. Then my device now only makes the first data transmission, after 10 minutes, the message appears and missed signal to turn off / on the limitter to be reconnect. Notes: I bought the NFC if you read every 5 minutes

JoernL commented 8 years ago

That sounds that it reconnects successfully. Try to resolder rx tx on HM module

pedrojrr commented 8 years ago

Sorry, I have resoldier all connections HM module and continues the problem. Can it be a problem with my mobile phone? My phone is a model BQ E5hd with Android version 5.0 Lolipod and the limiter is the last that without the modification you entered

libxmike commented 8 years ago

@JoernL I build 2nd LimiTTer which works 1A but it wont transfer data to NighWatch/MongoDB with the new LimiTTer, is there and identification for the BLE (MAC) ? Do I have to reset or change something if I use two LimmTTer's (I swap then, don't use at the same time) ? In the Arduino code, the the BLE has the same name, I did not change anything in settings or in xDrip and I can access the azure web site w/o any issue, xDrip works also w/o any problem.

libxmike commented 8 years ago

@pedrojrr can be that you phone does not have BLE support?

libxmike commented 8 years ago

@JoernL LimiTTer or MongoDB was not the problem, Azure must have some connection problem. on my smartwatch which is connected to iPhone and which communicates with MongoDB API I get the latest BG, just in a browser which is connecting to Azure don't get latest BG

libxmike commented 8 years ago

@JoernL what means "Add files via upload" in der neue ino version?

JoernL commented 8 years ago

@libxmike , this is the default comment text on github if nothing has been entered.

libxmike commented 8 years ago

here some inspiration for others, LimiTTer attached with magnets. I used 15x1mm but 12 x 1.5mm will fit better, 15mm is too big. Will order 12x1.5mm today for next try. You can get them on alliexpress www.aliexpress.com/item/Wholesale-10PCS-12mm-x-1-5mm-Strong-Round-Cylinder-Magnets-12X1-5-Rare-Earth-Neodymium-NEW/32655190521.html 1.14 EUR for 10 pcs, ordered from this seller the 15mm magnets, shipping was 20 days to DE. http://imgur.com/a/9pQEV

JoernL commented 8 years ago

Do you have one magnet added under Fixomull that keep the body of the limitter? And the front NFC part?

libxmike commented 8 years ago

yes, I have 3 magnets, two on the sensor and one below (as you can see on the pictures) under fixomull to keep the LimiTTer from bouncing around. Last sensor was fixed with 4 small, 10x4x1mm magnets attached just to the sensor and was stable (running 10km was no problem even at high speed) but it was bouncing too much. Now I'm confident that won't fall off.

JoernL commented 8 years ago

Cool, in comparison to velcro tape what is your opinion to be the better choice?

libxmike commented 8 years ago

@JoernL Magnets!!! I used velcro before and two times the sensor was attached to LimiTTer after I detached it :) Velcro is too strong.

I have other problem, I started new sensor few hours ago and can't get in xDrip and readings, still message: "please wait, need 2 readings from transmitter ...." I did stopped and started sensor in xDrip few times, Scaned for BT and xDrip found LimiTTer but nothing.