Embedded systems
Software and control designed around real devices, bounded compute, sensors, timing, and actuators.
Most of what I build ends up on a small board that has to sense, decide and act on time: an Arduino, an ESP32, a flight controller, a Jetson. The algorithm is rarely the hard part. The hard part is everything around it: a loop that has to run at a fixed rate, an output that hits its limit, a sensor whose noise you have to measure before you can trust it.
The projects below go roughly from small to large. Two early Arduino loops, one hitting targets with bursts of water and one following a light on two axes, made error, overshoot and settling things I could watch. easyPID is a PID controller as a library that doesn’t care which board it runs on, with the parts a real loop needs: timing, anti-windup and a filtered derivative.
The race car splits the work between a Jetson Nano that sees and an Arduino Mega that steers, and the BEMO desk puts a camera in front of an ESP32 that moves the desk. On the 5-inch drone the inner loops are Betaflight’s, so my work was sizing the propulsion and power, tuning, and testing GPS and the radio link. The star tracker’s ESP32 times every microstep from the exact geometry of the mechanism, and the IMU test bench measures what a sensor needs before it goes into a system.
Some of it goes back upstream: in Betaflight, my fix to the Redpine radio driver’s debug output is merged, and one for short flash reads is approved and waiting to merge. And the drone-control bootcamp puts the whole stack into seven evenings, from PID on an RC circuit to a quadrotor that survives losing a rotor; it’s ready for its first cohort.
Projects
- 5-inch carbon-fiber FPV droneA 5-inch carbon-fiber quadcopter I designed and built. I sized its propulsion and power from thrust, weight, and current calculations, configured and tuned Betaflight (PID loops, flight modes, GPS features, return-to-home), and evaluated GPS accuracy, RF link quality, and flight performance under GNSS jamming and IMU/GNSS integration constraints.
- easyPIDA hardware-agnostic Arduino PID controller library with independent instances, timing controls, anti-windup, derivative filtering, state introspection, and an optional relay autotuner.
- IMU test bench: live 3D view, noise measurement and calibrationA real-time workbench for inertial sensors. Connect an Inertial Sense IMX, a PX4 or ArduPilot flight controller, any microcontroller IMU or a ROS 2 topic, and within seconds the device is on screen as a live 3D model, with its raw signals at full rate, its health decoded bit by bit, and its magnetometer calibration laid bare. Then it measures what an integration needs: vibration spectra that expose motor tones and frame resonances, an Allan-deviation Noise Lab that writes the noise model Kalibr asks for, a magnetometer ellipsoid fit it applies to the stream, and a camera view that projects the IMU's horizon into the image and stabilises it by rotation alone. Sensors that only report gyro and accelerometer get attitude from a built-in fusion filter; every session can be recorded, replayed, or republished as standard ROS 2 topics. Developed against a real Inertial Sense RUG-3-IMX-5 for camera–IMU integration on an NVIDIA Jetson, and open source.
- Brainiacs autonomous race carA WRO Future Engineers vehicle dividing Jetson Nano perception from Arduino Mega real-time control, with OpenCV traffic-sign logic, PID steering, an MPU6050 IMU, and TCS34725 color sensing.
- PID light trackerAn Arduino project from fall 2024 that uses light sensing and two servo axes to follow a light source with PID control.
- OmniSign — Lebanese Sign Language recognitionOmniSign recognizes Lebanese Sign Language from a camera in real time, the alphabet and more than 30 everyday words and expressions, and turns it into text and speech. It runs on phones and on small boards like a Raspberry Pi 5 or a Jetson. I co-founded it and built its computer-vision pipeline; we collected more than 40,000 signs across Lebanon with deaf community partners, and it won First Prize in the Public Choice category at the National FYP Demo Day 2025.
- Smart Interactive Desk (BEMO)A prototype that combines computer vision, ESP32 control, motorized height and tilt, immediate LED feedback, and a dashboard for longer-term patterns.
- Upstream fixes to Betaflight, PX4, and OpenFrontFixes and one feature contributed to three upstream open-source projects: a Redpine CC2500 debug-mode fix and a W25M flash read fix in Betaflight, an EKF2 range-height reset fix in PX4, and a HUD feature and a HUD fix in OpenFront.
- ESP32 barn-door star trackerA 3D-printed barn-door tracker for photographing the Orion Nebula with a DSLR. The ESP32 firmware times every microstep from the exact geometry of the mechanism, a Python model predicts the longest sharp exposure for each lens, and a planner picks the night. Designed, compiled and tested in software; not yet built.
- Teach it: a drone-control bootcampA seven-evening course that takes engineering students from PID on an RC circuit to a quadrotor that survives losing a rotor, taught with my easyPID library and my rotor-fault study. Every session has notes, an auto-checked notebook, a lab, a quiz and slides. It is ready for a first cohort and has not been taught yet.
- Landmine detection and extraction robotA tracked rover with a 6-DoF arm, built at RHU in 2024–2025 to find landmines and clear its own path. I led all of its software: 2D and then 3D LiDAR SLAM, navigation with Nav2, detection and segmentation from a camera, and the arm’s kinematics. We built it in two phases, indoors first and then outdoors with GNSS, and tested it in Mechref with the Lebanese Armed Forces.
Writing
- Engineering a five-inch FPV drone from first principlesBuilding a five-inch FPV drone is an exercise in coupled constraints: every part you choose changes what the others have to do.
- Designing a PID library for real embedded controlThe PID equation is short. A controller that behaves predictably on an Arduino needs much more than three gains.
- Building an autonomous race car in twenty daysA small autonomous vehicle forced perception, control, power, mechanics, and team decisions into one unforgiving loop.
- What a two-axis light tracker teaches about PID controlA small Arduino robot turns control theory into something visible: error, overshoot, noise, saturation, and settling all happen in front of you.
- Building real-time Lebanese Sign Language recognitionLebanese Sign Language has a data problem before it has a model problem.
- Connecting posture estimation to a motorized deskA posture-aware desk closes a physical loop between vision, control, and motion.
- What small upstream fixes teach about firmwareFive pull requests to Betaflight, PX4, and OpenFront, and the habit they share: make the mechanism explicit before touching the code.
- A first mechatronic loop without a pumpAn early Arduino project that hit targets with gravity-fed water bursts, and taught that the plant changes after every action.
- A barn-door tracker that does the mathsThe barn-door tracker’s famous tangent error is pure geometry, so the firmware can remove it exactly instead of the mechanics approximating it.
- Teaching drone control from an RC circuit upA drone is a stack of feedback loops. The course builds that stack one loop at a time, starting where mistakes are cheap.