# Communications between Processing and Arduino IDE

**URL:** <https://discourse.processing.org/t/communications-between-processing-and-arduino-ide/7346>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [January 9, 2019, 4:59am UTC](https://discourse.processing.org/t/communications-between-processing-and-arduino-ide/7346 "2019-01-09T04:59:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 9, 2019, 7:44am UTC](https://discourse.processing.org/t/communications-between-processing-and-arduino-ide/7346/2 "2019-01-09T07:44:40Z")

</div>

ha, the two IDE might look alike,  
but the code you made with it is very different  
and can never run on the same computer.  
also the projects and source code are well separated.

so not worry about that, yes it might even be good to use that same names,  
( just not to confuse yourself )

usually if you setup a communication between a  
arduino – USB – processing program  
you send from arduino, like after measuring Ain’s…  
astring = A0+","A1 …  
and Serial.println(astring);

```auto
1023,1023,1023....

```

what is fast, readable, but requires good documentation…( what means what )

but if your application is not time critical you could even send full text  
including the variable names you mentioned.  
that could be of type JSON record.  
and i made a ready example here already for that communication.  
[Good practice for sending data from Arduino to Processing - #5 by kll](https://discourse.processing.org/t/good-practice-for-sending-data-from-arduino-to-processing/6339/5)  
click on

> example v02

to get the code for both sides.

---

_[View the full topic](https://discourse.processing.org/t/communications-between-processing-and-arduino-ide/7346)._
