Recently, I was engrossed in your video showcasing the Adafruit 16-Channel PWM Hat for the Raspberry Pi. The possibilities it opens up are fascinating. While watching, I couldn’t help but wonder if it’s possible to stack this Hat on an Adafruit DC and Stepper Motor Hat on a Raspberry Pi 4 Model B. I believe this combination could lead to some exciting projects, but I’m not entirely sure how to go about it.
If you have any insights or guidance on this matter, I would greatly appreciate it.
Hi Devansh, welcome to the forum!
My go-to resource for HAT stacking is this page:
In your case, it looks like they only use power, ground and I2C pins, so as long as there are no I2C address conflicts (there aren’t in this case), you’re good!
So it will be okay to stack different adafruit HATs on one another as long as the I2c pins conflict. Does that mean the Python code to run the two different HATs together will just look the same as the one in the videos for each HAT with no changes?
Yes, that’s right. Unless two libraries state they conflict, they should work. Just keep in mind that the examples in the videos might both
import a library or the like, so you only have to do that once.
Also after stacking the HATs and making a different I2c for one of the HATs, will I supply the power to both HATs separately or just to one?
I trust this message finds you well, and I apologize for any inconvenience my inquiry may cause. I am currently encountering an issue with the configuration of Camera Module 3 on my Raspberry Pi 4B. Specifically, when executing the command “libcamera-hello -t0,” I am confronted with the subsequent error message:
Made X/EGL preview window
[0:02:22.195466548]  INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f
ERROR: *** no cameras available ***
Despite having taken steps to enable the camera on my Raspberry Pi and successfully installing the libcamera-apps package, I find myself unable to resolve this persistent issue. As such, I have taken the liberty of posting this question as a new topic on the Finding Parts forum in the hopes of garnering assistance from the community.
Your guidance and insights on this matter would be greatly appreciated.
Connecting HAT power in parallel is fine.
Regarding the camera, could you please send through a photo of how you have everything hooked up?
Have you followed the guide? https://projects.raspberrypi.org/en/projects/getting-started-with-picamera/2
Yes I have followed the steps to setting up my pi as well as doing a fresh install of rasbian yet the error persists, so I have attached images of my pi to this email. Also for the parallel circuits with the HAts what would that look like?