Is it possible to stack the pihat with say like the sparkfun servo hat controller on top of the raspbery pi?
Also, when i use the pihat, do I still have access to the GPIO ports on the raspberry pi?
Is it possible to stack the pihat with say like the sparkfun servo hat controller on top of the raspbery pi?
Also, when i use the pihat, do I still have access to the GPIO ports on the raspberry pi?
Hello, and thanks for posting.
If you’re talking about the [SparkFun Qwiic pHAT and the [SparkFun Pi Servo HAT, technically yes, those can be stacked, but because the Qwiic pHAT doesn’t have long header pins on it, that would need to be at the top of the stack.
Since the Servo HAT needs some clearance, you’d need some sort of spacer to be able to access the servo pins.
The best solution I can come up with would be to solder a set of [ESP32 Thing Stackable Headers to the Servo HAT and then use a second set of those headers as a spacer between the Servo HAT and Qwiic pHAT.
That combination would allow you access to the GPIO pins when both HATs are in place.
The stack would look like this:
Do you know what pins the pHat (https://www.sparkfun.com/products/15351) and the servo controller (https://www.sparkfun.com/products/15316) use? Does it matter if they overlap? Also, do the hats come pre-soldered?
You can find the pins by looking at the schematic drawings for each hat. (Check the ‘Documents’ section on the product pages). Both hats use the I2C pins and those can be shared across multiple hats or devices.
The Servo Hat also connects to the UART pins (RX and TX) and more or less takes over those pins. Everything else is open for use.
Only the Qwiic pHAT comes with a connector soldered in place, you’d need to solder a connector on the Servo HAT.