In this Question how does the code Processing work?
Which programming language is it written in? How to run it?
Asked
Active
Viewed 58 times
0
Mathsman 100
- 339
- 1
- 11
-
Note that you aren't required to use Processing in order to communicate with the Arduino; the Arduino uses standard serial communications, supported by almost every programming language in one form or another. – Ignacio Vazquez-Abrams Apr 18 '15 at 12:27
-
Can I use C++? If so, how? I know basics of C++, so it will be easier for me. – Mathsman 100 Apr 18 '15 at 15:59
-
Can C++ support standard serial communications? – Ignacio Vazquez-Abrams Apr 18 '15 at 16:01
-
@IgnacioVazquez-Abrams , Yeah, but very long and difficult process. – Mathsman 100 Apr 18 '15 at 16:06
1 Answers
2
"Processing" is a simplified programming language/environment based on Java. It's designed to be very easy for non-programmers to use, and is quite a popular choice for using alongside Arduino projects.
You can download it for free (and get lots of tutorials/documentation) from here:
As a side note, the Arduino IDE was based on Processing, so it will probably look familiar!
Peter Bloomfield
- 10,932
- 9
- 47
- 87
-
-
@Mathsman100 You run Processing on your PC or Mac or whatever and generally communicate with the Arduino via serial connection (USB). – Peter Bloomfield Apr 18 '15 at 12:13
-
So, do you first run the Processing program or do you open the Serial port before that? – Mathsman 100 Apr 18 '15 at 15:58
-
@Mathsman100 Your Processing program needs to open the serial port. There are lots of tutorials online which you might find helpful. Here's one: https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing – Peter Bloomfield Apr 18 '15 at 17:09