# Unicorn Hat LEDs not lighting up

**URL:** <https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279>\
**Category:** Support\
**Created:** [February 16, 2021, 2:52am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279 "2021-02-16T02:52:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![inky23](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@inky23](https://forums.pimoroni.com/u/inky23)\
**Post date:** [February 16, 2021, 2:52am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/1 "2021-02-16T02:52:05Z")

</div>

I just got the Unicorn Hat in the mail today, I attached it to my Pis 3 pins but no lights. I followed the beginner’s guide and installed all the dependencies and all but still no lights. Is there something else I’m missing?

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [February 16, 2021, 9:06am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/2 "2021-02-16T09:06:55Z")

</div>

What happens when you run one of the python example files?  
And are you running them with sudo?

---

<div class="post-metadata">

**Author:** ![inky23](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@inky23](https://forums.pimoroni.com/u/inky23)\
**Post date:** [February 17, 2021, 12:32am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/3 "2021-02-17T00:32:55Z")

</div>

Hi, when I run it with sudo the command script runs without errors but no led lights appear. Ive tried all the examples. I uploaded a picture of the LED with the Pi, I just attached it. No soldering is needed right? Also as a side note I read that once you plug in the HAT it should light up, mine did not.

 ![PXL_20210217_003104413](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/d/dd91238ba7285da070fb6ab67562ade28434d798.jpeg)

---

<div class="post-metadata">

**Author:** ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)\
**Post date:** [February 17, 2021, 9:03am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/4 "2021-02-17T09:03:59Z")

</div>

No soldering is needed, but it shouldn’t really light up when you attach the board. In fact, you’re better off attaching the board when the Pi is powered down, just to avoid accidentally shorting anything.

If the examples seem to run fine, without errors, but nothing lights up then that’s not a great sign. Does an example like `random_blinky.py` still print messages to the terminal?

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [February 17, 2021, 9:17am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/5 "2021-02-17T09:17:02Z")

</div>

Make sure nothing is touching the back side of the Unicorn Hat. Anything metal like a heatsink could short something out.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [February 17, 2021, 9:18am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/6 "2021-02-17T09:18:15Z")

</div>

I have a Unicorn HD, and the Mini HD. Neither one lights up until I run code to tell it to light up.

---

<div class="post-metadata">

**Author:** ![inky23](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@inky23](https://forums.pimoroni.com/u/inky23)\
**Post date:** [February 17, 2021, 7:03pm UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/7 "2021-02-17T19:03:21Z")

</div>

Yea there is a gap between the sink and PI

---

<div class="post-metadata">

**Author:** ![inky23](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@inky23](https://forums.pimoroni.com/u/inky23)\
**Post date:** [February 17, 2021, 7:09pm UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/8 "2021-02-17T19:09:43Z")

</div>

So my examples did not come with `random_blinky.py`. I copied the script and boom it works, the first few LEDs light up. Im assuming there’s something in the pre examples that are missing.

---

<div class="post-metadata">

**Author:** ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)\
**Post date:** [February 17, 2021, 10:56pm UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/9 "2021-02-17T22:56:27Z")

</div>

Glad you’ve got signs of life now, there is a whole list of [examples here](https://github.com/pimoroni/unicorn-hat/tree/master/examples) on their Git page.

---

<div class="post-metadata">

**Author:** ![inky23](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@inky23](https://forums.pimoroni.com/u/inky23)\
**Post date:** [February 18, 2021, 12:13am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/10 "2021-02-18T00:13:41Z")

</div>

Yea I’ve been fiddling around with scripts and such and it’s always the first 4 pixels. I think the rest of the lights are dead. R.I.P

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [February 18, 2021, 9:00am UTC](https://forums.pimoroni.com/t/unicorn-hat-leds-not-lighting-up/16279/11 "2021-02-18T09:00:49Z")

</div>

It only uses 3 GPIO pins and two of those are for power, so I wouldn’t think its an issue with the Pi. Not a hardware issue anyway.  
It only uses the 1 data pin so I’m thinking they work like NEOPIXELs. And one of them, the first one that doesn’t light up (or the last one that does) has an issue.  
[Unicorn HAT at Raspberry Pi GPIO Pinout](https://pinout.xyz/pinout/unicorn_hat)

My two Unicorn boards are both HD and use SPI, I can’t try any of the examples your using.
