Questions tagged [processing-lang]

A programming language and an IDE based on Java, but with simplified syntax and graphics programming model.

Arduino support in Processing IDE is added by installing the extra library.

The library allows you to control an Arduino board from Processing without writing code for the Arduino. Instead, you upload standard firmware (program) to the board and communicate with it using the library. The firmware is called Firmata, and is included in the Arduino software.

See also Processing on Wikipedia.

56 questions
4
votes
1 answer

Saving Arduino output to a text file in append mode

I used the code below to save output from an Arduino Uno to a text file. The problem is whenever I run the code the old data in the text file is deleted. I don't want the old data to be deleted, what should I change? import…
0
votes
1 answer

Problem in getting the output (language: Processing and Arduino IDE)

I am working on a small project with Processing and Arduino, in which, depending upon the value of a photoresistor, it displays whether it is day/night/evening. I read the value from the photoresistor and write the value to the serial port. Then in…
0
votes
1 answer

Problem with analog pins' name when trying to connect Arduino board and Processing

I am trying to use Processing with Arduino Uno board to read the change of voltage done by a potentiometer. The code is simple: import processing.serial.*; import cc.arduino.*; Serial myport; Arduino arduino; color off = color(4, 79, 111); color…
Amin
  • 113
  • 1
  • 6
-1
votes
1 answer

Using Processing to send data to Arduino

import processing.serial.*; import java.io.*; Serial myPort; int mySwitch; String transmitter[] = new String[1280000]; //initialize array void setup(){ mySwitch=1; //Open the serial port for communication with the Arduino…
Jonathan
  • 264
  • 3
  • 14