eimermusic / picodex

A Dexcom CGM bedroom (or kitchen) display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Picodex

A Dexcom CGM bedroom (or kitchen) display based on the Raspberry Pi Pico W

Final working Picodex device

Components

Raspberry Pi Pico W

Official website.

2.4" 128x64 OLED display with SPI or I2C interface

These are sold all over the web under many different brand names. JUst make sure it looks like this: OLED Display

E.g:

Obvious tools, bits and bobs

You need some wires, soldering equipment, a computer and so on. Notable you don't actually need a 3D printer. Those can often be found in maker spaces or at some friend's house.. or a commercial printing service.

Development Setup

Breadboard development setup

All development was done on a breadboard, a Pico with headers solder on, and a smaller OLED display with the same resolution.

Overview of this Repo

This repo is organized into a few folders for the hardware and software side of things.

Hardware

hardware contains the stl files for 2 different versions of the case. Both cases print with n supports just fine on my dirt cheap Ender 3 printer using the cheapest PLA I had. The Pico and screen are both fastened using guide-pegs and hot glue so they don't rattle loose over time. The cases are both assembled just by interference fit. No fastners or adhesives needed. The fit is a bit tight but once snapped into place they are not likely to come loose.

Version 3 case

The V3 case has the USB power connector on the right side. This is the smaller, easier to both print, and to assemble.

Version 2 case

The V2 case has the USB power connector at the back and is therefore a bit larger.

Both cases are intended for desk/table use. No wall mounting case at this time.

(The version 1 case looked like the v2 but with a fully vertical front)

Micropython

micropython contains the software that runs the device after installing micropython on the Pico.

micropython/upydexcom is a port of the Pydexcom project to run on a Micropython device. This is also available as fork called UPydexcom project

Using this project for your own CGM display

  • micropython/config.example.py is intended to be renamed to config.py and should contain your wifi and Dexcom login information.
  • micropython/main.py supports two kinds of screen drivers. My small dev screen needed a different driver from the bigger screen used in the final device. Depending on the screen you connect, you may need to comment/uncomment the screen setup near the top of the file. I plan to extract this into more clean import files.

References

more to come...

About

A Dexcom CGM bedroom (or kitchen) display

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 100.0%