FreeJoy icon indicating copy to clipboard operation
FreeJoy copied to clipboard

Matrix Button Rows Keep Failing

Open speedbird5 opened this issue 4 years ago • 6 comments

Hi I have an STM 32 see attached pic.

I have flashed the device successfully with FreeJoy_1_7_0b3.hex and FreeJoy_1_7_0b3.bin using the ST-Link V4 software.

I am running FreeJoyQt.exe version 1.7.0b3

I have a matrix of 8 columns and 10 rows and I have a diode correctly placed between each switch.

The setup worked initially but after a while, two of the rows failed.

What happens is that if you make any of the switches in the row, all buttons in that row light up.

I swapped them to two free terminals and re configured the new rows and it worked again, but a little while later the new rows failed.

The trouble is that I have run out of good rows.

It always seems to be the rows, not the columns.

IMG_4603

speedbird5 avatar May 18 '21 07:05 speedbird5

Hi,

further to my problem above, I think that it is caused by static electricity discharge on the case enclosing the STM32 which is damaging the board.

Does anyone know how to protect the STM32 from electrostatic discharge?

Thanks

speedbird5 avatar Jun 17 '21 14:06 speedbird5

Hi, you can use ESD protection IC like this one: image

Schematics from FreeJoy Controller Lite: https://github.com/FreeJoy-Team/Controller-Lite/blob/master/FreeJoy%20Controller%20Lite.pdf

vostrenkov avatar Jun 27 '21 13:06 vostrenkov

I have used 32 pins on my STM 32. How many of these ICs do I need to protect the board ? I am unsure how I would wire them up to the STM 32.

Also where could I buy a Freejoy Lite board from ?

Thanks

speedbird5 avatar Jun 27 '21 14:06 speedbird5

It can make sense to use TVS diodes to GND on each input for protection. They are quite cheap and can be easily wired

vostrenkov avatar Jun 27 '21 18:06 vostrenkov

Hi, so I need 32 of these ICs ?

speedbird5 avatar Jun 27 '21 23:06 speedbird5

I think it is better to use something like this on your pins: https://www2.mouser.com/Circuit-Protection/ESD-Suppressors-TVS-Diodes/_/N-jy72?P=1yh8kcrZ1yh8nq3Z1yh8nq2Z1yh8nr5Z1y83ebpZ1yh8o3m

Unfortunately I'm changing some pinout for Controller Lite so it is still not available for purchasing

vostrenkov avatar Jun 28 '21 15:06 vostrenkov