← Back to Projects
Research — JHU IMERSE Lab

Surgical Pedal Interface

Role
Interposer PCB, micro-ROS firmware, and bench testing
Tools
KiCad, ESP32, micro-ROS, ROS 2, oscilloscope
Timeline
Jan 2026 – Present
Status
v2 bench-tested

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.

Overhead view of the assembled v3 interface with ESP32, eight relays, and screw terminals
FIG. 01 — Assembled v3: CUT, COAG, bipolar, and LigaSure
Overhead view of the earlier v2 interface with ESP32 and six relays
FIG. 02 — Assembled v2: CUT, COAG, and bipolar
Breadboard development setup with an ESP32 and relay module
FIG. 03 — Early breadboard setup with ESP32 and relay module

Earlier design files

Open the earlier schematic and PCB render
ESU tap schematic with ESP32, transistor relay drivers, and resistor-connected pedal-sense inputs
FIG. 04 — Earlier relay-driver schematic, v1.0
ESU tap interposer PCB 3D render in KiCad
FIG. 05 — Earlier PCB render, v1.1

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.

KiCadESP32micro-ROSROS 2Relays
← Back to Projects
Research — USC ACME Lab

Microwave Field Probe PCB

Role
Schematic entry, miniaturization, and PCB layout
Tools
KiCad, STM32-based design
Timeline
Jun 2024 – May 2025

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.

Spyglass Mini PCB layout in KiCad
FIG. 01 — Annotated layout showing the antenna, detector, and MCU

The board

The board combines a dipole antenna, balun and matching network, power detector, and STM32 with SD storage.

RF front-end schematic — antenna input, balun, and RMS power detector
FIG. 02 — Antenna, balun, and detector input network
Spyglass Mini PCB 3D render
FIG. 03 — PCB render (KiCad 3D)
Open the full schematic
Spyglass Mini full system schematic in KiCad
FIG. 04 — Full system schematic

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.

KiCadPCB LayoutRF
← Back to Projects
FIRST Robotics — Team 867

FRC Competition Robot

Role
Captain; electrical and controls
Tools
Java, WPILib, roboRIO
Timeline
Aug 2023 – Jun 2025
Result
Autonomous scoring more than tripled

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.

Team CAD of the coral system in Fusion 360
FIG. 01 — Team CAD of the coral system (Fusion 360)
FRC robot electrical bay and swerve modules under the elevator
FIG. 02 — Electrical bay and swerve modules under the elevator

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

We moved the drivetrain to field-centric swerve, using the gyro and odometry so the driver's controls stay oriented to the field. I tuned the PID controllers, cutting positional error by about 60% and heading error by about 80%.

FRC robot intake, elevator, and swerve modules in the shop
FIG. 03 — Intake, elevator, and swerve modules during a shop session
JavaWPILibSwerve DrivePID ControlElectrical
← Back to Projects
Research — USC ACME Lab

EPR Positioning Stage

Role
Stage integration, controller PCB, and PC controls
Tools
KiCad, RP2040, TMC2209, NEMA 17
Timeline
Jun 2024 – May 2025
Result
±0.03 mm in 10 of 10 trials

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.

EPR spectrometer mounted on the assembled positioning stage, with the controller below
FIG. 01 — Spectrometer on the stage; controller in the foreground

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.

Assembled motor-controller PCB with RP2040 and TMC2209 driver
FIG. 02 — RP2040 controller and TMC2209 motor driver
Linear actuator controller schematic in KiCad - RP2040, TMC2209 stepper driver, limit switch, and connectors
FIG. 03 — Controller schematic (KiCad)

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.

Lab inspection microscope with a magnified image on the monitor and instruments on the surrounding bench
FIG. 04 — Lab inspection setup used for visual position checks
KiCadRP2040Stepper Control
← Back to Projects
Biomedical — JHU Design Team

PelviStim Wearable Prototype

Role
Circuit simulation, Arduino firmware, and hardware testing
Tools
LTspice, Arduino Mega, Bluetooth, NeuroStimDuino
Timeline
Oct 2025 – May 2026
Evaluation
7-person electrode comparison; separate 5-person setup test

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.

Early transformer-based converter simulation in LTspice with a resistive load; separate from the op-amp current-pump design
FIG. 01 — Early converter simulation with a resistive load model

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.

PelviStim elastic electrode band prototype
FIG. 02 — The team’s electrode-band prototype

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.

Both electrode types tested with the same seven participants
ElectrodeMean recorded current at sensation threshold
Prototype7.43 mA
TENS/gel comparison pads10.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.

Electrode band worn around the ankle below a rolled trouser cuff
FIG. 03 — Electrode band worn at the ankle
PelviStim app setup, verification, and session monitoring screens
FIG. 04 — Companion app screens developed by teammates
LTspiceArduinoBluetoothPrototype Testing
← Back to Projects
Baja SAE — Blue Jay Racing

Engine/CVT Dyno

Role
Sensor characterization, dyno calculations, and DAQ PCB
Tools
KiCad, Teensy 4.1, oscilloscope, DMM
Timeline
Aug 2025 – Present
Bench result
Earlier perfboard RPM prototype tested to 15,000 RPM

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

I’m designing a four-layer DAQ board around a Teensy 4.1. The main challenge is keeping small analog sensor signals clean next to digital lines and power circuitry. I also plan to add Ethernet telemetry.

Engine dynamometer revision 1 PCB render showing torque-sensor inputs, Hall-effect inputs, and Ethernet connections
FIG. 01 — Engine/CVT dyno DAQ board, revision 1 render

Next checks

Next, I’ll test the PCB inputs with known signals and check the power calculations against the transducer readings.

KiCadTeensy 4.1Signal ConditioningData Acquisition
Justin Liao — About

About me

Justin Liao wearing a Blue Jay Racing team jacket

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

Research Assistant
IMERSE Lab — Johns Hopkins University
Jan 2026 – Present
Electronics & Firmware Team Member
PelviStim Design Team — Johns Hopkins University
Oct 2025 – May 2026
Data Acquisition Team Member
Blue Jay Racing, Baja SAE — Johns Hopkins University
Aug 2025 – Present
Research Assistant
ACME Lab — University of Southern California
Jun 2024 – May 2025
Captain
FIRST Robotics Competition Team 867
Aug 2023 – Jun 2025

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

Johns Hopkins University
B.S. Biomedical Engineering + Electrical Engineering
Minor in RoboticsGPA 3.85Expected May 2029

Toolkit

Electronics
KiCad, schematic capture, PCB layout, signal conditioning
Embedded
Arduino, RP2040, Teensy, ESP32, C/C++
Testing
Oscilloscope, DMM, signal generator, bench validation
Mechanical
Onshape, Fusion 360, stage integration
Research
Medical device design, RF systems, ROS2, design documentation

Interests

Research instrumentation, robotics, and medical devices.

Email is the best way to reach me about research, internships, or a project.