# Sending to port Failed

**URL:** <https://community.inventables.com/t/sending-to-port-failed/39007>\
**Category:** Troubleshooting\
**Created:** [June 21, 2017, 11:40am UTC](https://community.inventables.com/t/sending-to-port-failed/39007 "2017-06-21T11:40:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julo](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Julo](https://community.inventables.com/u/Julo)\
**Post date:** [June 21, 2017, 11:40am UTC](https://community.inventables.com/t/sending-to-port-failed/39007/1 "2017-06-21T11:40:59Z")

</div>

I have made my little x-carve machine based on Arduino, CNC Shield and GRBL 0.9j.  
All works fine, moving is ok, communication between PC (UGS and Easel) is ok. Problem  
is only when I switch on my spindler. I have used 12-24V Lathe Press Motor with Drill Chuck.  
When I switch on this motor, Easel lost connection with Arduino. In Device Manager is port OK,  
but in programs (Easel and UGS) is this not OK. In UGS i became message “Sending to port  
failed.” Can you help me with this problem?  
Thanks, Julo

---

<div class="post-metadata">

**Author:** ![AlanDavis](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/alandavis/32/4710_2.png) [@AlanDavis](https://community.inventables.com/u/AlanDavis)\
**Post date:** [June 21, 2017, 12:16pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/2 "2017-06-21T12:16:29Z")

</div>

Probability is pulling too much power.  
You can use external 24VDC power supply and control that spindle with the relay connected to Arduino. Just like connected Dewalt.

---

<div class="post-metadata">

**Author:** ![HaldorLonningdal](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/haldorlonningdal/32/72377_2.png) [@HaldorLonningdal](https://community.inventables.com/u/HaldorLonningdal)\
**Post date:** [June 21, 2017, 12:20pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/4 "2017-06-21T12:20:28Z")

</div>

Feeding the Arduino board seperate power (7-12V) may also help.

You have either a power surge at spindle start that make the Arduino USB connection droop out, and/or electrical noise from your spindle causing the same.

---

<div class="post-metadata">

**Author:** ![Julo](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Julo](https://community.inventables.com/u/Julo)\
**Post date:** [June 21, 2017, 12:38pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/5 "2017-06-21T12:38:38Z")

</div>

My spindle is not connected with CNC shield, for spindle I have other power supply.

---

<div class="post-metadata">

**Author:** ![Julo](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Julo](https://community.inventables.com/u/Julo)\
**Post date:** [June 21, 2017, 12:40pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/6 "2017-06-21T12:40:18Z")

</div>

What is “proper grounding techniques”? Is there some picture, where can I found this?

---

<div class="post-metadata">

**Author:** ![HaldorLonningdal](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/haldorlonningdal/32/72377_2.png) [@HaldorLonningdal](https://community.inventables.com/u/HaldorLonningdal)\
**Post date:** [June 21, 2017, 12:56pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/7 "2017-06-21T12:56:45Z")

</div>

> [@Julo](#):
>
> What is “proper grounding techniques”? Is there some picture, where can I found this?

It is very generic, as your problem is of a generic character.

You have electrical noise that cause problems, you may try:  
Feed external power to your Arduino (a 9V battery may suffice for testing)  
Keep power wires and signal wires seperate from each other (increase distance)  
Keep power wires/stepper motor wires away from USB cable.  
Use a USB cable with wire mesh shield / ferrit chokes (to surpress noise picked up by the cable)

---

<div class="post-metadata">

**Author:** ![PhantommFangs](https://yyz1.discourse-cdn.com/flex009/user_avatar/community.inventables.com/phantommfangs/32/87296_2.png) [@PhantommFangs](https://community.inventables.com/u/PhantommFangs)\
**Post date:** [June 21, 2017, 7:16pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/8 "2017-06-21T19:16:36Z")

</div>

Edit: Deleted brain dead reply. Did not comprehend.

---

<div class="post-metadata">

**Author:** ![MaheshJoshi](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@MaheshJoshi](https://community.inventables.com/u/MaheshJoshi)\
**Post date:** [February 26, 2018, 11:20am UTC](https://community.inventables.com/t/sending-to-port-failed/39007/9 "2018-02-26T11:20:50Z")

</div>

Error message :sending to port failed ,while streaming .nc file to arduino  
Sys.Arduino uno ,cnc Shield v3,GRBL 3.6.1,UGCS 2 stepper driver Drv 8825

---

<div class="post-metadata">

**Author:** ![Asad](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@Asad](https://community.inventables.com/u/Asad)\
**Post date:** [August 4, 2018, 7:35pm UTC](https://community.inventables.com/t/sending-to-port-failed/39007/10 "2018-08-04T19:35:34Z")

</div>

Hi Dear Julo

I have exactly the your same problem. I make a CNC about 4 months ago and I used of Arduino and a spindle water cool that it run by an inverter generator (that I have connected both with a 4-string wire without electromagnetic protection because I have read, do not have to use of the electromagnetic protective wire to connect the inverter and the three-phase electromotor ) and I used of my CNC for 4 months with out any problem but now, when I run inverter to turn on spindle, in GRBL was writing “sending to port filed”. I didn’t change any of device in my CNC

If you find the solve of problem, please help me to solve it!

Thanks and regards  
Asad
