Is my Arduino Leonardo dead - bis?

Hello everybody,

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.

Could it be the Leonardo is dead?

Thank you for any help!

Yes!

Sounds like it is, do you have the appropriate test equipment to check it our or is it better to buy another one.

Have you tried an ICSP connection?

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.

Hi, Thanks!. I'm going to investigate what an ICSP connection is.
Regards

Probably dead, but worth a try

I've just purchased an ICSP programmer for testing. It will arrive on Friday.

Thank you for your suggestion

Do you have any other Arduino handy?
Another Arduino, even an Uno can act as your ICSP programmer.

That is a good idea! I did't know that was possible but makes absolute sense.

I follow instructions found here:

And managed to connect one functional Arduino to the other that seems to be dead, see picture.

After that, I tried to burn the bootloader to the second leonardo with this result:


avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Users/{my user name}/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/{my user name}/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem142301
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000 (retrying)

Error quemando bootloader
Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


It looks like it is not possible to read the device signature of the second arduino so it should be dead.

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.

Now, why did it happen?

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.

Regards
Ignacio

I wonder if that's an issue. Maybe a user more experienced than I could tell you if the compressor might have caused an issue.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.