Things to check on a Unicorn HD HAT


#1

Hi all,

Just got round to putting my HD HAT on my new Pi. Appears dead as a doornail - no obvious errors, but no lights when running the demos. What can I check? I2c should be enabled, anything else?

Thanks,
Dave.


#2

Bit of checking - looks like it just uses pin 18 and PWM anyway. But anything else I could look at before sending it back?


#3

Pinout is here, https://pinout.xyz/pinout/unicorn_hat_hd#
Have to ask the obvious, you ran the correct one line installer right?

curl https://get.pimoroni.com/unicornhathd | bash

Firmly pressed down on the GPIO header?


#4

I have one on the way, I won’t see it until next week some time though. Only just ordered last Friday.


#5

I suspect you’ve installed the Unicorn HAT library and not the Unicorn HAT HD one? Common mistake! But they are fundamentally different despite having confusingly similar names. (there was no easy way to consolidate them since they’re so very different)

Follow the install instructions that @alphanumeric posted above and that should put you on the right track.


#6

Hiya,

Thanks for replying. Yes, I did that.

Best regards,
Dave.


#7

Ah - right. Will have a check. I think I have the right one though (I do have a non-HD HAT too, which works fine). Sorry to stick another question in - how are efforts going to allow us to run these without root access. Just doesn’t sit right with me as a generally security paranoid person :)

Thanks,
Dave.


#8

It’s fundamentally impossible to run Unicorn HAT without root- it’s accessing the hardware/memory directly in order to prep a buffer of pixel data and copy it via DMA into the PWM hardware to modulate the signal. You can create a daemon that runs as root and handles the IO, which would lower your attack surface, but on a Pi by default you can elevate with passwordless sudo so it’s kind of pointless.

Unicorn HAT HD uses SPI, and doesn’t require root at all since it works in a completely different way.


#9

Ah - didn’t realise how differently they worked. Works now - I was indeed missing the PyPi library for the HD version.

Thanks,
Dave.


#10

Just received my Unicorn Hat HD, haven’t powered it up yet, but looking forward to playing with it. Maybe latter today if things go as planned.


#11

What would be the best example file to run to check if every LED is working?
Demo and test py light up every pixel but make it hard to tell if maybe one element ( a red or a green or a blue)isn’t working? Something that lights them all up Red, then Green, then Blue, maybe?