# Send & Receive data on the same serial port without causing the Arduino program to bug

**URL:** https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723
**Category:** Electronics (Arduino, etc.)
**Created:** [April 13, 2020, 7:15am UTC](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723 "2020-04-13T07:15:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bking](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@bking](https://discourse.processing.org/u/bking)
#### Post date: [April 13, 2020, 7:15am UTC](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723/1 "2020-04-13T07:15:07Z")

</div>

Hello gentlemen and ladies,

It’s more an Arduino question than an Processing one, but it’s a short question 😉  
I send data with the serial port from Processing to Arduino and it works very well, I can control 5 stepper motors.  
At the same time with the Arduino I want to print datas on the same serial port, but when I do this from Arduino my motors turn in a random way.  
So is it possible to read and write data with the same serial port (write with Processing, read with Arduino and write again other datas with Arduino) ? After i will read the Arduino’s data on Max Msp. Thank you.

---

<div class="post-metadata">

### Author: ![bking](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@bking](https://discourse.processing.org/u/bking)
#### Post date: [April 13, 2020, 9:55am UTC](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723/2 "2020-04-13T09:55:03Z")

</div>

I think it’s not possible.  
I have the Arduino Due, I will can print datas on the Native USB serial port. So, I will can read data from the programming port and write datas (Processing’s datas if I want) on the Native USB serial port, that I will read with the serial monitor of the Arduino IDE.
