
Surgery Lamp Control PCB
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
4MAX485ED
SOP-8-40℃~+85℃ 1 1 1mA 32 4.75V~5.25V 5Mbps Half-Duplex Transceiver ±8kV SOP-8 RS-485 / RS-422 ICs ROHSHTCRS-485 / RS-422 ICsPCA9685PW
TSSOP-28-40℃~+85℃ 100kHz~1MHz 16 2.3V~5.5V 25mA 5.5V Built-in PWM TSSOP-28 LED Drivers ROHSNXP SemiconductorsLED DriversBSS138
SOT-23-55℃~+150℃ 1 N-channel 1.1Ω@10V、1.2Ω@4.5V 1.2V 1.7nC@10V 17.5pF 340mA 350mW 50V 6.5pF N-Channel SOT-23 MOSFETs ROHShongjiachengMOSFETsOSTVN05A150
插件,P=2.54mm-30℃~+105℃ 1 125V 18~30 1x5P 2.54mm 5 5P 6A Green Through Hole 插件,P=2.54mm Screw Terminal Blocks ROHSOn-Shore TechScrew Terminal Blocks
README
README.mdAutoTracking Surgical Robot lamp
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
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:
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.bashPackage Overview
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 cameracamera_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
MoveGroupInterfaceto 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
# 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_nodeElectrical Design
Remote Design
PCB Design
Pictures
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 14 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R17 |
| 6 | BSS138 | Package_TO_SOT_SMD:SOT-23-3 | Q1, Q2, Q3, Q4, Q5, Q6 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_DIN965_Pad_TopBottom | H1, H2, H3, H4 |
| 2 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C2, C4 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C1, C3 |
| 2 | 20k | Resistor_SMD:R_0805_2012Metric | R14, R15 |
| 1 | 120 | Resistor_SMD:R_0805_2012Metric | R16 |
| 1 | 47uF | Alec_lib:CAP_6.3 X 5.8_PAN | C5 |
| 1 | Fan | Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Vertical | J9 |
| 1 | Headlamp | Connector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_Vertical | J4 |
| 1 | Joint 1 Encoder | Connector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_Vertical | J5 |
| 1 | Joint 2 Encoder | Connector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_Vertical | J6 |
| 1 | MAX485E | Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm | U1 |
| 1 | OSTVN05A150 | Alec_lib:CONN5_516x256_OST | J7 |
| 1 | PCA9685PW | Package_SO:TSSOP-28_4.4x9.7mm_P0.65mm | U2 |
| 1 | RaspberryPi_Pico | Module:RaspberryPi_Pico_Common_Unspecified | MCU1 |
| 1 | Stepper | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J8 |
| 1 | TMC2209 Stepper Driver | Module:Pololu_Breakout-16_15.2x20.3mm | A1 |
| 1 | joint2 | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | J1 |
| 1 | joint3 | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J2 |
| 1 | joint4 | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J3 |
Similar boards
- 2 layers139 × 55.2 mm

- 2 layers62 × 31.5 mm

- 2 layers70 × 80 mm

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 mm

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 mm

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 mm

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 mm

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 mm

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.