yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
ROS Robot Expansion Board📖
1.Expansion board STM32 driver
  • 0. Precautions
  • 1.1Expansion Board Introduction_V4.0
  • 1.1 Expansion Board Introduction_V3.0
  • 1.1 Expansion Board Introduction_V1.0
  • 1.2 STM32 Development environment
  • 1.3 Button to control the buzzer to whistle
  • 1.4 FreeRTOS application
  • 1.5 Serial communication
  • 1.6 SBUS model aircraft remote control
  • 1.7 CAN bus communication
  • 1.8 RGB colorful light bar
  • 1.9 Timer interrupt to control PWM servo
  • 1.10 Control serial port servos
  • 1.11 Nine-axis attitude sensor to obtain data
  • 1.12 Control the forward and reverse rotation of the motor
  • 1.13 The timer captures the encoder data
  • 1.14.1 Robot kinematics analysis theory
  • 1.14.2 Mecanum wheel kinematics analysis
  • 1.15 PID control robot movement
  • 1.16 OLED character display
  • 1.17Host computer use
2.Python basic control
  • 2.0 Bind PCB port devices
  • 2.1 Update the firmware of the expansion board
  • 2.2 Turn off the self-starting large program at startup
  • 2.3 Install the Rosmaster driver library
  • 2.4 Buzzer whistle
  • 2.5 Control PWM servo
  • 2.6 RGB colorful light bar special effects display
  • 2.7 Control the forward and reverse rotation of the motor
  • 2.8 Control the movement of the robot
  • 2.9 Control Serial Servo
3.ROS1 Basic Course
  • 1.ROS introduction
  • 2.ROS installation
  • 3.ROS common command tools
  • 4.ROS workspace
  • 5.ROS function package
  • 6.ROS node
  • 7.ROS topic publisher
  • 8.ROS topic subscribers
  • 9.ROS service client
  • 10.ROS service server
  • 11.ROS action client
  • 12.ROS action server
  • 13.ROS custom message reception
  • 14.ROS-launch file
  • 15.ROS-TF transformation
  • 16.ROS parameter service
  • 17.ROS-rviz use
  • 18.ROS-rqt tool usage
  • 19.Topic message recording and playback
  • 20.urdf model introduction
  • 21.gazebo introduction
  • 22.ROS distributed communication
4.ROS1 robot control
  • 0. Bind PCB port devices
  • 1. Package Use the tutorial
  • 2. Package Description
  • 3. Robot keyboard control
  • 4. Robot state estimation
  • 5. Robot imu calibration
  • 6. Robot URDF Model
5.ROS2 Basic Course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
6.ROS2 robot control
  • 0. Bind PCB port devices
  • 1. Package Use the tutorial
  • 2. Robot information release
  • 3. Robot keyboard control
  • 4. Robot state estimation
  • 5. Robot calibration
  • 6. URDF model
7.RDK X3 course
  • 1. Update the firmware of the expansion board
  • 2. Turn off the self-starting large program at startup
  • 3. Install the Rosmaster driver library
  • 4. Buzzer whistle
  • 5. Control PWM servo
  • 6. RGB colorful light bar special effects
  • 7. Control motor forward reverse
  • 8. Control robot movement
  • 9. Control Serial Servo
Download
  • Rules_File
  • Hardware Info
  • Code
  • 3D Model File
  • RDK Code
  • ROS2_Basic_VM
  • PC_Software
Download ZIP

Welcome to ROS Robot Expansion Board repository

1.17Host computer use

ROSMASTER IMU Host Software · Beginner Tutorial

Applicable system: Windows 10 / 11 (64-bit) | Communication baud rate: 115200 | No internet connection or development environment required

1. Preparation

ItemDescription
ComputerWindows 10 / 11, 64-bit, with Microsoft Edge or Google Chrome installed (Edge is built into Win10/11)
ROSMASTER driver board / carAlready flashed with the matching firmware
USB data cableMust be a cable capable of data transfer; charge-only cables will not work
Software packageROSMASTER_IMU_x.x.x_Windows_x64.zip

1.1 Download the Software

Download the host software ROSMASTER_IMU.exe from the provided materials and save it to a local folder

image-20261029141948082

2. Launch the Software

  1. Connect the board to the computer with a USB cable and make sure the 12V power supply is stable.

  2. Keep the board stationary for a few seconds. After the board is powered on, press the reset button and wait for it to complete the startup calibration.

    image-20261022163343235

  3. Double-click ROSMASTER_IMU.exe.

image-20261029142103813

On first use, a usage and disclaimer notice pops up; click "I understand, start using"

image-20261029142137814

  1. After a moment, the maximized software window appears.

image-20261022163438401

3. Connect the Board

  1. Click the [Connect Serial Port] button in the upper-right corner of the window.

image-20261022163552772

  1. The "Select Serial Port" window pops up. Select the port corresponding to the board in the list (usually shown as USB-SERIAL CH340, CP210x, or COMx) and click "Connect".

image-20261022163625485

Not sure which port it is? Unplug the USB cable and check the list, then plug it back in; the extra entry that appears is the board.

  1. After a successful connection, you will see:

    • The status at the top becomes normal (data present);

    • The receive rate (FPS) is shown in the upper-right corner, usually between 30 and 100;

    • The 3D model starts to rotate with the board.

image-20261022163658880

✅ If the 3D model moves with the board, the connection is successful.


4. Getting to Know the Main Interface

image-20261022163749121

AreaFunction
① Top barConnect/disconnect serial port, battery level, record data, import replay, emergency stop, language and background switching
② Left navigationSwitch between the 6 workbenches
③ Central work areaContent of the current workbench
④ "Help / About" in the lower-left cornerView the version number, runtime requirements, and FAQ

The 6 workbenches:

No.NamePurpose
01Overview3D attitude + 9-axis data + control; the most commonly used in daily work
02Chassis DrivingControl the car's forward/backward movement and steering; single-motor test (corresponding peripherals required)
03Sensor WaveformsAcceleration / angular rate / magnetic field waveforms
04Servos and PeripheralsServos, RGB LED strip, buzzer
05Spatial AttitudeLarge-screen 3D attitude and compass
06Calibration WorkbenchMagnetometer calibration and result verification

image-20261022163853470

5. Common Functions

5.1 View the 3D Attitude

Go to 01 Overview or 05 Spatial Attitude.

  • Rotate view: hold the left mouse button and drag on the 3D view.

  • Zoom: scroll the mouse wheel.

  • Reset view: click "Reset View" to restore the default view.

  • Zero yaw: click "Zero Yaw" to take the current heading as 0°.

  • Model direction opposite/inverted relative to the real device: check R (roll), P (pitch), or Y (yaw) under Flip 180°. This only changes the display and does not affect the real data.

image-20261022163958414

5.2 View Sensor Waveforms

Go to 03 Sensor Waveforms:

  • ACC: acceleration (X / Y / Z)

  • GYR: angular rate (X / Y / Z)

  • MAG: magnetic field strength (X / Y / Z)

  • You can select the time window (3 / 5 / 10 / 20 s); click "Pause Waveform" to freeze the display, and "Clear History" to start over.

image-20261022164034653

5.3 Drive the Car Chassis

⚠️ Safety reminder: before testing, lift the car so the wheels are off the ground, or make sure the surrounding area is clear. If anything unexpected happens, immediately click the red [Emergency Stop] at the top.

Go to 02 Chassis Driving:

① Select the vehicle model (required on first use)

  1. Click [Vehicle Model Configuration].

  2. Click "Read Vehicle Model" to confirm the current model; if it is wrong, select your model from the drop-down list.

  3. Choose "Apply Temporarily" (valid for this session only) or "Save to Device Flash" (permanent), then close the configuration.

image-20261022164108595

image-20261022164154523

② Directional Driving

  • Hold the direction button with the mouse to drive; release it to stop immediately.

  • After checking "Enable Keyboard Driving", you can use the keyboard: W/S forward/backward, A/D strafe left/right, Q/E rotate in place, Space brake.

  • The speed can be adjusted with the slider or preset buttons; it is recommended to start at a low speed (10~50 mm/s).

image-20261022164304083

③ Single-Motor PWM Test (troubleshooting wiring)

  1. Switch to "Single-Motor PWM".

  2. Set the percentage and hold the corresponding M1~M4 button; that motor rotates and stops when released.

  3. Only one motor runs at a time.

image-20261022164343697

5.4 Servos / LED Strip / Buzzer

Go to 04 Servos and Peripherals:

  • PWM servos: drag the slider to control the angle of S1~S4; "Synchronized Linkage" moves all four together.

  • Bus servos: the movement time can be set (300 / 500 / 1000 / 2000 ms); "Lock/Release" controls the torque, and after release the robotic arm can be moved by hand.

  • RGB LED strip: select a color and click "Send Color"; click "Turn Off" to switch it off.

  • Buzzer: click "Short Beep / Double Beep / Long Beep" to test.

image-20261022164450685

image-20261022164519375

image-20261022164546842

5.5 Record and Replay Data

  • Record: click [Record Data] at the top to start, and click again to finish; the data is saved as a .csv file.

image-20261022164622974

image-20261022164638057

  • Replay: click [Import Replay] and select a previously recorded .csv file; you can pause, drag the progress, and adjust the speed. The device cannot be controlled during replay, and the serial port must be reconnected after replay ends.

image-20261022164805328

image-20261022164820173


6. Magnetometer Calibration

This step is only required when using a v4.0 single-ROS control board; on a car, motor currents affect the calibration, so errors will remain after calibration

When is calibration needed?

  • When using a single-ROS control board;

  • When the board has been moved to a different mounting position, or the surrounding magnetic environment has changed (motors, metal brackets, etc. installed).

Before calibrating:

  • Turn off the motors and stay away from large metal objects, magnets, high-current cables, phones, and speakers;

  • Keep the serial connection normal with data flowing.

Step 1: Enter the Calibration Workbench

Click 06 Calibration Workbench on the left.

image-20261022165324797

Step 2: Understand the Demonstration

At the top of the page there is an animation demonstrating how to hold the board and trace a "figure 8" in the air while flipping and tilting it. All orientations (front, back, and every direction) must be covered.

image-20261022165333875

Step 3: Start Calibration

  1. Click [▶ Start Official Calibration].

  2. Hold the board and, following the demonstration, trace figure 8s slowly and steadily in the air while continuously flipping and tilting it.

  3. Watch the "Calibration Accuracy" level rise from 0 to 3, and the "Calibration Passed" prompt appear.

image-20261022165401849

image-20261022165425828

Step 4: Save

  1. After "Passed" appears, stop rotating.

  2. Before the countdown ends, click [💾 Save and Verify].

  3. Wait for the "Saved and verified successfully" prompt.

image-20261022165447422

Step 5: ⚠️ Restart the Board (Required)

After saving, while the board is stationary, you must press the RESET button on the board, or power it off and on again, for the new parameters to take effect.

Step 6: Verify the Result

  1. After resetting, wait for the control board to beep once.

  2. Click "Read Flash" and confirm that the status shows "Calibrated".

  3. Switch to [Magnetic Data Observation] and slowly rotate the board in place:

    • The X / Y / Z curves change with the orientation;

    • The total magnetic field |B| curve should be basically flat; the smaller the fluctuation (CV value), the better.

image-20261022165603614

image-20261022165729187

7. Language and Background Switching

  • Language menu in the upper-right corner: switch between Chinese / English instantly without disconnecting the device.

  • Background: choose Dark or Light; the software remembers your choice.

image-20261022165757298


8. Proper Exit

  1. Click [Disconnect Serial Port] in the upper-right corner.

  2. Click the × in the upper-right corner of the window to close it.

image-20261022165850478


9. FAQ

SymptomCauseSolution
No board in the list after clicking ConnectThe cable is charge-only / not plugged in firmly / driver missingTry another data cable or a different USB port; open Device Manager and check for "Ports (COM)"; if the driver is missing, install the CH340 / CP210x driver
Prompt saying the serial port failed to open / is in useAnother program is occupying the serial portClose serial assistants, the Arduino/VS Code serial monitor, etc.
Connected but FPS is 0 and there is no dataThe board is not powered / wrong firmware / wrong baud rateCheck the power switch; confirm the matching firmware is flashed; the baud rate should be 115200
The 3D model direction is opposite to the real deviceDifferent mounting orientationCheck R / P / Y under "Flip 180°"
Still shows "Uncalibrated" after saving the calibrationThe board was not restarted after savingPress RESET on the board or power it off and on again
Cannot find the window after minimizing itThe program is running in the system trayDouble-click the tray icon or double-click the EXE again
Double-clicking the EXE does nothing / it will not open.NET 4.5+ or a browser is missing, or it is blocked by antivirusInstall Edge / Chrome; add the program to the antivirus whitelist; obtain the complete archive again
Prompt saying the browser does not support serial portsAn unsupported browser is being usedOpen it through the EXE; Edge / Chrome must be installed on the system

10. Contact After-Sales Support

If you encounter a problem you cannot solve:

  1. Click "Help / About" in the lower-left corner → "Export Fault Report" and save the JSON file;

image-20261022165929737

  1. Send that file, a description of the problem (what you did and what happened), and screenshots to the after-sales staff.

OLED character display
Bind PCB port devices

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文