开源亚微米级 XYZ 微操纵平台发布,支持 G-Code 控制

原标题:Open MicroManipulator – A sub-micrometer 3D motion control plattform
42AI 研判分

一款低成本、易构建的开源 XYZ 微操纵运动控制平台正式发布,通过并联运动学结构与磁齿轮技术实现 50nm 分辨率。该平台专为光学对准、电子元件探测及显微成像设计,支持标准 G-Code 指令集与 Python API 进行闭环伺服控制。

报道正文

本文目录6 个章节

This project contains an open source low-cost, easy-to-build motorized XYZ Micro-Manipulator motion control platform achieving submicron precision. It's designed for applications such as optical alignment, probing electronic components, and microscopy.

Check out the YouTube video for more information about the device and how it is built:<br> An Open Source Motorized XYZ Micro-Manipulator - Affordable sub µm Motion Control

<div style="display: flex; gap: 2%;"> <img src="images/overview.gif" alt="Image 1" width="49%"> <img src="images/microscopy_die.gif" alt="Image 2" width="49%"> </div>

Thanks to its parallel kinematic structure and miniature ball joints, it achieves good mechanical stiffness and a large range of motion. The motors are off the shelf stepper motors dr​iven by a 30 kHz closed loop controller and a very precise PWM signal. A 'magnetic gearing' approach increases the resolution of the low-cost magnetic rotary encoders by a factor of 30 allowing for steps down to 50nm (Please mind the difference between resolution and accuracy. The absolute accuracy is significantly worse.

The device can be controlled via simple G-Code commands over a USB serial interface and is thus easily integrated into other projects. The firmware implements a complete motion planning stack with look-ahead for smooth and accurate path following capabilities.

Getting Started

Below is a list of high level steps you can follow if you want to replicate the project. If you have questions or problems with the build or just want to discuss subjects related to the project, joint the projects community Discord Server.

  1. Read this Document and watch the linked videos
  2. Get the parts listed in Bill of Materials
  3. Build the device and electronics
  4. Change the hardware configuration according to your build hw_config.h
  5. Upload firmware using VSCode with PlattformIO plugin
  6. Calibrate axis

Also check out the setup guide for new devices: Setup Guide

✨NEW: Hardware Version 4.0

A new version of the hardware has been released, fixing several issues with the previous design:

  • Self collision during homing fixed.
  • Connection of ball joint block with screws only was not well constrained and could rotated a bit.
  • No reliable way to ensure consistent linkage rod length
  • Unnecessary ball joint friction
  • Accurate ball position heavily dependet on print quality and corner rounding
  • Rubber bands could not be changed or removed once glued in.

A video about the improved ball joint and linkage manufactoring process can be found on YouTube: Better Ball Joints for the Open Micro-Manipulator Also the FreeCAD model was restructured and improved and now includes all pins and fasteners. It now provides a reference for all required mechanical parts.

<div style="display: flex;"> <img src="images/Hardware-v4.0.jpg" alt="Open Micro-Manipulator GUI" width="50%"> </div>

WARNING: BOM is not updated yet...

Open Micro-Manipulator GUI

To make testing and using the Open-Micro Manipulator easy and convenient a python control program with a graphical user interface is provided here: Open Micro-Manipulator GUI. It has simple controlls to move the device around, while also displaying a live camera feed (e.g. from a microscope camera). Additional features, include a simple g-code runner and realtime mouse control (e.g. for Biology applications).

<div style="display: flex;"> <img src="images/grain_manipulation_2.jpg" alt="Open Micro-Manipulator GUI" width="50%"> </div>

🐍 Python-API

The lightweight Python API handles all serial communication and provides convenient command execution and debug message printing. The interface includes functions to home, move, and calibrate the device, as well as to query device information. Simply copy the open_micro_stage_api.py file into your project (also install the dependencies in requirements.txt), and you’re ready to get started.

Usage Example

PYTHON
from open_micro_stage_api import OpenMicroStageInterface

# create interface and connect
oms = OpenMicroStageInterface(show_communication=True, show_log_messages=True)
oms.connect('/dev/ttyACM0')

# run this once to calibrate joints
# for i in range(3): oms.calibrate_joint(i, save_result=True)

# home device
oms.home()

# move to several x,y,z positions [mm]
oms.move_to(0.0, 0.0, 0.0, f=10)
oms.move_to(3.1, 4.1, 5.9, f=26)
oms.move_to(0.0001, 0.0, 0.0, f=10)

# wait for moves to finish
oms.wait_for_stop()

API Functions (most relevant functions only)

PYTHON
connect(port, baud_rate=921600)
disconnect()
set_workspace_transform(transform)
get_workspace_transform()
home(axis_list=None)
calibrate_joint(joint_index, save_result)
move_to(x, y, z, f, move_immediately, blocking, timeout)
set_tool_output(tool_idx, output_value, immediate)
set_pose(x, y, z)
dwell(time_s, blocking, timeout)
enable_motors(enable)
wait_for_stop(polling_interval_ms, disable_callbacks)
set_max_acceleration(linear_accel, angular_accel)
set_servo_parameter(pos_kp, pos_ki, vel_kp, vel_ki, vel_filter_tc)

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)