The J Files

Everything that broke while building Cervicam

Joefer's Cervicam prototype enclosure on a wooden desk, its touchscreen mount beside the exposed USB wiring and battery pack used during build and testing.

Cervicam Thesis Series

Part 4 of 6

  1. 1 The most important number in childbirth is basically a guess
  2. 2 Ultrasound fixes the accuracy problem. It also costs too much.
  3. 3 Building a cervix-measuring camera probe on a Raspberry Pi budget
  4. 4 Everything that broke while building Cervicam
  5. 5 I tested Cervicam with real healthcare workers. Here’s the usability score.
  6. 6 What a proof-of-concept device can and can’t tell you

Post 3 showed you the finished Cervicam: a splash screen, three buttons, a probe that actually measures something. What that photo doesn’t show is how long the device spent barely working at all.

One thing I want to be upfront about: this is a proof-of-concept, tested only on a 3D-printed cervix model, never a real patient. Even several iterations further, the idea of this being used on someone in labor is a scary proposition.

The probe I never made any smaller

Post 3 already covered how Cervicam ended up with a time-of-flight sensor instead of the cheap infrared ones I tried first, and how trimming its mounting holes got the finished probe down to about 2cm across. What that post didn’t get into: even that wasn’t the smallest the probe could have been.

The thesis itself says so plainly. Isolating the sensor module from its own circuit board, the same move that made the earlier infrared sensors less reliable once I tried it, could have shrunk the probe further still. I never did it on the time-of-flight sensor. Not because I tested it and decided against it, but because I didn’t have the soldering and circuit-isolation skill to pull it off reliably at the time.

Given how tight the actual working space is, the probe has to fit and operate somewhere between the vaginal opening and the cervix without ever touching it, a smaller probe isn’t just a nice-to-have. It’s room for a gentler device, still sitting there, unbuilt, for whoever picks this up with better hands than mine.

The touchscreen that only worked on one side

Partway through development, about 5mm of the display’s left edge stopped responding to touch. That doesn’t sound like much until you realize the Application Menu, the one thing you need to reach any of the Raspberry Pi’s actual functions, lived in exactly that strip.

My first fix was to stop using the built-in screen at all and mirror the display onto a phone instead, through a remote-desktop tool. I worked through RealVNC, SpaceDesk, WiredXDisplay, Weylus, and bVNC before landing on AnyDesk, specifically for a “Mouse Emulation” feature that let the phone’s own touchscreen stand in for the dead one.

That became what I started calling phone hybrid mode: less cabling than the original setup, a bigger and sharper screen (genuinely useful for anyone with vision issues), and close to free, since a phone is something most people already own. For comparison, the display itself was the single most expensive part in the whole build: ₱2,829 (~$45), more than three times the Raspberry Pi Zero 2 W’s own ₱855 (~$14) suggested retail price.

A smartphone mounted on top of Cervicam's 3D-printed handle, its screen showing the Cervicam splash menu with Start Measuring, Show Graphs, and Delete Records.
Figure 1. Phone hybrid mode: a phone standing in for the dead strip of touchscreen, via AnyDesk’s Mouse Emulation.

The catch: phone hybrid mode needs an internet connection, and the original screen doesn’t. So when it came time to actually test Cervicam with healthcare workers, I didn’t use it. I used the much less interesting fix instead: rotate the display 180 degrees, so the dead strip lands on the right side of the screen instead of on top of the menu. Phone hybrid mode still works. It’s just sitting there, unused, for whoever picks this up next.

The battery that kept lying about how much charge it had

Cervicam’s other recurring problem was shutting down at random and getting stuck in boot loops. My first guess was the charging module, a TP4056 board that tops out at 1A, so I swapped it for a TP5100 paired with an MT3608 boost converter, rated for a proper 5V at 2A. That looked like it fixed things, right up until the battery dropped low again, and the boot loop came right back.

Once the battery hit that low point, the only reliable fix was swapping in a different battery, one charged separately with a dedicated charger rather than through Cervicam’s own port. That’s a strong hint that whatever overdischarge or undervoltage protection the TP5100 is supposed to provide wasn’t kicking in soon enough to keep the battery in a state it could actually recharge from. I never fully solved it. One battery measured as low as 3.47V on a multitester, right after a low-battery shutdown. During the actual usability testing with healthcare workers, Cervicam stayed tethered to a 20,000 mAh power bank the entire time, which is not exactly the self-contained device the project set out to build.

If anyone picks this up later, three things are worth checking first:

  • One 18650 cell isn’t enough. A redesign built around at least two cells would help with both voltage and amperage headroom.
  • The 3W LED is wired straight to the battery, since the Raspberry Pi can’t power it directly. A transistor, something like a TIP120, sitting between them might ease the power draw; that’s past what I know how to do myself.
  • The 5V fan might not need to exist. It keeps things cool, sure, but it also keeps running even when the device is switched off, and Cervicam runs cool enough on its own in an air-conditioned room that the fan may be solving a problem that isn’t really there.

What actually made it to testing

None of this is a tidy ending. The device that got tested wasn’t the one originally planned; it was the one that survived a rotated screen and a power bank taped to the side. That’s the version in post 3’s photos, and it’s the version thirteen healthcare workers actually used, which is what the next post is about.

This post is adapted from my unpublished Master’s thesis, “Touch Me Not”: A Cervix Uteri’s Plea for a More Objective Cervical Dilatation Measurement — Proof of Concept for a Camera-Based Cervimeter, completed July 2024 for my MSIT at MSU-IIT. Publishing it wasn’t a requirement for the degree, so parts of it are appearing publicly here for the first time. It hasn’t been peer-reviewed, and the views and conclusions are my own. Shared under CC BY-NC, with attribution appreciated.

Enjoyed this one?

Let J know with some claps

Leave a comment

Your email stays private. Comments are held for moderation, so yours will appear once approved.

Back to The J Files