Skip to content

This repository intends to control stepper motor using ROS(Robot Operating System) with the help of MicroROS.

Notifications You must be signed in to change notification settings

soylentOrange/Stepper_motor_micro_ros

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Stepper_motor_micro_ros

This repository intends to control stepper motor using ROS2(Robot Operating System2) with the help of MicroROS.

PlatformIO setup

ESP32 S2 mini board was used in this project which is also supported in platformIO. When creating a new project in PlatformIO select a board(in this case its WEMOS LOLIN S2 MINI)

Screenshot from 2025-01-20 10-59-14

Once the project is created, the platformio.ini and main.cpp files can be found inside the newly created project folder. Copy the contents of these files from this repository and build the project.

NOTE: This project is built on the Arduino framework and is dependent on the micro_ros_platformio library but not on micro_ros_arduino!

Micro_ros_agent setup

In order to control the stepper motor from the Host PC, a micro_ros agent should be running on the Host PC. To set up the micro_ros follow the steps in this link.

Note: You need to have ROS installed in your Host PC already and using Docker is optional

Since the communication was established using the serial port between the microcontroller and Host PC, the follwing command was used to launch the micro_ros_agent

ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0

Funding Acknowledgment

This work is part of the Hospibot project, which is funded by Interreg Deutschland-Danmark Interreg-Logo_bilingual_RGB

About

This repository intends to control stepper motor using ROS(Robot Operating System) with the help of MicroROS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%