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
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/
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/
- caglide
- Posts: 1
- Joined: Thu May 25, 2023 12:13 am
- adafruit_support_bill
- Posts: 88099
- Joined: Sat Feb 07, 2009 10:11 am
Re: How to address "Extra PWM" pinouts on DC/Stepper Motor Bonnet
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.
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.
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/
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/