# New arduino stops working overnight

**URL:** <https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996>\
**Category:** Mega 2560\
**Created:** [December 29, 2024, 7:02pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996 "2024-12-29T19:02:23Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 29, 2024, 7:02pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/1 "2024-12-29T19:02:23Z")

</div>

Hi,

I recently got an Arduino Mega 2560 for Christmas. It's dark blue, so I assume it is a clone. On the same day, December 24th, I started trying to make some projects and continued until today. Yesterday was the last time it worked. It was perfectly fine, but out of nowhere, it stopped working. I don't know what the problem is. Maybe when I was going to sleep, I disconnected the additional plug, not the USB, but the one for wall adapters. There was a 9V battery adapter attached. Now, the Arduino IDE can't detect any signs of the Arduino Mega. I tried everything and even ordered an Arduino Nano to rewrite the firmware.

Any ideas on how I could make it work properly again? Maybe I am creating a discussion for a topic that is already here, but I couldn't really find it.

Thanks to everyone who will share some tips or solutions to make it work again.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [December 29, 2024, 7:09pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/2 "2024-12-29T19:09:53Z")

</div>

> [@lubajz](#):
>
> Any ideas on how I could make it work properly

Not really, as we don’t have enough information about your setup. What was running when it failed? Please post the code you were using, and we’ll take a look.

It could also be a hardware issue. To help diagnose the problem, please provide:

1. An annotated schematic showing all hardware components, including resistors, capacitors, etc.
2. Links to the technical documentation for the hardware devices.
3. Details about any LEDs that are on or blinking, labeled clearly (e.g., Tx, Rx, etc.).

With this information, we’ll be better equipped to assist you.

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 29, 2024, 7:17pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/3 "2024-12-29T19:17:56Z")

</div>

i had a last code (or i have, idk if it was deleted somehow), that was turning on a relay from ir receiver:

```arduino
#include <IRremote.h>

const int RECV_PIN = 11;
const int RELAY_PIN = 7;

void setup() {
  Serial.begin(9600);
  IrReceiver.begin(RECV_PIN, ENABLE_LED_FEEDBACK); pinMode(RELAY_PIN, OUTPUT);
  digitalWrite(RELAY_PIN, LOW); 
}

void loop() {
  static unsigned long lastReceiveTime = 0;

  if (IrReceiver.decode()) {
    Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX); 
    
    if (IrReceiver.decodedIRData.command == 0x43 && IrReceiver.decodedIRData.address == 0x0) {
      digitalWrite(RELAY_PIN, HIGH); 
      lastReceiveTime = millis(); 
    }

    if (IrReceiver.decodedIRData.decodedRawData == 0xFFFFFFFF) {
      lastReceiveTime = millis();
    }

    IrReceiver.resume();
  }

   if (millis() - lastReceiveTime > 107) {
    digitalWrite(RELAY_PIN, LOW); 
  }
}

```

i'il draw a schematic

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [December 29, 2024, 7:23pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/4 "2024-12-29T19:23:16Z")

</div>

> [@lubajz](#):
>
> i'il draw a schematic

Great that should get you an accurate answer.

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 29, 2024, 7:37pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/5 "2024-12-29T19:37:06Z")

</div>

![cerpadlo](https://europe1.discourse-cdn.com/arduino/original/4X/e/9/d/e9ddec4b4aa6cd16b8fd17015baae109845bf9a8.png)  
I had this connection, on time, when it last worked. On the end of the yesterday, i plugged of the 9v battery, which was the power supply for the board. Today, with same connection, i plugged the board back to pc, and pc hasn't detected any board, or even in device manager, nothing.

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 29, 2024, 7:38pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/6 "2024-12-29T19:38:28Z")

</div>

and when i try to connect the board to pc, pc wont play any sound of plugged device

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [December 29, 2024, 10:40pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/7 "2024-12-29T22:40:41Z")

</div>

Hi @lubajz. It is possible for a short or external circuitry connected to the Arduino board to cause it to no longer produce a port.

Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.

If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:

1. Disconnect the USB cable of the Arduino board from your computer.
2. Disconnect any shields, modules, external circuitry, etc. from your board.
3. Connect the Arduino board to your computer with a USB cable.

Now check to see whether a port is shown for the board in Arduino IDE's **Tools \> Port** menu. If it does, you know the problem was caused by the external circuitry. You can then focus your attention on identifying the specific problem with the circuit and resolving it.

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [December 30, 2024, 1:26am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/8 "2024-12-30T01:26:45Z")

</div>

> [@lubajz](#):
>
> I disconnected the additional plug, not the USB,

Should not connect the USB while supplying external power unless both potentials are the same.

---

<div class="post-metadata">

**Author:** ![JCA34F](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jca34f/32/340148_2.png) [@JCA34F](https://forum.arduino.cc/u/JCA34F)\
**Post date:** [December 30, 2024, 2:05am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/9 "2024-12-30T02:05:16Z")

</div>

> [@lubajz](#):
>
> I disconnected the additional plug, not the USB, but the one for wall adapters. There was a 9V battery adapter attached.

What was attached to the 9 volt battery adapter?

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 30, 2024, 7:37am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/10 "2024-12-30T07:37:07Z")

</div>

my computer doesn't recognize the arduino at all, not even in device manager, nowhere

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 30, 2024, 7:39am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/11 "2024-12-30T07:39:09Z")

</div>

oh, i didn't know that, i had connected 9v battery and usb cable, is there any option to fix this, there is burned some fuse, or diode, something?

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 30, 2024, 7:39am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/12 "2024-12-30T07:39:44Z")

</div>

9v battery

---

<div class="post-metadata">

**Author:** ![dhruv45](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@dhruv45](https://forum.arduino.cc/u/dhruv45)\
**Post date:** [December 30, 2024, 7:57am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/13 "2024-12-30T07:57:54Z")

</div>

if the arduino cant detect any signs of ur arduino mega you can do this:

1. the 9v battery has fried your arduino mega but this possibilty has a low chance.
2. you can burn the bootloader and if the led blink then there is probably not any problem with your hardware.
3. check if there is this error 'the system cannot find the file specified'.

---

<div class="post-metadata">

**Author:** ![lubajz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lubajz/32/1145827_2.png) [@lubajz](https://forum.arduino.cc/u/lubajz)\
**Post date:** [December 30, 2024, 8:14am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/14 "2024-12-30T08:14:26Z")

</div>

I haven't tried flashing the bootloader yet, I'm still waiting for the arduino nano to arrive so I can try it

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [December 30, 2024, 1:44pm UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/15 "2024-12-30T13:44:15Z")

</div>

> [@lubajz](#):
>
> something?

Verify your computer USB works with anything that creates a system chime.  
Verify your USB cable works.  
Test your "bad" board with the good USB cable in "this" computer and another computer - listen for system chime.

What do you find?

---

<div class="post-metadata">

**Author:** ![the\_com3\_port](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/the_com3_port/32/1244823_2.png) [@the\_com3\_port](https://forum.arduino.cc/u/the_com3_port)\
**Post date:** [January 4, 2025, 7:36am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/16 "2025-01-04T07:36:01Z")

</div>

Did you plug it in the barrel jack or VIN port _Correctly_? And you shouldn't connect barrel jack or VIN to power supply while usb is in. If it stop working, try disconnecting everything and connect it, if it's not working, you either broke the usb port (PC or mega) or cable. And is your communication chip CH340 (rectangle) or ATMEGA8u-16u(square)? If it's rectangle it means the 340 chip might be broken here, if it's square you might've broken everything. Does your Arduino L led blink when you press reset? I had an original Uno break on me (the atmega8u-16u) but the 328(The main chip) was fine, if it's an original or a clone with atmega8-u or 16-u and it has one extra icsp looking port which is the programmer port, you _miight_ get away with Serial or FTDI programmer

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 3, 2025, 7:36am UTC](https://forum.arduino.cc/t/new-arduino-stops-working-overnight/1336996/17 "2025-07-03T07:36:31Z")

</div>

Closed on July 3, 2025, 7:36am UTC

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