# Display information from Arduino Serial Monitor

**URL:** https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439
**Category:** Electronics (Arduino, etc.)
**Created:** [January 30, 2020, 2:05am UTC](https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439 "2020-01-30T02:05:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jaxx2009](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jaxx2009](https://discourse.processing.org/u/jaxx2009)
#### Post date: [January 30, 2020, 2:05am UTC](https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439/1 "2020-01-30T02:05:10Z")

</div>

From what I understand, you can’t have processing functioning at 100% while the Arduino serial monitor is open. The Arduino serial monitor has some information that I need to be able to see written to it, is there a way to have the processing app read/duplicate and display whatever is in being written to the serial monitor so I can check it if I need to?

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [January 30, 2020, 2:49am UTC](https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439/2 "2020-01-30T02:49:23Z")

</div>

the serial port can only be used by one app,  
so you close the arduino IDE serial monitor  
open the processing and run the example from serial library like  
[https://processing.org/reference/libraries/serial/serialEvent\_.html](https://processing.org/reference/libraries/serial/serialEvent_.html)  
so all the arduino sends will be printed to canvas.  
that was the easy part, if you want use keypressed and send to arduino some Strings  
it is a little bit longer way.

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [January 31, 2020, 9:07pm UTC](https://discourse.processing.org/t/display-information-from-arduino-serial-monitor/17439/3 "2020-01-31T21:07:58Z")

</div>

> [@jaxx2009](#):
>
> From what I understand, you can’t have processing functioning at 100% while the Arduino serial monitor is open.

The Arduino serial monitor does not affect the performance of Processing.

> [@jaxx2009](#):
>
> The Arduino serial monitor has some information that I need to be able to see written to it, is there a way to have the processing app read/duplicate and display whatever is in being written to the serial monitor so I can check it if I need to?

I have an Arduino Mega 2560 R3 which has multiple serial ports.  
If your flavor of Arduino does not have additional serial ports you can use:

> **[SoftwareSerial Library | Arduino Documentation](https://docs.arduino.cc/learn/built-in-libraries/software-serial)**
>
> The SoftwareSerial library allows serial communication on other digital pins of an Arduino board.

You will need something like this to use this additional serial port:

> **[Pololu USB-to-Serial Adapter](https://www.pololu.com/product/391)**
>
> The Pololu USB-to-serial adapter is a tiny unit that makes it easy to connect a microcontroller project to a PC. You can connect the adapter directly to a microcontroller without an RS-232-to-TTL level converter. It is USB 2.0-compatible and will...

I have also used an Arduino Uno as a serial adaptor:

> **[3 Ways to Use Arduino as USB Serial Adapter Converter - Oscar Liang](https://oscarliang.com/use-arduino-as-usb-serial-adapter-converter/)**
>
> Arduino uses FTDI chips to create serial port connection between computer and the chip, so you can program the Atmel chip inside the Arduino board, without the need of any ISP programmers. If we look at the…

And voila!  
You can now display data on your Arduino serial monitor **and** also send the same data to an additional COM port that can be Processing in this case.  
You will have to modify your code to use two serial ports on the Arduino side.  
I do this often as a demo.

If you write code correctly on the Processing side you are making your own serial monitor with Processing; you can only connect the Arduino serial output to one or the other and not both at the same time.  
Processing has this example which can be simplified (remove the fonts) to do be a serial monitor using println() to console:  
[https://processing.org/reference/libraries/serial/serialEvent\_.html](https://processing.org/reference/libraries/serial/serialEvent_.html)
