Case 001 · Medtech

Magnetic therapy, precisely timed.

A therapy device that stimulates muscle with low frequency magnetic fields, built around two boards. We wrote the firmware for both and helped optimise their schematic design. The amplifier board drives the coil with sequencing that runs in the PSoC 5LP's own logic, and the IoT board gives the device a touchscreen, phone pairing and a link to the cloud through the ESP32.

Render of the magnetic therapy cart: a white body with a black front, a round limb opening lit in teal, a footrest and a touchscreen on top
Sector
Medtech
Year
2025
Our role
Firmware and hardware design consulting
Amplifier · IoTBoards
In hardwareSequencing
Touch · MQTTControl
01 / The challenge

Many signals, one instant.

Driving the coil means switching several outputs in a fixed pattern, again and again, with timing that cannot slip while the processor is busy elsewhere. At the same time the board has to measure coil current and voltage, react to external events and stay safe.

The device also had to be easy for staff at the bedside: start a session on the screen, pair a phone, and have every session reported to the backend without anyone writing it down.

02 / Our approach

Amplifier and IoT.

  1. 01

    Sequencing in logic, not code

    We used the PSoC 5LP's programmable logic fabric for an always on, high speed sequencer. Pins change together through direct register writes, so a complex switching pattern runs on time whatever the CPU is doing.

  2. 02

    Analog on chip

    We routed the PSoC's analog fabric to do the signal conditioning on board, with current and voltage sensing, switching and external I/O event handling done on chip rather than in extra parts.

  3. 03

    Wi-Fi and the touchscreen

    On the IoT board we built on the ESP32 with the ESP-IDF framework, making full use of its Wi-Fi and driving a responsive touchscreen for sessions, settings and pairing by QR code.

  4. 04

    MQTT to the backend

    The device talks to the IoT backend over MQTT, so sessions and device data arrive where they are needed and the device can be followed and controlled from a phone.

  5. 05

    Schematic optimisation

    With our in depth knowledge of the PSoC 5LP, we helped optimise the schematic design, so more of the signal conditioning and sequencing could live inside the chip and the hardware suited the timing the coil needs.

Hand drawn system sketch. The amplifier board: a PSoC 5LP with a logic fabric sequencer that switches many pins in one register write, analog routing for current and voltage sensing, comparators and DAC set points, external I/O events, a switching stage and the coil. The IoT board: an ESP32 on ESP-IDF with Wi-Fi, linked to the PSoC, driving a touchscreen HMI and MQTT to the IoT backend and cloud
Fig 1 · The two boards and what runs where
The touchscreen showing a session with time left, intensity and program beside a QR code to pair a phone, and a phone app controlling the same session over MQTT
Fig 2 · Touchscreen HMI and phone control, a mockup
03 / The outcome

On time, on the network.

The coil sequence runs in hardware and holds its timing, with sensing and protection on the same chip. Staff run sessions from the touchscreen or a phone, and each session reaches the backend over MQTT.

PSoC 5LPESP32ESP-IDFHMIMQTT

Your project could be next.