Justin Liao
I design PCBs and write embedded firmware for surgical robots and research instruments. I’m most interested in how robots can learn from human movement and help people move.
Featured Projects
Browse all projects →
EPR Positioning Stage
A USB-controlled stage that positions a spectrometer inside a magnet. In 10 of 10 trials, it landed within ±0.03 mm of its target.
Read project notes
Surgical Pedal Interface
An ESP32 board that lets a computer trigger an electrosurgical generator while retaining foot-pedal control.
Read project notesProjects
Surgical Pedal Interface
A relay board for computer-controlled electrosurgical activation, foot-pedal control, and event logging in ROS2.
Read project notes →
PelviStim Wearable Prototype
An ankle-worn stimulation prototype. I worked on circuit simulations, Arduino firmware, and electrode testing.
Read project notes →
Engine/CVT Dyno
Our first RPM pickup read cleanly to 15,000 RPM on the bench, then proved unreliable on the car. Now I’m building a mixed-signal DAQ board for the team’s engine/CVT dyno.
Read project notes →
EPR Positioning Stage
A USB-controlled stage that positions a spectrometer inside a magnet. In 10 of 10 trials, it landed within ±0.03 mm of its target.
Read project notes →Earlier work
Microwave Field Probe PCB
Schematic entry and PCB layout for a compact 1.7 GHz microwave field probe.
Read project notes →
FRC Competition Robot
I handled most of the electrical system and controls for Team 867's 2025 REEFSCAPE robot. Moving the code to command-based more than tripled autonomous scoring.
Read project notes →Surgical Pedal Interface
Related manuscript
An Open-Source da Vinci X/Xi Instrument Module for Laparoscopic Surgery Research. Co-first author. arXiv preprint; submitted to ISMR 2027.
I designed the ESP32 relay board, wrote its firmware for pedal priority, command timeouts, and ROS 2 event logging, and ran the bench tests.
Understanding the generator
I’m building a board that lets a computer trigger an electrosurgical generator while the surgeon can still use the pedal. It also logs pedal events in ROS2.
The generator was a black box. I expected a straightforward contact closure, but the resistance readings didn’t look like a simple switch. I mapped the connections and worked out which commons needed to stay separate.
From breadboard to PCB
I started with an ESP32 and relays on a breadboard, then designed and assembled the PCBs shown below.
The six-relay v2 design supports CUT, COAG, and bipolar. The latest design, v3, uses eight relays and adds LigaSure.
Earlier design files
Firmware and pedal priority
The ESP32 talks to the robot computer over USB using micro-ROS. A 10 ms control loop reads the pedals, applies commands, and sets the relays without waiting on ROS, so the pedals keep working even if the host connection drops. Pedal inputs are debounced for 30 ms, and outputs open before new ones close so two modes never overlap.
Software can only fire the generator after it is explicitly armed with every pedal released. Pressing any pedal while software is in control cancels the software command and hands control back to the surgeon, and software stays locked out until it is re-armed.
A hardware watchdog catches a hung ESP32, but it can’t catch a PC application that stops sending commands while the ESP32 keeps running. So ON commands are a lease: the host renews them every 100 ms, and they expire 500 ms after the last renewal. A late renewal can’t bring an expired command back.
Every output change is logged with its source (pedal, software, or a pedal taking over from software), so the robot data can be labelled with exactly who triggered the energy.
Bench results
I tested the v2 board on a DRE ASG-300 generator at 10 W, with no instrument attached, checking activation through the generator’s tones and indicators.
- CUT, COAG, and bipolar all activated from both software and the physical pedals.
- With the board unpowered, all three modes still worked from the pedals through the bypass relays.
- When software stopped renewing, the command timed out at 503.1 ± 3.8 ms over eight trials, against the 500 ms design value.
- Pressing the bipolar pedal during a software CUT released CUT and closed bipolar 11 ms later, and software commands were rejected until re-armed.
- Killing the micro-ROS agent mid-activation stopped the generator with no further command.
- Six pedal presses produced all 12 activation and deactivation events, in order and labelled as pedal-sourced.
These timings are what the board reported. I didn’t independently time contact opening or the generator’s RF output.
On ARTS, the interposer was used in ex vivo monopolar and bipolar coagulation of splenic tissue and monopolar cutting during gallbladder dissection, with energy activations recorded alongside robot motion and video.
Microwave Field Probe PCB
PCB layout
Spyglass Mini was a compact probe for a 1.7 GHz microwave cavity. A PhD researcher designed the circuit and handled the calculations. I entered the schematic and laid out the PCB, working to make the board smaller.
This was my introduction to impedance matching and RF shielding in PCB layout.
The board
Sampling requirements
The original specification was roughly 1 MSps with SD logging and a six-hour battery target. We later learned the application needed roughly 100 MSps. The lab pursued a different design for that requirement, and this board was never fabricated.
FRC Competition Robot
The robot
Team 867's 2025 REEFSCAPE robot used a swerve drivetrain, an elevator, and a coral intake. Teammates designed the mechanisms in CAD. As captain I led a 40+ member team, and my own work was mostly the electrical system and controls.
Rewriting the code
The robot code was time-based: each action ran for a fixed duration. I migrated it to WPILib's command-based structure, which made autonomous routines easier to sequence and test. In on-robot testing, autonomous scoring more than tripled.
Swerve and PID
EPR Positioning Stage
Positioning the spectrometer
The lab needed to move a miniaturized electron paramagnetic resonance spectrometer into a magnet’s uniform-field region. I built a USB-controlled stage around a ball-screw rail and stepper motor, with a custom controller PCB and PC controls.
Homing
The stage needed to start from the same place every time. I used a limit switch to set the home position before each move, then checked where the stage landed.
The controller uses an RP2040-based board and a TMC2209 driver for the NEMA 17 stepper. The PC software handles USB commands for homing and movement.
Position measurements
I ran 10 trials: home the stage, command a move to the target, and check where it landed under the lab’s inspection microscope. All 10 landed on the commanded step, within ±0.03 mm. The field of view was so narrow that about two extra motor steps would have pushed the target off the screen, so a miss would have been obvious.
PelviStim Wearable Prototype
Circuit development
PelviStim was our team’s ankle-worn stimulation project. My circuit work focused on the op-amp supply rails and a DC–DC converter for the higher-voltage output.
In LTspice, I worked on the converter and a separate voltage-to-current circuit. The converter rang, and its output wasn’t current-controlled yet. The current pump held about 22 mA from 500 Ω to 1.5 kΩ. At 3 kΩ, that current would require 66 V across the load, beyond the circuit’s ±48 V rails; simulated output reached about 16 mA.
Hardware and firmware
While the custom circuit was still in simulation, we tested hardware with a NeuroStimDuino shield on an Arduino Mega. I set up and characterized its output with an oscilloscope and helped with electrode/contact impedance testing.
I made the Arduino communicate over Bluetooth and handle incoming commands. My teammate handled the phone app. During integration, we found that the two sides were using different command formats.
Electrode comparison
I documented a seven-person comparison of the prototype electrodes with TENS/gel pads, using NeuroStimDuino and an oscilloscope. We recorded the current and voltage at each participant’s reported sensation threshold.
| Electrode | Mean recorded current at sensation threshold |
|---|---|
| Prototype | 7.43 mA |
| TENS/gel comparison pads | 10.86 mA |
The prototype electrodes reached sensation threshold at lower current but needed higher voltage, making voltage headroom a concern for the custom circuit.
Setup testing
In the team’s five-person usability test, everyone reached the ready-to-start point within 15 minutes. Three were team members; two had never seen the device. The test used the wearable with an off-the-shelf Bluetooth stimulator and ended before a treatment session.
The two new users struggled with placement, getting orientation and contact wrong until observers flagged it. That led to clearer placement instructions in the app.
Engine/CVT Dyno
Measuring engine and CVT performance
We’re building a dyno to measure engine power and CVT efficiency across the RPM range so we can tune the drivetrain. I’m working on the data-acquisition board and the calculations for the two transducers.
The bench result didn’t carry over
Our earlier perfboard RPM pickup read cleanly on the bench up to 15,000 RPM. On the car, the spark-plug pickup was too inconsistent to rely on. In separate tests of the two torque transducers, I found that one had failed.
The mixed-signal board
Next checks
Next, I’ll test the PCB inputs with known signals and check the power calculations against the transducer readings.
About me
Currently
I'm studying electrical and biomedical engineering at Johns Hopkins, with a minor in robotics. In the IMERSE Lab, I work on a pedal interface for robotic-surgery research and have collected microrobot motion data for imitation learning. I also develop drivetrain data-acquisition electronics for Blue Jay Racing.
Experience
Preprints and Publications
-
D. McDonough†, J. Liao†, J. Ge, A. Goldenberg, Y. Zhang, M. A. Eagleson, R. Prakash, A. Krieger, and C. Kim. “An Open-Source da Vinci X/Xi Instrument Module for Laparoscopic Surgery Research.” arXiv:2611.21771, 2026. arXiv preprint; submitted to ISMR 2027.
I designed the relay board and firmware and bench-tested its event logging. The board recorded all 12 activation and deactivation events from six pedal presses.
-
J. Ge, C. Kim, A. Goldenberg, D. McDonough, J. Liao, et al. “ARTS: An Open-Source, Reproducible Three-Arm Platform for Autonomy Research in Minimally Invasive Surgery.” arXiv:2611.15135, 2026. arXiv preprint; submitted to ISMR 2027.
† Equal contribution (co-first authors).
Education
Toolkit
Interests
Research instrumentation, robotics, and medical devices.
Contact
Email is the best way to reach me about research, internships, or a project.