How to address "Extra PWM" pinouts on DC/Stepper Motor Bonnet

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
caglide
 
Posts: 1
Joined: Thu May 25, 2023 12:13 am

How to address "Extra PWM" pinouts on DC/Stepper Motor Bonnet

Post by caglide »

Having difficulty finding out how to address the "Extra PWM" pinouts on Stepper/DC Motor bonnet i.e. silkscreened pins #0, #1, 14 and 15. I would like to use these to run a servo motor's logic and powering the servo on-off as if it was a DC Motor.

Motor Bonnet/HAT is linked below:
https://learn.adafruit.com/adafruit-dc- ... /downloads

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: How to address "Extra PWM" pinouts on DC/Stepper Motor Bonnet

Post by adafruit_support_bill »

The motorkit library utilizes the PCA9685 library to control the outputs of the PCA9685 PWM chip. To access the unused channels, you can use the PCA9685 library directly.

Once caveat here is that the PCA9685 PWM frequency is the same for all channels. Servos require a control pulse update frequency of about 50Hz - which is not suitable for microstep mode for the steppers, or for DC motor speed control.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”