Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

Troubleshooting • Re: Microcontroller-based HID keyboard gives random inputs on Raspberry Pi 4

$
0
0
Okay, so this is a pretty big update. Huge thanks neilgl for helping me check out my code and setup. I hooked up a Pico on a breadboard and the pi handled it perfectly. Which definitely points to the mat causing the issue. I still don't understand what is causing the erroneous inputs, but I have one suspicion. The "buttons" are metal bars that are about 1' thick and 3' wide, which are separated by foam. These bars might cause just enough capacitance to cause issues. If the voltage is not consistent being provided from the pi (which would be really strange) I could see some current bleeding through.

Not sure if this is the right crowd to be asking these questions, but does anyone have any tips for this? Would something like regulating capacitors help with this? I've taken college level classes in electrical engineering and embedded systems so I'm familiar with some of the concepts going on here, but I have little experience with working on real systems and the problems that they bring along.

Alternatively, if there are software solutions to 1. figure the conditions of the false inputs versus a real input, and 2. be able to differentiate between the two through software, I'm all ears.

The capacitance thing is just a theory, but if anyone has any better ideas of what's causing the false inputs I'd also accept any ideas. Here's a link to some images I took of the switched themselves (there's 4 switches per direction, the bottom plates are all wired to gnd and the top plates are wired to the pin), and you can take a look here: https://drive.google.com/drive/folders/ ... drive_link

Statistics: Posted by nm720bike — Wed Sep 04, 2024 2:46 am



Viewing all articles
Browse latest Browse all 3552

Trending Articles