I've an Arduino Leonardo with a sketch to beep a sound when the door of the fridge is open without waiting for a couple of seconds since the last moment the door was closed. The sketch and hardware has been running OK since about 2 years without problems.
This morning, the beeper started to beep without a real reason and after testing the Arduino Leonardo isolated from the rest of the hardware, when I plug it in the USB, all 4 lights become active and no USB serial port is visible. Also, I tried different procedures to start it in bootloader mode (double click on reset in less than a second after plug-in, or long press within the first 8 seconds, etc...) with no luck.
It looks to me as if the cpu clock were not working at all so neither the sketch nor the internal logic is even starting.
Thank you for your comment, the answer is no.
I don't exactly know how to check if the board can be recovered or if it is completely dead. That's why I'm asking.
Looks like toast, but at least you're sure.
Now, why did it happen?
These things are hard to kill if you follow the rules.
Post a schematic, even hand drawn, and your code. Perhaps the problem can be spotted and prevent the loss of another board.
Also, surely an Uno or the like is cheaper and capable of monitoring a door for you.
The board has been working two years without any issue. Also, the board had a MAX7219 controller that died too.
The MAX8279 was powered from the 5v output of the Leonardo board. The Leonardo board was powered from a 220v ac -> 12v dc power supply connected to the same plug the fridge is connected (in fact, I'm obtaining power from a contact inside the fridge panel on top) so I suspect the problem was related with the 12v to 5v converter or a peak voltage of 6v or something like that. In the meantime I'm searching for a 220v ac -> 9v dc.
In any case, I wanted to develop the same idea but using a zigbee board rather than an arduido so the board can act as a zigbee switch from which the domotic system at home can record when the fridge was opened and how long was it... so in a couple of months, the board will be replaced.