ESP32 Tennis score Board with 2 64x32 Led Matrix P4 boards

Tennis score board ESP32 with 2 x 64x32 Led Matrix P4 boards score backup in flash memory
see also on github
https://github.com/thieu-b55/ESP32-Tennis-score-board
greetings
thieu
https://github.com/thieu-b55/ESP32-Tennis-score-board
greetings
thieu
Discussie (2 opmerking(en))
thieu-b55 2 jaar geleden
Tennis score board with back-up in flash memory.
Build with a ESP32 WROOM Devkit and a ATTINY45. ATTINY45 is used as interface between push buttons and Interrupt routine in ESP32. In a ESP32 interrupts can be disabled but I have never found how I can clear the interrupt flag before enabling the interrupt again. With a ATTINY45 I'm sure I only get 1 interrupt signal.
Important note:
You need some soldering skills to finish this project
tennis_ok_volledig_backup.ino (35kb)
drukknoppen.png (68kb)
voeding.png (97kb)
achter-aanzicht.png (211kb)
achterkant-print.png (299kb)
printconnector.png (247kb)
schermafdruk-2022-09-02-22-01-51.png (94kb)
Mathias_Claussen(Elektor) 2 jaar geleden
for the buttons an the ESP32 that sounds a little stange that you get more IRQs than you like. It ready like you to knwo more about having issues with debouncing the inputs. Can you give some more details?
Best Regards
Mathias Claußen
thieu-b55 2 jaar geleden
this was not the first time I got problems with having more than 1 interrupt even with disabling the interrupt as first instruction in the interrupt subroutine.
My guess is that disabling a interrupt doesn't prevent setting the interrupt flag and I don't find a way to clear the interrupt flag on the internet. Maybe a more experienced ESP32 hardware genius can bring some answers.
I had this with a rotary switch which I solved with a 7474 (flip-flop). Here I used a ATTINY45 that gives a False output for 2 seconds at pushing the button.
greetings,
thieu
Mathias_Claussen(Elektor) 2 jaar geleden
i woudl assime you have an edge sensitiv interrupt set, that will be bound to onw core of the ESP32?
The buttton is debounced with an small capacitor? And you are working with the Arduino Framework for the ESP32?
There are some things that can happen. First if you don't use a small capacitor with your swith it will bounce and the ESP32 will do what he is supposed to do, generate multiple interrupts. A sution woudl be to add 100nF over the switch. This shall reduce the liklyhood to have multiple irqs per button press.
What else can be done: Generate timestamps and compare the delta against a set threshold. This, at least for buttons, works quite well (with some side effects)
Best Regards
Mathias Claußen
thieu-b55 2 jaar geleden
thanks for the advise. I'm going to try them.
greetings,
thieu
Content Director, Elektor 2 jaar geleden