The Adafruit Servo HAT is a great way if you want to control up to 16 servo motors with a PWM signal. You could also use the PWM signals for any other purpose with up to 1.6 KHz with 12 bit precision. The best thing about the Servo HAT is that it’s all free-running and its not using any resources from your Pi. Unless you are changing a servos position of course.
The Adafruit 16-Channel 12-bit PWM/Servo HAT will drive up to 16 servos or PWM outputs over I2C with only 2 pins. The on-board PWM controller will drive all 16 channels simultaneously with no additional Raspberry Pi processing overhead. If you want, you could even stack up to 62 of the Servo HATs to control up to 992 servos – all with the same 2 pins!
The Servo HAT works with the Raspberry Pi Model Zero, A+, B+, Pi 2 or Pi 3 (any Pi with 2×20 header). It can be used with the Model A or B if you use a tall 2×13 header instead of the included 2×20. It also works with any servo that can be powered by 5V and take 3.3V logic level signals.
Adafruit have made a nice Python library for you to use, so you’ll be up and running instantly, to make your robotic creation come to life. The Adafruit PWM/Servo HAT is the perfect solution for any project that requires a lot of servos or PWM outputs!
Each Servo HATcomes with a 2-pin terminal block, four 3×4 headers and a 2×20 socket header. You’ll need to do some light through-hole soldering to attach the headers onto the HAT circuit board. This is easy to do with basic soldering tools like a soldering iron and rosin core electronics solder. If you would like to stack multiple HATs onto one Pi, you can also pick up a 2×20 stacking header. You also need a set of right-angle 3×4 headers that should be soldered on instead.
Get your Adafruit Servo HAT here:
- 16-Channel 12-bit PWM/Servo HAT
- up to 1.6 KHz with 12 bit precision
- powered by 5V and take 3.3V logic level signals
- Servo HAT Pinout
- Dimensions w/ components: 65mm x 56mm x 13mm / 2.6″ x 2.2″ x 0.5″
- Weight (unsoldered HAT only): 14g / 0.03 lbs.
- Datasheet, schematic, PCB files, and Fritzing object available from the Adafruit product tutorial