I have an Arduino Nano 33 IoT and a MacBook.
Through a PS/2 connecter, I have the following wiring:
Arduino PS/2 Seat Pads
9 1 Seat1
10 2 Seat2
11 3 Seat3
13 4 Seat4
15 5 Seat5
VIN (5v) 6 Common
Whenever all of the seatpads are "open", the Arduino reads arbitrary values. Sometimes, when one seat is closed, neighboring seats are read as on (digitalRead) which I assume is because the wires are interfering with each other.
Is there a way to make the seats grounded or something so that the readings from the inputs would be reliable? I cannot alter the seat pads, so said fix would have to be within my circuit. I made PCBs, but I don't really know what I'm doing, so I may have to get them redone anyway (only 10 of them.) I am fairly new to Arduino, so constructive criticism would be appreciated.
Am I allowed to post files of my PCB on the forum, or just screen shots?
The end goal is to use digitalInturrpts on each pin instead of digitalRead