This is an adaptation of the ros_arduino_bridge designed specifically for the Teensy 4.1. We use almost entirely custom hardware so all encoder and motor controller comms are done directly through the board.
Our pinout setup can be easily viewed in the pinout.h
header file inside the include/
dir
This code is for the PJRC Teensy 4.1 development board. These instructions are to get it flashed onto the microcontroller.
- VS Code Installed
- PlatformIO Installed
- Teensy 4.1 microcontroller plugged into USB
sudo apt install teensy-loader-cli python3-venv
- Clone the repository
- Open the cloned folder in VS Code
- Upload software to board using the PlatformIO plugin
Make sure that the serial monitor is configured to the correct baud rate (9600) and that the line ending is set to "CR"
- Brushless motor control
- Custom pinout
- Sequential encoder support
- Stepper motor control
- Speed control
- Linear actuator control
- actuator angle calculation
- Hardware addressing
- ROS integration
- Headlight control
- Unit testing
- QEMU hardware simulation
- Independent wheel motor control
- PID position control
- PID velocity control
Unit testing is a long term goal however currently there are no viable solutions to emulate a teensy 4.1. We could potentially use actual hardware for automated testing but this would be a significant investment of time and resources.