Mini Black HAT Hack3r - How to connect 2 HATs?


#1

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?

-Brent


#2

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.


#3

You could use the larger version but the boards would still overlap slightly, though not a huge deal for those 2 specific HATs.

You’d also have to fit a female header in the middle ‘lane’ though and use the ones either side to plug the HATs.

Here’s a pic:

… 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!


#4

Old ribon cable might do the trick for connecting two HAT one Pi … with caveats:

  • You need to avoid cable select for master/slave, so the ribbon cable need to be without twist.
  • IDE connector are of the wrong gender for HAT, you can use long pin to do two gender changer
  • Ribbon cable is flexible, so you might want to attach them to a structure.

Would Pimoroni distribute such ribbon cable?


#5

Here is my gender changer solution for Pi 40 pin connector: https://twitter.com/DavidGlaude/status/718575909729656832

Here it was to correct a mistake… but it works with ribbon cable connector too.


#6

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.

-Brent


#7

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.


#8

[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).


#9

@RogueM

That pinout reference is super useful!

What’s the workaround for getting the pHAT DAC and pHAT Unicorn to work together?

-Brent


#10

@sandyjmacdonald is the man to ask as I believe he’s done it?


#11

Hi again Brent. I think I may just have answered it in this thread?


#12

@sandyjmacdonald You did, thanks.