Case study 04 · IoT · 2025

It started with my grandpa forgetting his medicine

MedEZ drops the right pills on schedule, reminds the patient and lets a caregiver follow along in real time.

doses dispensed correctly in testing
9 / 10
MedEZ: IoT medicine dispenser, team lead

MedEZ began at home. My grandpa has to take his medicine on time, and he forgets. A reminder on a phone is easy to ignore, and a pill organiser still depends on him opening the right compartment at the right time. So we built a device that does the part he forgets. MedEZ drops the right pills on schedule, reminds the patient and lets a caregiver follow along in real time.

The problem

Medicine schedules fail in quiet ways. A dose is skipped, taken twice, or taken late, and nobody notices until something goes wrong. The person who cares most, often a family member, is usually not in the room. A phone alarm only solves the first moment: it rings, and then the dose depends on memory again. We wanted three things from one product: the right pills come out at the right time, the patient is reminded in a way that is hard to miss, and a caregiver can see from anywhere whether the dose was taken.

My role

I led the team, wrote the backend, and designed the physical device: I modelled and 3D-printed the casing and the dispensing mechanism. MedEZ was our project for the Telematics Project course (Proyek Telematika), built by a team of three. A teammate built the caregiver app.

What we built

  • The device. A 3D-printed casing holds the medicine and a dispensing mechanism that releases a dose on schedule. Because the mechanism is printed, its shape could be changed and reprinted as the design evolved.
  • The backend. A Go service on Google Cloud Firestore stores the schedules and the dose events, and pushes changes to the caregiver in real time.
  • The connection. The device is an IoT client: it reads its schedule from the backend and reports each dose back, so the caregiver’s view stays current.

Put together, a dose works like this: the schedule comes due, the device releases the pills and reminds the patient, and the event is written to Firestore, where the caregiver sees it in real time. If a dose is not taken, the caregiver can see that too, which is the whole point: the person who worries no longer has to call to ask. It talks to the backend over HTTP.

The numbers

  • 3 jobs in one product: dispense, remind and report to a caregiver.
  • 2 roles at once for me: team lead and builder of the backend and the hardware.
  • 9 of 10 doses dispensed correctly in testing.
  • 3 people on the team.

What I learned

Health tech lives in the edge cases. The test result says it plainly: nine doses out of ten came out right, and the tenth is the product. The normal day is easy: the schedule fires, the pill drops, the caregiver sees a tick. The product is defined by everything else. What happens when the device is offline at dose time, when two pills stick together, when the schedule changes mid-week, or when the patient takes the dose by hand? Each of those needs an answer before the device can be trusted with someone’s medicine.

The hardest part was not technical. It was being team lead and still shipping my own parts: the backend and the whole physical device. Leading meant keeping everyone unblocked and the plan honest; building meant long stretches with my head in CAD or Go. I learned to protect time for my own work, to make my parts easy for others to depend on early, and to say clearly when my part would be late instead of hoping it would catch up.

Designing the casing myself also taught me something software rarely does: a physical bug costs a reprint. That pushed me to test the mechanism in small pieces before printing the whole device, which is the same habit that keeps software changes small and safe.