Skip to the content
2 layers56 × 79 mmSurgery Lamp Control PCB, the printed circuit board in 3D

Surgery Lamp Control PCB

aeventre/Autotracking_Surgical_Lamp2

This ROS 2 workspace contains all packages required for the Auto-Tracking Surgical Lamp system. The lamp uses 3D pose tracking of a handheld remote (via green ball detection) to plan and execute motions in real-time…

Size
56 × 79 mm
Copper layers
2
Thickness
1.6 mm
Parts
45
Nets
84
Pads
262
Tracks, vias
434, 100
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
5 Oct 2024
Updated
8 Jul 2026

Overview

Surgery Lamp Control PCB is an open-source printed circuit board by aeventre, from the aeventre/Autotracking_Surgical_Lamp repository on GitHub. It is a 2-layer board of 56 × 79 mm with 45 parts on 84 nets, routed with 434 tracks and 100 vias.

It is built around the MAX485ED, PCA9685PW and BSS138, with the OSTVN05A150 among its other parts. Its parts include 17 resistors, 9 connectors, 6 transistors, 5 capacitors and 2 ICs. It belongs with the lEDs and displays boards and the RP2040 boards of this library.

Main components

4

README

README.md

AutoTracking Surgical Robot lamp

Alt Text

Table of Contents

Overview

An open-source ROS 2 and MoveIt 2 surgical lamp capable of autonomous real-time tracking of a handheld remote using monocular vision and 3D pose estimation.

Background

This project aims to develop a solution to the challenges posed by modern surgical lamps, particularly focused on the ceiling-mounted lamps. The proposed solution is a responsive surgical lamp that uses real-time tracking and automated movement to adjust its lighting position. This approach minimizes manual interaction, reduces delays and allows support staff to remain focused on higher priority clinical responsibilities

System Overview

Alt Text

Software Design

This ROS 2 workspace contains all packages required for the Auto-Tracking Surgical Lamp system. The lamp uses 3D pose tracking of a handheld remote (via green ball detection) to plan and execute motions in real-time, with fallback modes for manual GUI control and demo sequences. The system is built using ROS 2 Jazzy and MoveIt 2.

Setup

To build and source the workspace:

bash
cd /path/to/ros2_ws
source /opt/ros/jazzy/setup.bash
rosdep install --from-paths src --ignore-src -r -y
colcon build
source install/setup.bash

Package Overview

software_architecture

command_manager

Manages the system's behavior based on user input. It switches between modes such as idle, manual control, tracking, zeroing, and demo.

Subscriptions

  • /system_mode (std_msgs/Int32)
  • /remote_pose (geometry_msgs/PoseStamped)
  • /remote_orientation (geometry_msgs/QuaternionStamped)
  • /user_command (surg_lamp_msgs/UserCommand)

Publications

  • /goal_pose (geometry_msgs/PoseStamped)
  • /joint_commands (std_msgs/Float64MultiArray)
  • /user_command (surg_lamp_msgs/UserCommand)

lamp_gui

PyQt5-based graphical user interface for interacting with the lamp.

Features

  • Dropdown menu for system mode selection
  • Sliders for manual joint control
  • Buttons for triggering demo modes or resets
  • Status label for system feedback

Publications

  • /system_mode (std_msgs/Int32)
  • /joint_commands (std_msgs/Float64MultiArray)
  • /user_command (surg_lamp_msgs/UserCommand)

remote_tracker

Tracks a green marker (ball) on a handheld remote using OpenCV and depth cameras. Estimates the 3D position and uses IMU orientation to compute the full pose.

Inputs

  • RGB and depth images from stereo cameras
  • Camera extrinsics from camera_calibration
  • IMU orientation from the remote

Outputs

  • /remote_pose (geometry_msgs/PoseStamped)
  • /remote_orientation (geometry_msgs/QuaternionStamped)

camera_calibration

Contains stereo camera calibration and extrinsic transform files.

Contents

  • camera_01.yaml, camera_02.yaml: intrinsics for each camera
  • camera_01_to_base.yaml, camera_02_to_base.yaml: transformations from camera to robot base frame

Used by the remote_tracker for accurate triangulation and transformation into the base frame.


goal_pose_executor

Plans and executes motions from the current pose to the goal pose using MoveIt 2.

Inputs

  • /goal_pose (geometry_msgs/PoseStamped)

Behavior

  • Uses MoveGroupInterface to plan paths
  • Sends joint angles to /joint_commands
  • Reports failure if planning is unsuccessful

controller_coms

Handles RS-485 serial communication with two microcontrollers that control the lamp's motors and lighting.

Responsibilities

  • Sends joint angle commands to MCU1 and MCU2
  • Receives and parses motor feedback
  • Manages half-duplex communication (send then receive)
  • Relays light mode and button state

Serial Protocol

  • mcu1: <joint1,joint2,joint3,joint4,lightmode>
  • mcu2: <joint0>
  • Half-duplex format: send commands, then wait for and parse response

surg_bot_description

URDF/Xacro model of the surgical lamp.

Includes

  • Link and joint definitions
  • Joint limits and axes
  • Visual and collision meshes
  • Base frame and end-effector frame definitions

Used for visualization and planning.


surg_bot_moveit_config

MoveIt 2 configuration for the surgical lamp.

Includes

  • Kinematics solvers
  • OMPL planning pipeline
  • SRDF and robot semantic info
  • RViz and MoveGroup launch support

Launch Configurations

bash
# GUI
ros2 run lamp_gui lamp_gui

# Command manager
ros2 run command_manager command_manager

# Remote tracker
ros2 run remote_tracker remote_tracker_node

# Goal pose executor
ros2 run goal_pose_executor goal_pose_executor_node

# Controller communication
ros2 run controller_coms controller_coms_node

Electrical Design

Remote Design

image

PCB Design

image

Pictures

image image image

All links and joints links are avaiable to download in the CAD section as .STL and .SLDPRT

3D Printed Components of Surgical Robot

ABS was the material used to print the prototype. ABS and PETG would be good options to use as well

Sensors and Servos

Below is a list of sensors and motors being used

  • 160 KG Servos
  • 20 KG Servos
  • Adafruit 9-DOF Orientation IMU Fusion Sensor
  • Magnetic Encoder
  • NEMA 17
  • Bluetooth/WiFi module
  • Motor Drivers
  • Orbbec 335 Cameras

Bill of materials for Surgical Robot

  • Full HD webcam
  • 4 channels IIC I2C logic level converter
  • ESP32 Cam
  • RS-485 MAX485 Transceiver
  • 160 KG Servo
  • Nema 17 Stepper
  • Taidacent 12 wire 5A Slip Rings
  • USB to RS-485 Converter
  • AS5600 Magnetic Encoder
  • Magnets
  • Laser Diodes
  • LED Circle Array
  • Raspberry Pi 5 8GB

Bill of Materials for Surgical Robot Base

Parts

45
QtyValueFootprintReferences
1410kResistor_SMD:R_0805_2012MetricR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R17
6BSS138Package_TO_SOT_SMD:SOT-23-3Q1, Q2, Q3, Q4, Q5, Q6
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_DIN965_Pad_TopBottomH1, H2, H3, H4
20.1uFCapacitor_SMD:C_0805_2012MetricC2, C4
210uFCapacitor_SMD:C_0805_2012MetricC1, C3
220kResistor_SMD:R_0805_2012MetricR14, R15
1120Resistor_SMD:R_0805_2012MetricR16
147uFAlec_lib:CAP_6.3 X 5.8_PANC5
1FanConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ9
1HeadlampConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalJ4
1Joint 1 EncoderConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalJ5
1Joint 2 EncoderConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalJ6
1MAX485EPackage_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mmU1
1OSTVN05A150Alec_lib:CONN5_516x256_OSTJ7
1PCA9685PWPackage_SO:TSSOP-28_4.4x9.7mm_P0.65mmU2
1RaspberryPi_PicoModule:RaspberryPi_Pico_Common_UnspecifiedMCU1
1StepperConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ8
1TMC2209 Stepper DriverModule:Pololu_Breakout-16_15.2x20.3mmA1
1joint2Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ1
1joint3Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2
1joint4Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ3

Similar boards

  • 2 layers139 × 55.2 mmControlbox, the printed circuit board in 3D

    Controlbox

    edwindertien/animatronics

    85 parts
  • 2 layers62 × 31.5 mmXnetIoModule, the printed circuit board in 3D

    XnetIoModule

    bask185/RosedaleAbbey

    15 parts
  • 2 layers70 × 80 mmSpiderbot, the printed circuit board in 3D

    Spiderbot

    aeventre/Self_Balancing_Hexapod_Robot

    The goal for the initial configuration of this project was to design a Hexapod Robot capable of performing dynamic movements and maintaining self-balance.

    136 parts2Apache-2.0
  • 2 layers106.7 × 109.2 mmOMIDItone V2, the printed circuit board in 3D

    OMIDItone V2

    kiyoshigawa/oMIDItone_Controller_V2

    This is a refactored and updated version of the code in the https://github.com/kiyoshigawa/oMIDItone github repo intended to simplify and make faster the existing code base while simultaneously switching to PlatformIO.

    91 parts2LGPL-3.0
  • 2 layers265.5 × 132.3 mmDashdash, the printed circuit board in 3D

    Dashdash

    Churrosoft/Dashdash

    tablero de instrumentos por can para integrar con OpenEFI, cuando se nos ocurra algo mas original cambiamos el nombre

    272 parts1MIT
  • 2 layers111 × 119 mmCarte Principale, the printed circuit board in 3D

    Carte Principale

    clubrobot/Cartes-elec

    Repo de toutes les cartes électroniques utilisées par le CRINSA. Commencé en 2025 sous Kicad 8.0

    115 parts1MIT
  • 4 layers100 × 100 mmDMX servo controller hardware, the printed circuit board in 3D

    DMX servo controller hardware

    flavioamieiro/dmx_servo_controller

    This source describes Open Hardware and is licensed under the CERN-OHL-S v2. You may redistribute and modify this source and make products using it under the terms of the CERN-OHL-S v2.

    63 parts1
  • 2 layers40 × 90 mmWingBoard, the printed circuit board in 3D

    WingBoard

    benjohnemmett/Wingman

    Hardware layout and code for a basic fixed wing flight controller.

    85 partsMIT

Questions

How big is the Surgery Lamp Control PCB PCB?

It measures 56 × 79 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Surgery Lamp Control PCB use?

45 parts, built around the MAX485ED, PCA9685PW, BSS138 and OSTVN05A150. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Surgery Lamp Control PCB KiCad files?

From the aeventre/Autotracking_Surgical_Lamp repository on GitHub, at the commit this page was made from: the board is Electrical/Surgery_Lamp_Control_Board/KiCad/Surgery_Lamp_Control_PCB.kicad_pcb and its schematic Electrical/Surgery_Lamp_Control_Board/KiCad/A4988.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Surgery Lamp Control PCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask aeventre before reusing the design.