yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
MicroROS Robot Expansion Board📖
01. microROS control board development environment
  • 1. Introduction to microROS control board
  • 2. Set up ESP32-IDF development environment
  • 3. ESP32-IDF configuration tool
  • 4. Install ESP32-microros components
  • 5. Install and start microROS agent
  • 6. Flash-tool burning firmware
02. ESP32 basic course
  • 1. Turn on the LED light
  • 2. Button function
  • 3. Drive the buzzer
  • 4. Serial communication
  • 5. Battery voltage detection
  • 6. Drive PWM servo
  • 7. Drive motor
  • 8. Read motor encoder data
  • 9. PID controls car speed
  • 10. Read IMU data
  • 11. Read radar data
  • 12. Flash access data
  • 13. Partition table and memory
  • 14. Bluetooth communication
  • 15. WiFi networking
  • 16. Robot kinematics analysis
  • 17.Drive ESP32 WiFi camera
03. microros basic course
  • 1.Publish topic
  • 2. Subscribe topic
  • 3. Multi-topic subscribe and publish
  • 4. Subscribe buzzer topics
  • 5. Subscribe PWM servo topics
  • 6. Subscribe speed control topics
  • 7. Release speed topic
  • 8. Release IMU data topic
  • 9. Publish lidar data topics
  • 10. Customized transmission method
04.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
05. Robot basic course
4.1 Robot information release
  • Robot information release
4.0 Preparation
  • 1. Write firmware
  • 2. How to install and use VM
  • 3. microROS control board configuration
  • 4. Connect to microROS agent
4.2 Robot keyboard control
  • Robot keyboard control
4.3 Robot handle control
  • Robot handle control
4.4 Robot state estimation
  • Robot state estimation
4.5 Line speed calibration
  • Line speed calibration
4.6 Angular velocity calibration
  • Angular velocity calibration
4.7 Robot URDF model
  • Robot URDF model
Download
  • Firmware And Code
  • VM_File
  • 3D Model File
  • ROS2_Basic_VM
Download ZIP

Welcome to MicroROS Robot Expansion Board repository

2. Set up ESP32-IDF development environment

Set up ESP32-IDF development environment

Set up ESP32-IDF development environment1、Introduction to ESP32 development environment2、Install dependencies3、Download ESP-IDF4、Activate the ESP-IDF development environment5、Compile and flash firmware6、Shortcut command7、ESP-IDF API reference

1、Introduction to ESP32 development environment

The ESP32 development environment supports Windows, Linux and Mac platforms.

On Linux and Mac platforms, you need to download and install the ESP-IDF development environment from the source code.

There are a variety of development environments available on the Windows platform, including the official ESP-IDF environment, the arduino IDE software development environment, and the VS Code+PlatformIO IDE development method.

Here we take the Ubuntu system as an example to download and install the ESP-IDF development environment from the source code.

 

2、Install dependencies

Open the Ubuntu system terminal and run the following commands to install related dependencies.

sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0

 

3、Download ESP-IDF

Open the Ubuntu system terminal and run the following command to download the esp-idf-v5.1.2 version

xxxxxxxxxx
mkdir -p ~/esp
cd ~/esp
git clone -b v5.1.2 --recursive https://github.com/espressif/esp-idf.git

Set the chip esp32s3 supported by the tool.

xxxxxxxxxx
cd esp-idf
./install.sh esp32s3

 

4、Activate the ESP-IDF development environment

Run the following command in the esp-idf tool directory

xxxxxxxxxx
source ~/esp/esp-idf/export.sh

Note: Every time you open a new terminal, you need to activate the ESP-IDF development environment before you can compile the ESP-IDF project.

image-20240116122133981

 

5、Compile and flash firmware

Connect the microROS control board to the virtual machine/computer, and then test and compile the hello_world program to generate firmware.

xxxxxxxxxx
cd examples/get-started/hello_world
idf.py set-target esp32s3
idf.py build

When you see the following prompt, it means the compilation passed.

image-20240108171646634

View the generated firmware

xxxxxxxxxx
ls build/*.bin
ls build/bootloader/*.bin
ls build/partition_table/*.bin

image-20240108171119601

Run the following command to burn the generated firmware to the microROS control board.

xxxxxxxxxx
idf.py flash

Before using this command to burn, you need to confirm that the computer is only connected to one serial port device. If multiple serial port devices are connected, you can manually specify the serial port number in order to distinguish it. For example, specify the serial port number for burning as /dev/ttyUSB0

xxxxxxxxxx
idf.py flash -p /dev/ttyUSB0

When the download progress reaches 100% and Done is displayed, the burning is completed.

image-20240108171957072

Open the serial port simulator

xxxxxxxxxx
idf.py monitor

If you need to exit the serial port simulator, please press Ctrl+] to exit.

 

6、Shortcut command

If you need to compile, burn, and open the serial port simulator, please enter the following commands

xxxxxxxxxx
idf.py build flash monitor

 

7、ESP-IDF API reference

Open the following link to view the ESP32S3 official API reference content

xxxxxxxxxx
https://docs.espressif.com/projects/esp-idf/en/v5.1.2/esp32s3/api-reference/index.html

If you need to display Chinese, you can click [Chinese] to jump.

image-20240110115514778

Introduction to microROS control board
ESP32-IDF configuration tool

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
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文