I bought a Piano HAT and a Drum HAT, as well as a Mini Black HAT Hack3r to connect them both to a Pi.
Do I just mount both HATs on the landing area pins, then run the ribbon cable from the top pins to the Pi?
Also, the top landing area is big enough for a pHAT, but not a HAT. Is there a good way to setup 2 HATs on the Mini, or should I just order the full size Black HAT Hack3r next time?
The Mini Black HAT Hack3r was designed for a pHAT and a HAT or two pHATs, so you’re right- there’s overlap and the Piano HAT/Drum HAT wont fit together.
All mine have gone walkies, but I don’t believe the full-sized Black HAT Hack3r fits two HATs either. It was a productisation of something we used in-house for scoping and testing.
You can use two mini black HAT hackers, and jump the relevant GPIO connections over from one to the other.
… whether that is worth investing in a ‘regular’ Black HAT for you, I don’t know, but I can vouch for the usefulness of this ‘BHAT’ (Black HAT Attached on Top), by far my favourite config for testing/debugging!
It doesn’t seem like there’s a great way to mount 2 HATs at once, which is too bad. I originally got the idea from the Drum HAT product description:
“Works with Piano HAT - We made sure Drum HAT and Piano HAT could be used together on the same Pi. All you need is a little creative wiring or the help of a Black HAT Hack3r or two.”
Anyway, I’ll just need to rethink this project. I might use the Piano/Drum HAT with a Unicorn or DAC pHAT.
@RogueM, I really like your BHAT (Black HAT Attached on Top) solution, but I bought the fully assembled (soldered) Mini Black HAT.
Regarding wiring, do I just mount both HATs on the landing area pins, then run the ribbon cable from the top pins to the Pi? I’m guessing this works as long as the 2 HATs/pHATs don’t use the same pins.
Another option is to use a couple of Mini Black HAT Hack3rs and just use jumper wires to connect the appropriate pins on the two MBHHs. This way you can have the two HATs sitting side by side. You could even run the wires underneath the MBHHs and mount them both on a piece of perspex if you wanted it to look really neat.
[quote=“brentwomble, post:6, topic:2344”]
Regarding wiring, do I just mount both HATs on the landing area pins, then run the ribbon cable from the top pins to the Pi? I’m guessing this works as long as the 2 HATs/pHATs don’t use the same pins.[/quote]
sort off. I2c is special in that it uses the same 2 pins for bus communication but can address multiple devices as long as they don’t share the same address (which is what the product description tried to convey).
http://pinout.xyz should be all you need to work out whether you can combine boards. pHAT DAC + Unicorn is kind of problematic (there are workarounds though) but either will work fine with Piano or Drum HAT (or both in fact).