<p>If the trouble was just a short between 5 V and ground, the board probably would restart whenever you pushed the button, with all kind of power sources.</p>
<p>The fact that the Arduino restarts only when powered from RAMPS makes me wonder another cause for this problem.</p>
<p>It's well known that most of Arduino clones don't have a good voltage regulator onboard. This causes trouble when you power Arduino from RAMPS, because RAMPS sends 12 V to Arduino through Arduino's Vin pin, and this 12 V goes to Arduino's voltage regulator, which should reduce it to the 5 V used by ATMega MCU.</p>
<p>The question is, probably the Arduino's onboard voltage is running almost at its capacity and, when you press the button, the extra processing load or the redrawing of the display makes Arduino reset.</p>
<p>The solution would be disconnect diode D1 in RAMPS, and power Arduino from USB, or feeding 5V directly to Arduino's 5 V pin (not Vin).</p>
<p>A third option (more complex) would be feed about 7 V to Arduino barrel power-connector. This lower voltage would reduce the task of Arduino's onboard regulator. My 3D-printer uses an Arduino clone, but, as I discovered about this problem before building it, I've never powered it from RAMPS. I dessoldered D1 on RAMPS and, since the first day, Arduino was powered from USB, or from a DC-DC buck converter that reduces 12 V to 7.2 V.</p>

CC BY-SA 4.0
2020-07-30T02:30:38.390Z
2020-08-29T04:44:47.240Z
2020-08-29T04:44:47.240Z
mguima
<p>You are right! This thread help me solve a 1 year old problem. I had to buy a new LCD(different model) because I had the same problem. Every time I press down the controller button the system resets. Your clue about it having something to do with the speaker helped solve this mystery.</p>
<p>I had to comment out #define SPEAKER and it is now working.</p>
<p>This is a strange bug that only occurs with a the SKR-E3mini V2 and the most basic 12864 LCD AND Marlin 2.1.1. I have 2 printers so I can pretty much confirm in my case it only occurs in this particular configuration.</p>

CC BY-SA 4.0
2023-01-07T10:30:51.167Z
2023-01-07T10:30:51.167Z
3dprinterRL
<p>I am new here and also new for the 3D printers world.  I have built a 3D printer myself. Everything seems okay, but, when I install Marlin firmware I can't use the printer.</p>
<p>While my printer is connected to my power supply (12 V; 30 A) and when I push the button on the screen for selecting the menu items, Marlin is restarting.</p>
<p>But, when I connect my computer with USB and power supply together, Its working fine</p>
<p>I am using RobotDyn Arduino Mega 2560, RobotDyn Graphic LCD controller, RobotDyn DRV8825</p>
<p>Any help will be highly appreciated.</p>

CC BY-SA 4.0
2020-07-07T12:59:16.523Z
Hi welcome to 3DPrinting.SE! To be clear, you aren't pushing the reset button but pushing the rotating button?
0scar
CC BY-SA 4.0
2020-07-07T13:39:56.410Z
Yes, I am pushing the rotating button for entering the menu.
turguttak
CC BY-SA 4.0
2020-07-07T13:49:20.620Z
Sorry, had to ask :-) Indeed a strange issue, I haven't seen that before!
0scar
CC BY-SA 4.0
2020-07-07T13:52:25.310Z
Yes. Its strange. When I install repetier its work perfectly but with marlin I have this problem.
turguttak
CC BY-SA 4.0
2020-07-07T15:39:46.053Z
Normally the firmware beeps the speaker when you press buttons. Perhaps it's defective and shorts, drawing too much power and resetting the board.
R.. GitHub STOP HELPING ICE
CC BY-SA 4.0
2020-07-09T14:59:31.347Z
@R..GitHubSTOPHELPINGICE, that is what I was thinking as well. The description sounds like a short to me as well.
Dr. Mantis Tobbogan
<marlin><diy-3d-printer><reprap><arduino-mega-2650>
Marlin keeps restarting when I push the LCD controller button
turguttak
# Marlin keeps restarting when I push the LCD controller button

(Asked by: username_0 on 2020-07-07)

I am new here and also new for the 3D printers world. I have built a 3D printer myself. Everything seems okay, but, when I install Marlin firmware I can't use the printer.

While my printer is connected to my power supply (12 V; 30 A) and when I push the button on the screen for selecting the menu items, Marlin is restarting.

But, when I connect my computer with USB and power supply together, Its working fine

I am using RobotDyn Arduino Mega 2560, RobotDyn Graphic LCD controller, RobotDyn DRV8825

Any help will be highly appreciated.

**Tags:** marlin, diy-3d-printer, reprap, arduino-mega-2650
> **Comments:**
> **username_1**: Hi welcome to 3DPrinting.SE! To be clear, you aren't pushing the reset button but pushing the rotating button?  
> **username_0**: Yes, I am pushing the rotating button for entering the menu.  
> **username_1**: Sorry, had to ask :-) Indeed a strange issue, I haven't seen that before!  
> **username_0**: Yes. Its strange. When I install repetier its work perfectly but with marlin I have this problem.  
> **username_2**: Normally the firmware beeps the speaker when you press buttons. Perhaps it's defective and shorts, drawing too much power and resetting the board.  
> **username_3**: @R..GitHubSTOPHELPINGICE, that is what I was thinking as well. The description sounds like a short to me as well.  

---

## 2 answers

### Answer by username_4 on 2020-07-30. Score: 2

If the trouble was just a short between 5 V and ground, the board probably would restart whenever you pushed the button, with all kind of power sources.

The fact that the Arduino restarts only when powered from RAMPS makes me wonder another cause for this problem.

It's well known that most of Arduino clones don't have a good voltage regulator onboard. This causes trouble when you power Arduino from RAMPS, because RAMPS sends 12 V to Arduino through Arduino's Vin pin, and this 12 V goes to Arduino's voltage regulator, which should reduce it to the 5 V used by ATMega MCU.

The question is, probably the Arduino's onboard voltage is running almost at its capacity and, when you press the button, the extra processing load or the redrawing of the display makes Arduino reset.

The solution would be disconnect diode D1 in RAMPS, and power Arduino from USB, or feeding 5V directly to Arduino's 5 V pin (not Vin).

A third option (more complex) would be feed about 7 V to Arduino barrel power-connector. This lower voltage would reduce the task of Arduino's onboard regulator. My 3D-printer uses an Arduino clone, but, as I discovered about this problem before building it, I've never powered it from RAMPS. I dessoldered D1 on RAMPS and, since the first day, Arduino was powered from USB, or from a DC-DC buck converter that reduces 12 V to 7.2 V.


---

### Answer by username_5 on 2023-01-07. Score: 0

You are right! This thread help me solve a 1 year old problem. I had to buy a new LCD(different model) because I had the same problem. Every time I press down the controller button the system resets. Your clue about it having something to do with the speaker helped solve this mystery.

I had to comment out #define SPEAKER and it is now working.

This is a strange bug that only occurs with a the SKR-E3mini V2 and the most basic 12864 LCD AND Marlin 2.1.1. I have 2 printers so I can pretty much confirm in my case it only occurs in this particular configuration.


---

