How do I add LEDs and Buttons to InkyPHAT?

I’ve already managed to fry two Pi B+s so I figured it was time to ask for help! :s

I’m working on a little box that my mom can hook the InkyPHAT up to and hold a button to track her exercise and physio.

So far I have the python code figured out so it displays a random background and prints a progress bar based on the amount of walking she does vs her goal.

Everything was going great until I tried to add more than just the screen.
I used the pin out info that Pimoroni points to on the product page (https://pinout.xyz/pinout/inky_phat#) and hooked up these pins hoping to use the other pins for buttons and LEDs.
1 - 3v
2 - 5v
11 - BCM 17 - chip busy
13 - BCM 27 - chip reset
15 - BCM 22 - chip command
19 - BCM 10 - MOSI
23 - BCM 11 - SCLK
24 - BCM 8 - chip select

With all these pins hooked up I can’t get the display to load and I think I managed to cross some wires when working with the bread board and have managed to burn out 2x Raspberry Pi’s and I’m starting to get worried.

What pins am I missing?
Is there a better way to add LEDs and buttons as well as the display?
Is there a safer way to test this so I can stop ruining my Raspberry Pis?

You also need to wire up all those Ground pins with the black border around them to get the inky working.
Are you using series resistors with the LED’s?

Ok thanks! I’ll try that out on my Pi Zero when I get a chance tomorrow!

I’m using 200ohm resistors with some small LEDs (I think they are the resistors that came with them). Should I be using more than one resistor in series?

For the first one I had the InkyPHAT on a bread board with a breakout cable and all the buttons and LEDs where I wanted them. It stopped working so I assumed I had crossed the wrong wire somewhere and moved onto my second one (my Retro Pi setup)

For the second one I thought I would be a bit more careful and start with just the screen. I wasn’t able to get anything to load to it (I’m assuming because I had one ground hooked up at most, and I have proven out just the display used as a hat on the pi so I know that it does work) but without any LEDs or buttons I still managed to but my second Pi out of commission.

On the Pi itself, all those ground pins are common. They are all connected to each other. On a Hat its not always possible to link all the ground pins together. That happens when you plug it into the Pi’s GPIO so its not a big deal. Not until you try to wire it up with jumpers. And its not always obvious that those black markers on the pinout mean those ground pins are used.
Be careful with the 5v and 3.3V, short the two together and its by by Pi. The 3.3v regulator gets killed in the process.
One resistor should be fine. The GPIO have a max current that they can supply, an LED by itself will likely draw to much current and damage the GPIO pin output.

I’ve used Proto Hats on a few of my Pi’s.


Use a 11mm stacking header and you can plug a hat on top of it.

Then wire your buttons and LEDs to the proto hat.

I think I must have crossed the 5v and 3.3V on both of them :s
So just to confirm if pins 1 and 2 are connected it ruins the entire Raspberry Pi?
They seem dangerously close together! I’ll have to be a lot more careful with these little guys!

Those Proto hats look great I’m definitely going to grab a few! Thanks for the recommendation! :D

I’m trying to get this ready for my mom’s b-day this month and wont be able to get the proto hat in time so I decided to skip messing around with trying to separate the GPIO pins and found a hard drive cable that splits them nicely!
I soldered the GPIO header to the Pi zero upside down because I didn’t need them in order for the project I was planning on use it for. Turns out that it works great with the hard drive cable and I can just plug the InkpPHAT right in with a set of male header pins because they are already flipped!
Imgur

shorting 5v to GND will also kill it. As I discovered.

You can use both Pin 1, 3.3v and pin 2 or 4, 5V at the same time. Just don’t connect the 5V “to the” 3.3V. That blows the 3.3V regulator and you lose the 3.3v. It will measure zero volts once the regulator is blown.
On any Pi “except the 4B and the Zero”, there is a poly fuse between the 5V in and the 5V pin on the GPIO. If you short the 5V on a Pi with a poly fuse it will most times recover. The poly fuse heats up and becomes an open circuit. Once it cools down it goes back to normal and the Pi will work again. Takes hours to recover though.

There is also this,


If you solder a female GPIO header on the bottom side of a Pi Zero, you can plug it in just like a pHat and skip having to use the ribbon cable. I used 90 headers on the ends here so my Pi Zero stands up.

Yikes! I’ll be a lot more careful in the future! I see now I’ve been a bit rough on them! :s

That hat looks great thanks for the recommendation! The ribbon cable is working for now but I would like something a bit nicer once its all proven out!
Thanks for all the help and recommendations! Really appreciated!

ps. If you don’t mine me asking what are those little “cars” your working on?

Two wheel drive rovers. There is a caster under the Pi.

I use explorer pHats to drive the motors. There is also a powerboost and LIPO battery for power.
Full build pictures are here
https://1drv.ms/u/s!AjOYwiwlwDtpgrNiqCtc4AVnuaCHYw?e=XacSXb

All my Pi build pictures are here
https://1drv.ms/u/s!AjOYwiwlwDtpgUN1cjVt4KIi3T7H?e=s9fpUm