Picade HAT not working


#1

Received my new Picade hat today and followed the setup instructions on a retropie image that was already being used. Wired up the controls and when I push the soft power button, the system boots to retropie. I go to the controls setup and the buttons and joystick are not seen and cannot be configured. The soft power button also will not shut down the system and this has to be done the usual way with a keyboard command.

Also purchased a Picade pcb (not hat) and connected this and this works straight away with the same retropie image.

Any suggestions would be very welcome as this is going into a bartop arcade machine made from lego that I hope to show off at an event on Wednesday.


#2

Which setup instructions did you follow?

Do you have a mouse/keyboard attached to your Pi that you can run some debugging steps with?


#3

Followed the ones on your site at https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-picade-hat
Yes, I have a USB keyboard & mouse.


#4

Can you hit F4 to drop to the command line and see what you get if you run:

cat /var/log/picadehatd.log

You should see something like; “Picade HAT daemon running…”

Next try running the showkey command to see if it shows anything when you press a key.


#5

cat /var/log/picadehatd.log
no such file or directory

showkey
press any key (I tried presses button and joystick)
no output
keycode 28 release for 10 seconds that exits


#6

I received my Picade hat this week as well and I do experience exactly the same issue…
I’m following your track and getting the same messages…
See how I set it up, if it can help:


#7

Curious, sounds like the software isn’t running at all.

Could you try running: sudo picadehatd


#8

It says “command not found”


#9

Says command not found


#10

Then you have no working software at all… can you run the setup.sh found in the repo and post the full output here?


#11

IE:

git clone https://github.com/pimoroni/picade-hat
cd picade-hat
./setup.sh

#12

actually, there should already be a clone of the repo in ~/Pimoroni/… if not that’s the problem right there!


#13

I think the most likely is that the install went fine but the file is not executable, try (+reboot):

sudo chmod +x /usr/bin/picadehatd

#14

Great! It works for me now! Can map the buttons and stick now!
Hope this is solve for kryten as well.


#15

it should, hopefully. It seems that editing files live in the repo using github directly messes file modes. The setup.sh now takes some steps to avoid running into that pitfall again, sorry about the false start. Enjoy!


#16

Thanks! Enjoying it now!


#17

Thanks everyone. That’s working fine now. I really appreciate your help and am looking forward to completing the project now.

I am going to finish wiring up all controls and then when I get to work tomorrow morning, fit them inside the lego case. When it’s complete, I will try to post some pics of what you helped to create.

<img