Embedded Garage

Projects

My own projects, and products I have built at work.

My projects

Power electronics calculator

A converter design tool that runs in the browser. You enter the voltages and current you need, and it returns a complete design in component values you can buy, tuned for efficiency, long life or the fewest parts.

Live, with the buck converter. Boost is next.

Source code: not published yet.

Modbus TCP library for STM32

A Modbus TCP client and server library for STM32 with FreeRTOS, written from the public Modbus specification on an STM32H7 Nucleo board.

Finished.

Source code: not published yet.

Ultrasonic level measurement with Ethernet

A bare-metal STM32H743 controller that measures tank level by ultrasonic time of flight. It drives the transducer with a 175 kHz burst through a TUSS4470, times the echo, and serves the level over Ethernet as a Modbus TCP server on the LwIP stack.

Finished.

Source code: not published yet.

Seamless microgrid transition control

Control that moves a microgrid between grid-connected and islanded operation without a break, on single-phase and three-phase hardware prototypes. The STM32F407 firmware was generated from MATLAB Simulink and checked on hardware against simulation.

M.Tech thesis, 2023.

Source code: not published yet.

ROBOCON 2018

The national robotics contest, which I took part in with Team VECTOR during my engineering degree.

2018.

Professional work

Products I built in my jobs as the engineer responsible for them. They belong to the companies I built them for, so there is no source code here. On each one I did the PCB design as well as the firmware.

CAN FD, ISO-TP and UDS diagnostics stack

A portable diagnostics stack in C, on a port abstraction layer over FreeRTOS. It has the ISO 15765-2 transport layer for classical CAN and CAN FD, and 26 UDS services to ISO 14229-1, among them SecurityAccess, the download sequence and ReadDTCInformation. Static allocation only, coded to MISRA C:2023, and verified on an ESP32 board with an external CAN FD controller. I designed the PCB as well.

Nearly finished.

ATRS drive controllers

A set of STM32 controller boards that run motor drives, digital inputs and outputs and PWM outputs on Ethernet. Each board runs a Modbus TCP server on the LwIP stack, without an operating system, and is polled by a Siemens PLC. I wrote the Modbus server, including function code 23 for reading and writing registers in one request, gave every board a unique MAC address derived from its chip ID, and tuned the network stack so each board answers the PLC within its cycle. I designed the PCB as well.

2025 to 2026.

Electrical checkout system for a vehicle production line

A system that checks the electrical circuits of commercial-vehicle cockpit assemblies before they leave the line. I was the only firmware and hardware engineer on it: a diagnostic interface on ESP32 with ISO-TP and UDS written from scratch, Modbus RTU cards that measure voltage, current and resistance, the PCBs in Altium, and the wiring harness.

2025 to 2026.

Airport baggage weighing scale

A two-board weighing system with separate operator and passenger displays. I designed both PCBs and wrote the STM32 firmware: a 24-bit load-cell front end, stability detection so a weight is only latched once the reading settles, a password-protected settings menu, and an RS485 link that streams the weight to the ground-handling system.

2025 to 2026.

Tyre pressure sensor reader

A handheld tool that wakes tyre pressure monitoring sensors with a 125 kHz low-frequency signal and reads their 433.92 MHz radio replies. The firmware generates the wake-up protocol on a timer-driven carrier, receives the Manchester-coded frames through a sub-gigahertz radio transceiver, checks each one with a CRC-8, and shows the sensor ID, pressure and temperature for every wheel position on a touchscreen. I designed the PCB as well.

In progress.