<p>Finally, I found the solution after frying up a Mega board.  The problem is with the Mega board. <strong>Part of the board is not functioning properly</strong> or <strong>not connecting with the RAMPS 1.4 shield properly</strong>. So I tried with a new Arduino Mega board and it worked. 
Also removing the D1 diode is the solution for the voltage regulator overheating on Arduino mega board as mentioned in question "<a href="https://3dprinting.stackexchange.com/questions/3278/arduino-mega-voltage-regulator-overheats-with-ramps-board?rq=1">Arduino Mega voltage regulator overheats with RAMPS board</a>".</p>

CC BY-SA 4.0
2019-05-09T14:08:19.137Z
2019-05-09T14:47:03.630Z
2019-05-09T14:47:03.630Z
Avishka Dambawinna
<p>I'm assembling a 3D printer with the RAMPS 1.4 shield (board) and an Arduino Mega. I have assembled the structure and the electronics (set drivers, placed the jumpers, connected stepper motors, etc.) and have uploaded Marlin firmware (configuring: thermistor, etc.) on to the Arduino Mega.</p>

<p>At first I tested my printer without end stops and at that time it worked perfectly.</p>

<p>Today I added three end stops and tested again. First it worked fine but after couple of minutes Pronterface gave this error:</p>

<pre><code>&gt; Connecting...
Traceback (most recent call last):
  File "printrun\pronterface.pyc", line 1053, in connect
  File "printrun\pronsole.pyc", line 720, in connect_to_printer
  File "printrun\printcore.pyc", line 46, in inner
  File "printrun\printcore.pyc", line 197, in connect
  File "serial\serialwin32.pyc", line 31, in __init__
  File "serial\serialutil.pyc", line 261, in __init__
  File "serial\serialwin32.pyc", line 71, in open
  File "serial\serialwin32.pyc", line 186, in _reconfigurePort
**ValueError: Cannot configure port, some setting was wrong. Original message: [Error 31] A device attached to the system is not functioning.**
</code></pre>

<p>I tried removing end stops, re-wiring, removing all cables from the RAMPS shield except power cables. Still it gives that error. Although Pronterface connects to the Arduino board when the RAMPS shield isn't powered up. Also the Arduino's regulator is heating up.</p>

<p>Do I need to buy a new RAMPS shield? </p>

CC BY-SA 4.0
2019-04-25T01:07:41.330Z
It sounds like the USB to Serial port is either resetting or somehow loosing its configuration. Can you try changing the baud rate settings on the connection and trying to connect again.
Leland Wallace
CC BY-SA 4.0
2019-04-25T05:05:38.183Z
I have tried with all baud rates. Still the error is there. I have tried to connect with the printer using different computer but it didn't work either.
Avishka Dambawinna
CC BY-SA 4.0
2019-04-27T14:50:09.627Z
Today I tried to connect with a new RAMPS 1.4 shield it didn't work either but it over heated the voltage regulator and the main chip of my mega board. Now I'm getting time out error with the mega.
Avishka Dambawinna
<ramps-1.4><pronterface>
Pronterface not connecting ERROR: A device attached to the system is not functioning
Avishka Dambawinna
# Pronterface not connecting ERROR: A device attached to the system is not functioning

(Asked by: username_0 on 2019-04-24)

I'm assembling a 3D printer with the RAMPS 1.4 shield (board) and an Arduino Mega. I have assembled the structure and the electronics (set drivers, placed the jumpers, connected stepper motors, etc.) and have uploaded Marlin firmware (configuring: thermistor, etc.) on to the Arduino Mega.
At first I tested my printer without end stops and at that time it worked perfectly.
Today I added three end stops and tested again. First it worked fine but after couple of minutes Pronterface gave this error:
> Connecting...
Traceback (most recent call last):
  File "printrun\pronterface.pyc", line 1053, in connect
  File "printrun\pronsole.pyc", line 720, in connect_to_printer
  File "printrun\printcore.pyc", line 46, in inner
  File "printrun\printcore.pyc", line 197, in connect
  File "serial\serialwin32.pyc", line 31, in __init__
  File "serial\serialutil.pyc", line 261, in __init__
  File "serial\serialwin32.pyc", line 71, in open
  File "serial\serialwin32.pyc", line 186, in _reconfigurePort
**ValueError: Cannot configure port, some setting was wrong. Original message: [Error 31] A device attached to the system is not functioning.**

I tried removing end stops, re-wiring, removing all cables from the RAMPS shield except power cables. Still it gives that error. Although Pronterface connects to the Arduino board when the RAMPS shield isn't powered up. Also the Arduino's regulator is heating up.
Do I need to buy a new RAMPS shield?

**Tags:** ramps-1.4, pronterface
> **Comments:**
> **username_1**: It sounds like the USB to Serial port is either resetting or somehow loosing its configuration. Can you try changing the baud rate settings on the connection and trying to connect again.  
> **username_0**: I have tried with all baud rates. Still the error is there. I have tried to connect with the printer using different computer but it didn't work either.  
> **username_0**: Today I tried to connect with a new RAMPS 1.4 shield it didn't work either but it over heated the voltage regulator and the main chip of my mega board. Now I'm getting time out error with the mega.  

---

## 1 answers

### Answer by username_0 on 2019-05-09. Score: 1 | Accepted answer

Finally, I found the solution after frying up a Mega board. The problem is with the Mega board. **Part of the board is not functioning properly** or **not connecting with the RAMPS 1.4 shield properly**. So I tried with a new Arduino Mega board and it worked.
Also removing the D1 diode is the solution for the voltage regulator overheating on Arduino mega board as mentioned in question "[Arduino Mega voltage regulator overheats with RAMPS board](https://3dprinting.stackexchange.com/questions/3278/arduino-mega-voltage-regulator-overheats-with-ramps-board?rq=1)".


---

