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…
3
votes
2 answers

Press on pressure sensor, then wait 5 seconds, turn on LED

I'm having some trouble wrapping my head around timers in Arduino. I've got a FSR Pressure Sensor and I want it to turn on my NeoPixel LED after pressing on it for 5 seconds. Any help is much appreciated! My goal: FSRReading > 1022 then wait 5…
jmswng
  • 33
  • 3
3
votes
1 answer

Need help converting a processing sketch for a robot arm with servo shield

I'm currently building a robotic arm. I'm using an Adafruit servo shield, 7 servos, Arduino uno, and a 5V 10A power supply. I found a program that controls the arm with mouse movement using a processing sketch, Fixbot. However I'm using the…
3
votes
1 answer

How to convert a String number Into a int value?

I want to convert a string into a int value. in my real code, I receive a string "Slider 255" the number after slider changes from 0 to 255, so I want a int value to be equal to that number. This is a small example of the code: #include…
Diego MEstre
  • 31
  • 1
  • 2
2
votes
0 answers

Arduino filling serial buffer with nulls

I just wrote some code that just sends a string from Arduino to Processing. Processing prints the string and displays the number of characters in the buffer... After uploading the sketch to the Arduino and starting Processing for the first time, the…
Robot12
  • 21
  • 3
2
votes
0 answers

HC-05 bluetooth module stops working when blinking

I'm using this HC-05 Bluetooth module to communicate between my Arduino mega 2560 and my laptop. I am using processing to send the data from my computer to the Arduino. The module connects nicely and start blinking and when it is paired with my…
2
votes
2 answers

Interface with mux-controlled LED rope

I'm working on using a GUI in Processing to control some LED rope from Adafruit, and using this multiplexer. I've gotten the following Arduino code working the way I want to cycle through the various strands of LED rope and turn them on: #include…
narner
  • 267
  • 1
  • 3
  • 17
2
votes
0 answers

Arduino -> Processing conversion: creating mux channels

As the title alludes to, I'm in the process of converting an Arduino sketch to a Processing sketch. So far, mostly pretty straightforward. I'm running into an issue with creating an array of ints for the channels for two muxers. Below is the code…
narner
  • 267
  • 1
  • 3
  • 17
2
votes
0 answers

Multi Agent Systems

In my project work, I have 3 robots with their own Arduino boards. Each robot has Infra Red Sensors, whose values I can read using its corresponding Arduino. The main thing however is that each robot must have every other Robots' values. Can anyone…
Craig
  • 21
  • 1
2
votes
0 answers

Getting NaN error in Processing when Xbee is used and trying to create a popup window.

I am trying to get data from D6T Omron thermal sensor. It works fine with both Arduino and Processing when I connect it to pc directly. However, it seems to always cannot read my last data in my data array when i use Xbee on them. It results in a…
lim lagoon
  • 25
  • 4
2
votes
0 answers

Arduino Uno to Processing, using Serial

So I have 7 different sensor I’d like to send to Processing, then use each of their values as variables inside different webcam filters. I’m going off of this tutorial which has been helpful, but it doesn’t give linear steps – more like different…
jess_JS
  • 21
  • 1
2
votes
1 answer

Processing error with processing-arduino examples

I have followed the instructions to run the Arduino processing examples but with no success. Always import processing.serial.*; does not name a type. Which is perhaps a library (processing-arduino) related error. My sketch is a sketch that comes…
ibrahim
  • 21
  • 1
  • 2
1
vote
1 answer

How to prevent file overwriting in processing?

i am working on this arduino project using processing. There are some sensor values which should be logged, but unfortunately my processing code rewrites the file after each cycle so that i get the last sensor value only. How do i prevent this from…
kevinks
  • 21
  • 1
1
vote
2 answers

Serial connection between Processing and Arduino doesn't work

I'm trying to connect an Arduino Nano Every and Processing via serial. I'm getting no errors on either side, and the arduino serial functionality works otherwise on the arduino IDE. I'm connecting on the right port, and the port is busy while the…
Zhelyazko Grudov
  • 367
  • 2
  • 15
1
vote
1 answer

Can’t send string from arduino to processing via hc05

I’m trying to send and receive data from my laptop to arduino nano via hc05 Bluetooth for a rocket flight computer. For some reasons which I don’t know, I can send data from processing software using myPort.write() but cannot send a String back from…
1
2 3 4