Skip to content

TanJunKiat/ROS2_PCA9685

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Controlling PCA9685 with ROS2

CONTENTS OF THIS FILE

  1. README.md
  2. src

Introduction

  • Tested with:
  1. Raspberry Pi 4B (4 GB) with Sandisk Extreme Pro (64 GB)
  2. ROS2 Foxy
  3. PCA9685

Requirements

  1. ROS2
  2. PCA9685

Installation

Pre-requisite

  1. Install adafruit pca9685 and servokit library
sudo pip3 install adafruit-pca9685
sudo pip3 install adafruit-circuitpython-servokit
  1. Build workspace
cd <ws>
colcon build

Usage

cd <ws>
source ./install/setup.bash
ros2 run ros2_pca9685 listener

Additional Information

  1. This code was created to produce PWM for a rotor that generates a maximum thrust of 15.0N

  2. The mapping can be reconfigured by editing the <subscriber_member_function.py> file

FAQ / Troubleshooting

TBC

Maintainers

  1. Tan Jun Kiat ([email protected])

About

Adaptation from working repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages