Control WS2812B RGB LED Strips with GPIO pins

Hello I am using a RosBot 2.0 pro. My goal is to run LED’s with the hExt 5v pin, gnd pin, and a gpio pin. how do I configure the pins to send out the correct data?

Hi ccole,

Here you can find more information about hExt port, to give you more insight on how to connect your LEDs: CORE2 | Husarion

The GPIO pins are managed by the CORE2 board, so to program their behavior, you would need to modify the board’s firmware. You can do this by modifying the rosbot_ros2_firmware repository to add your LED usage. You can check how built-in LEDs are managed to give you an idea on how to implement your solution.
Follow the README on how to build and flash the new firmware for the robot.

Additionally, there are two built-in LEDs that can be turned on or off using ROS 2 topics. If this meets your needs, you can use the topics /led/left, /led/right. For more information check here: ROSbot ( 2R | 2 PRO | 2 ) | Husarion

Best,
Dawid