# Rpi Serial communtication to Marlin on Arduino Mega

**URL:** <https://discourse.nodered.org/t/rpi-serial-communtication-to-marlin-on-arduino-mega/66107>\
**Category:** General\
**Created:** [6 August 2022 13:55 UTC](https://discourse.nodered.org/t/rpi-serial-communtication-to-marlin-on-arduino-mega/66107 "2022-08-06T13:55:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjamesparsonsjr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sjamesparsonsjr/32/58228_2.png) [@sjamesparsonsjr](https://discourse.nodered.org/u/sjamesparsonsjr)\
**Post date:** [6 August 2022 13:55 UTC](https://discourse.nodered.org/t/rpi-serial-communtication-to-marlin-on-arduino-mega/66107/1 "2022-08-06T13:55:38Z")

</div>

Hello, Node-Red community,

I'm using Node-Red on an RPi to communicate with Stepper Motors and End Stops through Arduino Mega running Marlin. For anyone attempting the same add `\n\r\` to the end of the gCode.

**Does anyone know why the timeout error is on the node?** It still behaves correctly, it just reads timeout.

![timeout](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/2/d2fcb2bd70fbf44fd4f48bcbb91419749f205af2.jpeg)

`[{ "id": "88eff803339c0f96", "type": "inject", "z": "679e90e647c79722", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" }], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "G0 X10 Y10 Z10\\n\\r", "payloadType": "str", "x": 290, "y": 1720, "wires": [[ "6e8780bb7a79ce2a", "4e4aeccfc40c22ed"] ] }, { "id": "6e8780bb7a79ce2a", "type": "serial request", "z": "679e90e647c79722", "name": "", "serial": "ddf83384608c514e", "x": 620, "y": 1780, "wires": [[ "4e4aeccfc40c22ed"] ] }, { "id": "4e4aeccfc40c22ed", "type": "debug", "z": "679e90e647c79722", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 830, "y": 1720, "wires": [] }, { "id": "4ac23ad83ed641d4", "type": "inject", "z": "679e90e647c79722", "name": "", "props": [{ "p": "payload" }, { "p": "topic", "vt": "str" }], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "G0 X0 Y0 Z0\\n\\r", "payloadType": "str", "x": 280, "y": 1780, "wires": [[ "6e8780bb7a79ce2a", "4e4aeccfc40c22ed"] ] }, { "id": "a65d077d480c0e52", "type": "comment", "z": "679e90e647c79722", "name": "Moves stepper x y and z +-10 steps", "info": "", "x": 160, "y": 1820, "wires": [] }, { "id": "ddf83384608c514e", "type": "serial-port", "serialport": "/dev/ttyACM0", "serialbaud": "9600", "databits": "8", "parity": "none", "stopbits": "1", "waitfor": "", "dtr": "none", "rts": "none", "cts": "none", "dsr": "none", "newline": "\\r", "bin": "false", "out": "char", "addchar": "\\n\\r", "responsetimeout": "0" } ]`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 October 2022 13:56 UTC](https://discourse.nodered.org/t/rpi-serial-communtication-to-marlin-on-arduino-mega/66107/2 "2022-10-05T13:56:36Z")

</div>

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