This directory contains the firmware for the Teensy 4.1 microcontroller used on the Agribots Ground Robot. It utilizes micro-ROS to communicate natively with the ROS 2 graph over Serial (USB).
- MCU: Teensy 4.1
- Communication: USB Serial (
/dev/ttyACM0) - Key Peripherals:
- Motor Controllers (PWM/Direction)
- Encoders (Interrupts)
- IMU (If connected via SPI/I2C to Teensy)
We recommend using PlatformIO (VS Code Extension) for building and uploading code, as it handles the micro-ROS library dependencies automatically.
- VS Code installed.
- PlatformIO IDE extension installed.
- udev rules installed (for Teensy upload permissions).
- Open this folder (
microROS_package) in VS Code. - PlatformIO should automatically detect the
platformio.inifile and install libraries. - Connect the Teensy via USB.
- Run the Upload task (Arrow icon in bottom toolbar).
The Teensy will not function until the Micro-ROS Agent is running on the host computer (Raspberry Pi).