Adafruit PWM / Servo Bonnet - LED Lighting

If you try to use software PWM on a Raspberry Pi Zero expect erratic results. In contrast you can use a 16 channel 12 bit PWM/servo unit from Adafruit and get excellent results.
Have a look at the script and it will give you an idea of what you can achieve. (2.8 KB)


Hi John,

Awesome findings! Thanks for uploading the code and doing some research into the area! :smiley:

Just to confirm you were using the Adafruit 16-Channel PWM.


I’ve used the bonnet and a Pi Zero.

Adafruit 16-Channel PWM / Servo Bonnet for Raspberry Pi | ADA3416 |

  • | - |

The bonnet is very convenient to use. I have 2 more on order (1 to replace the one I took from my 2 amplifier control using micro servos).

I also have a couple of the other boards on order:

Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685

As far as I can tell both the bonnet and the driver versions do the same thing. The Adafruit PCA9685 code is used for the bonnet.

I’m also a big fan of the Adafruit I2C ADS1015 12-Bit ADC - 4 Channel with Programmable Gain Amplifier. It allows lots of accurate measurements.


1 Like