<p>I was able to resolve this issue: </p>

<ol>
<li>I moved to Marlin 1.1.9 (the final release of the 1.1.x versions).</li>
<li>I made a <a href="https://github.com/josea/Marlin/tree/josea-printrbot" rel="nofollow noreferrer">fork</a>, for those who would like to see the changes. Also summarized below.</li>
<li>The RX1 and TX1 pins are well identified in the question. I connected those directly to the HC-06 bluetooth module (using a voltage divider for the RX pin in the bluetooth, as it is a 3.3 V logic module).</li>
</ol>

<p><strong>Changes in code:</strong> </p>

<p>Marlin/Conditionals.LCD.h: commented out: </p>

<pre><code>// this line conflicted with the bluetooth/serial1 options
// #define USE_MARLINSERIAL !(defined(__AVR__) &amp;&amp; defined(USBCON))
</code></pre>

<p>The rest are the configuration options already provided by Marlin in Marlin.Configuration.h: </p>

<pre><code>define SERIAL_PORT 1
define BAUDRATE 115200  // Note: this baudrate MUST match the one set in the bluetooth module. That's done using the AT commands. There is plenty of information on how to do that. 
define BLUETOOTH
</code></pre>

<p>As a result of these changes I am able to print with my PrintrBot Simple 2014 (Printrboard Rev. D) with Bluetooth over a distance of ~3.5mts, behind a wall. I haven't tested it exhaustely, but it does print.  </p>

CC BY-SA 4.0
2019-02-24T01:58:38.527Z
2019-02-24T01:58:38.527Z
rufo
<p>I am trying to make Marlin use the RX1 and TX1 pins that are in the EXP1 connection. I am connecting those pins to the TX, RX of an Arduino.</p>

<p>The Configuration.h file has a SERIAL_PORT define, normally configured to be 0, but supposedly changeable. </p>

<p><strong>What should be changed in Marlin to make it used the Serial1 port (if possible at all)?</strong> I am using the latest code provided in  <a href="https://github.com/Printrbot/Marlin" rel="nofollow noreferrer">Printrbot's Marlin repository</a></p>

<p>From the Configuration.h file:</p>

<pre><code>// SERIAL_PORT selects which serial port should be used for communication with the host.
// This allows the connection of wireless adapters (for instance) to non-default port pins.
// Serial port 0 is still used by the Arduino bootloader regardless of this setting.
#define SERIAL_PORT 0
//#define SERIAL_PORT 1

// This determines the communication speed of the printer
// This determines the communication speed of the printer
#define BAUDRATE 250000
//#define BAUDRATE 9600
</code></pre>

<p><a href="https://i.sstatic.net/6za30.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6za30.png" alt="Printrboard"></a></p>

<marlin><firmware><electronics>
Printrboard Rev. D - RX1 and TX1 (second serial port) / Marlin
rufo
# Printrboard Rev. D - RX1 and TX1 (second serial port) / Marlin

(Asked by: username_0 on 2019-02-22)

I am trying to make Marlin use the RX1 and TX1 pins that are in the EXP1 connection. I am connecting those pins to the TX, RX of an Arduino.

The Configuration.h file has a SERIAL\_PORT define, normally configured to be 0, but supposedly changeable.

**What should be changed in Marlin to make it used the Serial1 port (if possible at all)?** I am using the latest code provided in [Printrbot's Marlin repository](https://github.com/Printrbot/Marlin)

From the Configuration.h file:

```
// SERIAL_PORT selects which serial port should be used for communication with the host.
// This allows the connection of wireless adapters (for instance) to non-default port pins.
// Serial port 0 is still used by the Arduino bootloader regardless of this setting.
#define SERIAL_PORT 0
//#define SERIAL_PORT 1

// This determines the communication speed of the printer
// This determines the communication speed of the printer
#define BAUDRATE 250000
//#define BAUDRATE 9600

```

[![Printrboard](https://i.sstatic.net/6za30.png)](https://i.sstatic.net/6za30.png)

**Tags:** marlin, firmware, electronics


---

## 1 answers

### Answer by username_0 on 2019-02-24. Score: 0 | Accepted answer

I was able to resolve this issue:

1. I moved to Marlin 1.1.9 (the final release of the 1.1.x versions).
2. I made a [fork](https://github.com/josea/Marlin/tree/josea-printrbot), for those who would like to see the changes. Also summarized below.
3. The RX1 and TX1 pins are well identified in the question. I connected those directly to the HC-06 bluetooth module (using a voltage divider for the RX pin in the bluetooth, as it is a 3.3 V logic module).

**Changes in code:**

Marlin/Conditionals.LCD.h: commented out:

```
// this line conflicted with the bluetooth/serial1 options
// #define USE_MARLINSERIAL !(defined(__AVR__) && defined(USBCON))

```

The rest are the configuration options already provided by Marlin in Marlin.Configuration.h:

```
define SERIAL_PORT 1
define BAUDRATE 115200  // Note: this baudrate MUST match the one set in the bluetooth module. That's done using the AT commands. There is plenty of information on how to do that. 
define BLUETOOTH

```

As a result of these changes I am able to print with my PrintrBot Simple 2014 (Printrboard Rev. D) with Bluetooth over a distance of ~3.5mts, behind a wall. I haven't tested it exhaustely, but it does print.


---

