A groundbreaking demonstration recently unveiled a parallel-kinematics platform engineered to precisely control the dynamic movement of a ping-pong ball in real-time, showcasing the advanced capabilities of a new line of servomotors. This innovative system integrates synchronized servo actuation with sophisticated visual feedback and real-time kinematic computation, marking a significant stride in precision motion control technology. The initiative, spearheaded by Charan Bhamra, a Mechatronics Engineer at Monolithic Power Systems, underscores the potential for highly responsive and accurate robotic systems across various industrial and medical applications.
The Innovation at Play: Mastering Micro-Motion Dynamics

The core of this technological showcase is a three-axis parallel platform designed to perform dynamic balancing, swirling, and bouncing of an inherently unpredictable ping-pong ball. The choice of a ping-pong ball as the control object is deliberate; its lightweight nature and propensity for chaotic movement make it an ideal subject for rigorously testing the limits of real-time precision and responsiveness in motion control. The challenge lies in compensating for the ball’s drastic reactions to even the slightest disturbance, demanding a control system with exceptional speed and accuracy.
The servomotors employed in this platform are integral to its high performance, featuring onboard drivers, integrated angle sensors, and CANopen support. These integrated components facilitate high-resolution motion, ultra-fast real-time response, and tight multi-axis synchronization—critical attributes for managing the complex dynamics of the ping-pong ball. The platform specifically addresses and overcomes common engineering hurdles such as visual-feedback latency, maintaining synchronization across all axes, and executing real-time inverse kinematics and proportional-integral-derivative (PID) control on embedded hardware.
Ultimately, the system serves as a compelling proof-of-concept, illustrating how visual data can be seamlessly integrated to inform multi-axis coordination and track motion accuracy in real-time. These capabilities are not merely academic; they hold immense practical value for real-world applications, including high-speed delta 3D printers, precision pick-and-place machines, advanced medical robotics, and other industrial equipment where exacting motion control is paramount. The demonstration effectively bridges the gap between theoretical robotic control principles and their tangible application in complex, dynamic environments.

System Architecture: A Symphony of Integrated Components
The sophisticated control of the parallel platform is orchestrated through a carefully designed system architecture that judiciously distributes computational tasks between a Raspberry Pi 5 device and a Cortex M4 microcontroller unit (MCU). Each limb of the three-axis platform is independently driven by an EZmotion MMS740100-24-C2-1 motor, operating in CANopen Cyclic Synchronous Position (CSP) mode to ensure tight coordination and jitter-free motion.
Visual data, crucial for real-time feedback, is captured by a top-mounted USB camera at a moderate frame rate of 40 frames per second. This video feed is then processed in real-time on the Raspberry Pi 5, leveraging OpenCV for advanced computer vision algorithms. The Raspberry Pi’s processing yields the precise actual location of the ping-pong ball in the XY plane and its Z-position, which is subsequently transmitted to the Cortex M4 MCU via a Serial Peripheral Interface (SPI) communication protocol.

The embedded Cortex M4 MCU functions as the central initiator controller for the motors. It is responsible for the platform’s core control loop and executing the complex kinematic model. The core control algorithm is built upon a robust PID-based system, which converts the calculated positional error of the ball into a precise platform tilt angle. This tilt angle information is then translated by the kinematic model into specific position targets for each of the three servomotors. By instructing the motors to enter CSP mode via CANopen, the system ensures synchronized and deterministic motion across all three axes, enabling the platform to stabilize effectively even during rapid and unpredictable inputs from the ball’s movement. This dual-processor approach optimizes performance, allowing the Raspberry Pi to handle computationally intensive vision processing while the MCU manages the critical, low-latency control loop.
The Power of Integrated Servomotors
The servomotors utilized in this demonstration, specifically the EZmotion MMS740100-24-C2-1, represent a significant advancement in motor technology. These 40-mm smart motors are fully integrated units, incorporating a permanent-magnet synchronous motor with a sophisticated driver module. This integration extends to crucial internal components such as built-in servo drivers for efficient power delivery to the motor windings, an embedded motion controller running a nested control loop (regulating current, velocity, and position in real-time), and a 14-bit resolution magnetic position sensor for sub-degree accuracy.

Furthermore, an onboard CAN transceiver facilitates direct integration into the CANopen network, and a dedicated power management solution ensures stable internal voltages for safe and reliable operation. By consolidating all critical components—sensor, driver, controller, communication interface, and power management—into a single, compact device, these servomotors dramatically simplify system architecture and wiring. This "plug-and-play" solution eliminates the need for external boards and controllers, reducing complexity, minimizing footprint, and potentially lowering overall system costs and development time. The MMS740100-24-C2-1’s capability to operate in CSP mode further enhances its appeal for applications requiring highly synchronized, deterministic position-based multi-axis control.
Precision Through Control: Kinematics and PID
The platform’s ability to maintain real-time control over the ping-pong ball is deeply rooted in its sophisticated kinematic model and PID control algorithms. The inverse kinematic approach is critical, allowing the system to compute the required motor crank angles to achieve a desired platform tilt angle and Z-axis translation. This involves defining the global positions of the fixed-base joints and the local positions of the moving platform joints, which are distributed on a circle of a given radius.

Rotation matrices play a fundamental role in defining how the platform maneuvers in 3D space, translating desired platform orientations (pitch, roll, yaw) into specific joint angles. By calculating the combined rotation matrix, the actual positions of each platform joint in global coordinates can be determined. From these joint positions, the necessary length of each limb (the straight-line distance between the base joint and the transformed platform joint) is computed. Finally, based on these required limb lengths and the known lengths of the crank arm and connecting rod, the precise motor crank angle for each servomotor is derived. These calculations, performed by the MCU, ensure that the physical platform accurately reflects the desired spatial orientation.
Complementing the kinematic model is the PID-based control system. This algorithm continuously monitors the ball’s position, calculates the error relative to a target, and generates corrective platform tilt and Z-translation commands. PID controllers are widely recognized for their robustness in industrial control systems, offering proportional, integral, and derivative terms to minimize error, eliminate steady-state offset, and anticipate future errors, respectively. In this application, the PID controller translates positional error into precise tilt angles (θx and θy) to re-center the ball or guide it along a predefined trajectory.
Dynamic Operational Modes

The demonstration platform showcases its versatility through three distinct operational modes, each requiring precise control and rapid adaptation:
-
Balancing: In this fundamental mode, the target ball location is fixed at the precise center of the platform. The PID controller’s primary objective is to minimize the positional error, continuously adjusting the platform’s tilt angles (θx and θy) to keep the ball stationary at the target. This mode highlights the system’s ability to maintain equilibrium against external disturbances and the ball’s inherent instability.
-
Circular Swirling: This mode elevates the complexity by introducing a dynamic target trajectory. The system utilizes a two-dimensional array containing predefined, time-varying reference points that form a circle with a 100mm radius in the XY plane. The PID controller works in conjunction with the kinematic model to continuously guide the platform, ensuring the ball follows this circular path smoothly and accurately. This demonstrates the system’s capacity for precise trajectory tracking and dynamic motion generation.

-
Bouncing: The most intricate mode, bouncing, aims to maintain the ball at a target height while keeping its location centered on the platform. To initiate bouncing, the system first enters an oscillation phase, where the platform undergoes rapid, controlled vertical movements to impart sufficient energy to lift the ball off its surface. This phase is carefully designed to gradually increase the ball’s mechanical energy. Once a predefined energy threshold is reached—indicating consistent bouncing—the controller seamlessly transitions into the sustained bouncing mode. In this phase, the controller applies minimal, synchronized vertical motion to maintain the bounce with optimal energy efficiency, prioritizing height stability over further upward propulsion. The ball’s total energy is estimated using both kinetic and potential energy components, with velocity computed from the difference between current and previous ball heights over a given timestep, enabling precise energy management.
Synchronized Actuation via CANopen CSP
The remarkable synchronization across the platform’s three axes is largely attributed to the implementation of CANopen Cyclic Synchronous Position (CSP) mode. CANopen, a widely adopted communication protocol in industrial automation, offers various modes for motor control. While Cyclic Synchronous Velocity (CSV) and Cyclic Synchronous Torque (CST) modes are suitable for velocity and torque-driven applications, CSP mode is specifically designed for deterministic, position-based multi-axis control, making it ideal for the parallel-kinematics platform.

In CSP mode, the Cortex M4 MCU, acting as the initiator, sends precise position setpoints to each motor at a fixed and deterministic update rate. Crucially, the individual motor controllers do not generate their own trajectories; instead, they rely entirely on the initiator to continuously feed updated position targets. To ensure continuity and smoothness between these discrete updates, each motor internally performs linear interpolation between consecutive setpoints. This ensures that the motor shaft follows a seamless trajectory, even though the position targets are sampled at distinct intervals.
From a communication standpoint, CSP mode mandates the initiator to send Process Data Object (PDO) messages containing these absolute target positions. These PDOs can be mapped, configured, and stored in the motor’s non-volatile memory, enhancing reliability. The calculated crank angle values derived from the inverse kinematics are directly converted into CSP position targets and broadcasted synchronously across the CAN bus. This robust communication and control mechanism guarantees highly coordinated and jitter-free motion across all three limbs, which is indispensable for the real-time control of the ping-pong ball.
Visual Feedback: The Eyes of the System

The platform’s advanced visual tracking system is foundational to its real-time control capabilities. The system architecture strategically separates computational roles, assigning the inverse kinematics to the MCU and visual feedback processing to the Raspberry Pi 5. The Raspberry Pi runs a lightweight Python script leveraging OpenCV, a powerful open-source computer vision library, to process video frames from the top-mounted USB camera at a rate of 40 frames per second.
The image processing pipeline begins with applying a Gaussian blur to the video frames to reduce noise, followed by a conversion to the Hue, Saturation, and Value (HSV) color space. This color space is particularly effective for isolating specific colors, and in this case, the orange color mask applied to the ping-pong ball significantly aids in tracking. Contour filtering is then used to accurately identify the ball’s boundaries within the processed frames. The center coordinates of the ball are extracted from the smallest circle that completely encloses the largest contours, providing the ball’s precise position in the XY plane.
Beyond 2D positioning, the system also determines the ball’s Z-position (height) by analyzing its apparent diameter. As the ping-pong ball moves closer to the camera, its detected diameter in pixel units increases proportionally. This pixel information is accurately translated into a real-world Z-position in millimeters, providing crucial 3D positional data. For live monitoring and debugging, the Raspberry Pi connects to a local display via HDMI, rendering the camera feed alongside the post-processed frames with real-time ball tracking overlays. All the extracted position and height data of the ball is then efficiently sent to the MCU via the SPI for integration into the control loop.

Operational Sequence and Initialization
The system’s operation follows a meticulously defined sequence to ensure reliable and repeatable performance. Initialization begins with a torque-based homing routine for all servomotors. During this process, each of the three limbs retracts inward at a controlled speed until it reaches its mechanical hard stop, establishing a precise and repeatable zero position. Once homing is successfully completed, the platform automatically rises to a predefined mid-height along the Z-axis, indicating readiness for operation. A green status LED illuminates, signaling successful initialization and prompting the user to place a ping-pong ball on the platform.
Upon user interaction or a predefined trigger, the manipulator enters its active sequence. It typically starts in balancing mode, ensuring the ball is stably centered. This is followed by a transition to circular swirl mode, which it executes for a duration of 30 seconds. Subsequently, the system shifts to bouncing mode, also for 30 seconds. This sequence of balancing, swirling, and bouncing continuously loops as long as the system remains active, providing a comprehensive demonstration of its dynamic capabilities. Throughout the entire demo, a 7-inch screen provides continuous visual feedback of the ball’s motion, allowing observers to track its real-time behavior and the platform’s responses.

Broader Implications: Transforming Industries
The sophisticated real-time motion control demonstrated by this parallel-kinematics platform extends far beyond the playful act of controlling a ping-pong ball. Its underlying principles and integrated technologies have profound implications for a wide array of high-precision industries.
In medical robotics, architectures similar to this demonstration are crucial for stabilizing delicate endoscopic instruments, guiding surgical tools with sub-millimeter accuracy, and assisting in minimally invasive procedures where fine resolution and jitter-free motion are absolutely essential. The ability to precisely control instruments in real-time, adapting to dynamic physiological changes, can significantly enhance surgical outcomes and patient safety.

Within industrial automation, integrated servomotors like those showcased here are poised to revolutionize various manufacturing processes. They are ideal for imparting motion to optical alignment stages, ensuring components are positioned with extreme accuracy; for precision pick-and-place heads that handle delicate or microscopic parts; and for micro-assembly manipulators where minute errors can lead to significant defects. The compact, integrated nature of these servomotors simplifies machine design, reduces maintenance, and enhances reliability in demanding industrial environments.
Furthermore, delta 3D printers and pick-and-place machines, both consumer-grade and industrial, frequently utilize parallel kinematic structures. The high-resolution, real-time response, and tight multi-axis synchronization offered by these advanced servomotors can lead to faster print speeds, higher accuracy in additive manufacturing, and more efficient and precise material handling in automated assembly lines. The reduced wiring and simplified architecture inherent in integrated servomotors also contribute to more streamlined and cost-effective system designs for these applications.
Experts involved in the project, such as Charan Bhamra, emphasize that the development represents a significant step towards more autonomous and adaptable robotic systems. The ability to seamlessly integrate visual feedback with complex kinematic control on embedded hardware paves the way for a new generation of smart machines that can operate with unprecedented levels of precision and responsiveness. As industries continue to demand higher levels of automation and accuracy, integrated motion control solutions are set to play a pivotal role in shaping future technological landscapes. The efficiency, compactness, and high performance of these servomotors offer a compelling vision for the future of motion control across critical sectors.