Skip to content

AIT-Assistive-Autonomous-Systems/led_strip_hmi_embedded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

led_strip_hmi_embedded

Micro-ROS application for controlling LED strips as an embedded HMI on the Arduino Portenta H7.


Hardware

Note:
The NeoPixel LED strip requires a 5V power supply. The Portenta H7 provides 3.3V on SPI pins, which may not be sufficient for reliable operation. Use a level shifter or a separate 5V supply for the NeoPixel strip.

SPI Pinout (Portenta Hat J5):

  • Pin 19 (SPI1_MOSI) - Data line for NeoPixel
  • Pin 23 (SPI1_SCK) - Clock line for NeoPixel

Software

This project is built using the Zephyr RTOS and micro-ROS framework.

For setting up micro-ROS on Zephyr, we build upon the micro-ros-zephyr-module repository micro-ros-zephyr-module.

Setup

1. ROS Communication

The micro-ROS framework is used to communicate with a ROS 2 system over Ethernet (UDP/IP).
The micro-ros-agent bridges the embedded application and the ROS 2 system.

Start the agent:

docker run -it --rm -v /dev:/dev --privileged --net=host microros/micro-ros-agent:jazzy udp4 --port 8888 -v6

The host machine should be configured with IP address 10.42.0.1.


2. Building and Flashing

Prerequisites:

  • Zephyr SDK and toolchain
  • Python 3.x
  • STM32CubeProgrammer (for flashing)
  • West (Zephyr meta-tool)

Initialize workspace (if not already done):

west init -l .
west update
pip install -r zephyr/scripts/requirements.txt

Configure udev rules for ST-Link (Linux):

# Copy rules from CubeProgrammer Drivers/rules to /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger

Build the firmware:

west build -d build_caripu_app -b arduino_portenta_h7_m7 applications/caripu

Flash the firmware (using ST-Link):

west flash -d build_caripu_app

or use STM32CubeProgrammer GUI/CLI.

About

Micro-ROS application for controlling LED strips as an embedded HMI on the Arduino Portenta H7.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published