Unicornhat not working (Software problem?)

Hi all,
I am new in using a Raspberry Pi, as well as I am new in programming. So I followed Intructions for soldering the pi an the uniornhat, installed raspbian lite stretch. connectet my pi with a shell and downloaded the curl script for unicornhat. but it does not work. By using a Script for a GPIO Input and Output the hat will light up. So I do not know why the Scripts from the Librarie wont run.
Would be great if someone has an idea.
Thanks
LastUnicorn

Is this Unicorn HAT or Unicorn HAT HD and are you using the right library since they - confusingly enough - work in totally different ways and have different libraries.

It is an Unicorn pHAT and I took this library
curl https://get.pimoroni.com/unicornhat | bash

From here, https://github.com/pimoroni/unicorn-hat the one line installer is as follows
curl -sS https://get.pimoroni.com/unicornhat | bash

I tried this by removing the first Pimoroni library and installing it from this link you showed. No change. Could there something be wrong in the raspi-gpio or RPI.GPIO?

Could you please post a picture of your soldering on the Pi.

Pin 1 on the Pi doesn’t look to good. And the Unicorn pHat looks pretty rough. Just being honest. Practice makes perfect. Have a look at this. https://learn.pimoroni.com/tutorial/sandyj/the-ultimate-guide-to-soldering
I think you may have a couple cold soldered joints in there.
soldering101

Something else I think I should mention. If thats carpet in your pictures thats a no no. You don’t want to put bare unprotected electronics on carpet. You run the risk of an electrostatic discharge which can damage electronics.
What I do is save the antistatic bags my stuff comes in. Then put my boards on top of it. Or stick to a nice wooden desktop etc.
Don’t let this setback deter you or spoil your fun. Sometimes things don’t go as planned, been there done that. Still happens to me even after many years working with electronics.

I’d also double check that you’re putting the HAT on in the correct orientation, those right angled headers on the wrong side of the board are making it difficult for me to figure out which way it should be.

Actually, given how it’s soldered, I don’t think it’s possible for you to connect it properly without some jumper cable shenanigans.

Wow, good observation, I completely missed it was soldered on the wrong side of the Pi.
Thats a bummer for sure. I don’t believe its possible to mate the two directly header to header and get the pinout correctly matched.
I’ve used 90 headers no problem. I do usually triple check its correctly orientated before soldering. Its an easy thing to do to get it wrong.

Hmm… that sounds not so good.
When I finished the soldering I saw in videos an on photos that there is the soldering on the other side. But I thought, when I turn the pHAT upside down as well, it is double turned and so it will work. I could light up the HAT by using a script for a GPIO Input and Output, so I thought it will work out and it could not be a hardware problem.
But now I know it better.

Do you have an idea how I can fix the problem?
@major_tomm: You said something about a jumper cable? Is there something like this?

Pimoroni sell jumper jerky that can be used along with the pinout to hook it up properly.

You want the male to female jumper jerky, just for clarification.
Or get another Pi Zero, and a new header, and have another try.
The 90 degree header will work, when soldered on the correct side of the Pi.

If you look at the Pi Zero ( really easy to see before you solder it) there will be one square solder pad. That is pin 1 of the GPIO. Same deal with the Unicorn pHat, there is one square solder pad that marks the pin 1 location.
Pin 1 has to go to pin 1, pin 2 to pin 2 etc. With the Pi Zeros HDMI and USB jacks facing you, GPIO along the back, It goes
2,4,6,8,…, 40
1,3,5,7,…, 39

Okay guys now I have an idea how to go on to finally finish my project.
Thanks a lot for spending so much time in solving my problem.
LastUnicorn