CYGM. Build your own CGM display for about $40.
One ESP32 touchscreen board, a USB cable and a browser is the whole shopping list. CYGM is an open-source CGM display for a sensor you already wear, and there is nothing to solder.
Released v1.1.10$40 in parts1 required partno soldering15 min to assemble
Three parts, and only the first one is required
The cheapest CYGM that works is one display board plus a USB cable you already own. I add the speaker and the battery because I want them, not because the thing needs them.
Before you order anything, read this bit twice. The board is the JC2432W328C, and that trailing C is the whole ballgame. There is a resistive board sold under almost the same name, it looks the same in the photos, and my touch driver will not talk to it. No software fix, no workaround, just a $20 paperweight. So open the listing, find the word capacitive, and only then pay. This is the one way I know of to lose money on this build.
-
ESP32 display board, JC2432W328C capacitive Required
The whole device. A 2.8-inch touchscreen development board with WiFi, USB-C and a microSD slot.
~$20Amazon -
Mini speaker, 1 W 8 Ω, JST-PH 1.25 mm Optional
Plugs into the board's amplified output. I metered it peaking at 105 dB with the speaker fitted, and measuring sound is my trade. Without it the board still makes a noise, but a quiet one.
~$8Amazon -
LiPo battery, 3000 mAh Optional
Portable use and riding out a power cut. The printed case is sized for it, and CYGM runs from USB without it. Its plug goes in the connector marked BAT, never the one marked SPK, which destroys the amplifier.
~$12Amazon -
4x M3x10 button head screws Optional
Hold the two halves of the printed case together. Any hardware shop.
~$1 -
USB-C data cable Required
Power, and the first firmware flash. It must carry data. You probably own one.
n/a -
3D-printed case Optional
An enclosure sized for the board and the 3000 mAh battery.
n/aMakerWorld -
microSD card Optional
Optional CSV logging of readings, which you can read back later in the card viewer. Any small card.
n/a
Tools: a USB-C data cable, a computer running Chrome or Edge, and a small screwdriver.
Prices are approximate. The links go to the exact items I built with. Buy the equivalent anywhere you like, with the one exception above: on the board, capacitive is not a preference.
There is nothing to solder
Two connectors, four screws, and a case if you want one. Fifteen minutes with a small screwdriver.
A lithium cell is the one part of this build that can hurt you. Treat it with the same care you would give any other lithium battery in the house, and if any of this makes you uneasy, skip the battery entirely and run the device from USB. It works perfectly well that way.
- Use a protected cell with its own protection circuit, from a seller you have reason to trust. An unprotected cell has nothing between it and a short.
- Get the polarity right. Red to BAT+, black to BAT-. Reversed polarity can destroy the board and damage the cell.
- Never charge it unattended, and never overnight while you sleep. Charge it where you can see it.
- Never use a damaged, swollen, punctured or dented cell, and stop using one that gets hot, smells odd or changes shape. Take it out of the house.
- A lithium cell can vent, catch fire or burst if it is mistreated, shorted, crushed or overheated. Keep it away from anything that burns easily.
- Keep cells and the assembled device away from children and pets, and do not leave a loose cell where either can find it.
- Dispose of it properly at a battery recycling point. It does not belong in household rubbish.
-
Snap the battery into the bottom of the case, with the wire routed towards the side with the buttons. It only sits one way round. This is the step that puts a lithium cell in your hand: the handling rules are in the box directly above.
Battery in the base -
Peel the protective film off the speaker and press it into the speaker slot. Push firmly, so the adhesive takes.
Speaker in its slot
The speaker goes in SPK. The battery goes in BAT. Do not mix them up.
Putting the battery into the speaker port destroys the audio amplifier the instant you connect it. Not sometimes, and not recoverably. There is no fuse to replace and no setting to change. The board will still work, the screen will still work, and the speaker will simply never make a sound again.
Ask me how I know.
The two connectors look almost identical and they sit close together, which is exactly why this is worth a paragraph. The board tells you which is which in tiny white letters beside each one. Find BAT+ and BAT- for the battery and Speak for the speaker, and check them under a decent light before you push either plug home. The photograph below is that corner of the board, close up.
-
Plug the speaker into SPK and the battery into BAT, having just read the paragraph above.
Both leads connected -
Lay the board into the base. Line the top up with the board; there is an indent for the status LED which makes it obvious when you have it the right way round.
Board in the base -
Screw the top to the base with the four M3x10 button head screws. Snug, not tight. It is plastic.
Four screws
That is the whole build. Everything from here happens in software. If you are printing the case yourself, the model is published here with my settings saved into the profile.
Putting the software on it
Chrome or Edge writes it over the USB cable in about a minute, with the six steps and the safety wording on the page beside the button. There is nothing to download and nothing to compile.
Firmware v1.1.10 Release. After this one install, updates arrive over Wi-Fi.
Wi-Fi, then your CGM, then where you are
A freshly flashed device walks you through all of this on screen, one card at a time. If you would rather drive it yourself, everything below is in the settings gear.
- Join your WiFi. Gear icon, then WiFi Setup. Tap yours and type the password. It has to be a 2.4 GHz network.
- Pick your CGM and sign in. Gear icon, then CGM Settings, then Dexcom Share, LibreLinkUp or Nightscout.
- Tell it where you are. Gear icon, then Time / Weather, then Search Location. Type a city or a postal code. Timezone, weather and sunrise all fall out of that one answer.
- Wait for the first reading. From then on it looks for new data about every ninety seconds without you.
Sign in on the screen
Each service has its own page with the exact taps: Dexcom Share, LibreLinkUp or Nightscout.
WiFi setup CGM providers Time and weather Home
What is actually inside
| Board | JC2432W328C, capacitive touch variant |
| MCU | ESP32-D0WD, dual-core Xtensa, no PSRAM, roughly 320 KB of RAM |
| Display | ST7789 2.8-inch SPI LCD, 320 by 240, 16-bit colour, landscape |
| Touch | CST820 capacitive, over I2C |
| Audio | On-board buzzer, with an amplified output for the optional 1 W speaker |
| Power | USB-C, with optional LiPo battery |
| Storage | microSD slot, used for optional CSV logging of readings |
| Networking | 2.4 GHz WiFi. Every HTTPS client on the device verifies the server certificate |
| Data sources | Dexcom Share (G6, G7), LibreLinkUp (Libre 2, Libre 3, Libre 3 Plus), Nightscout |
| Updates | Over the air, into whichever of the two application slots is not running |
All of it is on GitHub under an MIT licence
Clone it, change it, ship your own build. That is the point of making it open source.
The firmware is one ESP-IDF application written in C, with a client per CGM service, a hardware layer, and one
file per LVGL screen. Build it with the ESP-IDF v5.5.2 toolchain: idf.py build, then
idf.py -p PORT flash monitor.
What this build will not do for you
It does not measure glucose
There is no sensor in this build and nothing goes near the body. It reads what your existing CGM already publishes to its own cloud service.
It is not FDA-cleared or FDA-approved
Not cleared or approved by any regulator, not clinically validated, and never the thing to dose from. Confirm on the official app or receiver first, always.
It cannot replace the phone app
The official app has to keep running, because it is what uploads to the service my device reads from. This is a second screen. It is not a substitute for the first one.
What builders ask before they order
Do I need to solder anything?
No, nothing. The board turns up assembled, and the optional speaker and battery use plug-in connectors.
Which ESP32 board is it, exactly?
The JC2432W328C, the capacitive touch variant. The resistive board sold under nearly the same name has a different touch controller and will not work.
How much does the whole thing cost?
About $40 if you buy the lot, and roughly half that for the minimum build. The board is around $20, the speaker around $8, the battery around $12, all approximate.
Do I need a computer after the first flash?
No. Later firmware comes in over WiFi. You only need the cable for that very first install.
Where does my data go?
From your CGM service straight to the device. There is no CYGM account and no server of mine in that path.
Order the board, then read the page for your CGM
Most of a DIY CGM display build is waiting for the post, so get the board moving and read the rest while you wait.
Once yours is running, the device guide walks every screen, and the card viewer reads back the readings logged to a card. The bigger CYGM+ is in beta, if you would rather build the one still being finished.