Hi there!
Chiara from Italy here.
I've been working on my first Arduino project and after having stumbled on many beginners issue I'm now left with one. Just on, but an annoying one.
I think it has to do with the EEPROM - just cause it (usually) solves it I clear the EEPROM. But then it comes back.
So here is the project. It's a "movie prompter" with a small movie database.
It involves a 2x16 LCD screen, 4 buttons, a potentiometer (to adjust creen backlight) and a power switch.
By pressing the buttons, movie titles appear on the screen. There are 4 buttons for 4 categories, 15 movies in each category:
button1 - comic movies
button2 - non-comic movies
button3 - Italian cult movies
button4 - documentaries
I use the EEPROM so that after turning off and on the Arduino it would remember where in the list it was and not start over.
It work perfect except for button3. This button sometimes work and sometimes doesn't (I have the feeling it got progressively worse).
I'd exclude bad soldering (although it IS quite shit soldered, I didn't have any pickling paste with me when I did it...) just because if I clear the EEPROM and then reprogram the Arduino, it works fine for a while. But then after a few clicks the issue comes back. <sometime just turning off/on the Arduino settles it, but it's rare. And lately even the clear EEPROM trick don't always work...
Would you have any suggestion on what to try or change?
I'm out of ideas...
My code here
https://pastebin.com/VPTq6VGXChiara
ps: I'm sorry I don't have photos of the circuit (can't access it without de-soldering) nor the schematic.
All the 4 buttons are places in the same way in the circuit, and the other 3 work just fine.
pps: it's not a problem of the button itself, cause it I close the circuit with a piace of metal (shorting the legs) nothing changes