Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [processing-lang]

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

-2
votes
1answer
36 views

Why do COM port numbers between Arduino and Processing not match? [closed]

I have a Processing program that reads data sent to the serial port by an Arduino. When I go to device manager it shows that the Arduino is plugged into COM 4, however in order to get Processing to ...
0
votes
1answer
27 views

Entire arrays are not read by Processing sent by Arduino unless cord is unplugged and plugged back in?

I am using an Arduino to read sensors and then send the data to the serial port for Processing to read. It works totally fine when I first download the code and run the Processing program. But if I ...
1
vote
1answer
45 views

Why does reading an analog pin give a different results when interfacing with Processing?

I am interested in measuring the voltage over an analog pin (A6). When I use the Arduino IDE to print the results through the serial I get values around 300. Here's the code void setup(){ Serial....
0
votes
1answer
25 views

Improper sampling of wave [duplicate]

I am using Arduino Mega 2560 to sample and serially send a square wave. I am using Processing 3.3.6 for logging the data to .csv file. I am receiving about 6k samples at the moment. When I try ...
1
vote
1answer
51 views

Sampling and serial transfer

I am trying to get a sampling rate of over 10k Samples per second as well as send each sample over a serial line. Taking a sample and putting it on the serial line each time took too long. I am using ...
-1
votes
1answer
35 views

No data in text file [closed]

Data can be seen in the console but the data is not being written in the text file. The file is created but there is no data in it. Here is my code in Processing, import processing.serial.*; Serial ...
0
votes
2answers
29 views

I have multiple components that are lagging [closed]

I have multiple components such as LED's, Servos, ultrasound, and a photoresistor. For context, certain LED's light up and a buzzer makes a certain sound depending on the range of distance the ultra ...
1
vote
1answer
150 views

Interface Processing with Arduino to operate a servo by MouseX [closed]

I want to make a servo change its angle using my mouse. When I move mouse horizontally the servo should change its angle correspondingly. This is the sketch I wrote, unfortunately the servo doesn't ...
0
votes
1answer
72 views

Need help with my code for my project using an Arduino Uno and Processing

I am using an Arduino Uno for my project. I use 4 digital inputs and they will be triggered by 4 different relays. I would like to save the data in a *.csv file in the format below. For example, if ...
0
votes
1answer
62 views

Passing serial data to Processing using something other than ln to trigger Processing

I have a Uno program and I can transfer data to Processing using println. In Processing bufferUntil('\n') interprets the ln as \n, stops buffering, and reads the string until the next '\n'. I would ...
2
votes
2answers
513 views

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 ...
1
vote
2answers
632 views

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 ...
1
vote
1answer
48 views

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 ...
0
votes
1answer
86 views

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 ...
0
votes
2answers
958 views

Send Color value from Processing into Arduino

I know this has been asked before, but I'm new to Arduino and Processing, and I'm trying to take this step by step. I would like to pass an RGB value from processing, into Arduino via the Serial....
0
votes
2answers
86 views

What is wrong with this processing code?

I have written a processing code to work along with my arduino code for the arduino UNO. In this I'm trying to control the colour of the processing window by the arrow keys. However, I'm doing this in ...
1
vote
0answers
91 views

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 ...
0
votes
1answer
87 views

Arduino Due: multiple TCS sensors

I am trying to run 2 TCS3200’s from one Arduino Due. Next, I must increase to 4 sensors. I need to read the data from the 2 digital pins but how do I read both within the same loop rather than in ...
1
vote
0answers
812 views

Udp.remoteIP() and Udp.remotePort() calls not working

I'm trying to conect an Intel Galileo over ethernet. I'm using the code located in Examples/Ethernet/UDPSendReceiveString. Everything works fine except for the response. Udp.remoteIP() always return ...
0
votes
1answer
537 views

Send sensor information to processing

I am currently working on an Arduino project where the Arduino will send data to a processing program via bluetooth and processing will draw the data. However, my code doesn't seem to work. Here is ...
0
votes
2answers
95 views

serial.write() five sensors and Processing

To all of this, hope to formulate the question right. In my project I have 5 sensors connected to Arduino, which I want to interpret via Seria.write() --> Processing. Arduino: firstSens = 100 + (...
-1
votes
1answer
374 views

Sending data to serial port using Processing IDE (Debug works but run doesn't)

I'm trying to read a series of numbers in a text file on my PC then send them to my Arduino board via serial port. The numbers are split by commas and dashes so I perform two loops. Sending a number ...
1
vote
3answers
1k views

Send information (such as a string) over digital pins

I wan't to send information from my arduino digital pins to another arduino's digital pins like a string, or a char. Can I do this without something like Software Serial? The reason I am asking is ...
1
vote
1answer
203 views

Graphing force sensor data routed through HX711?

I'm using the code off of the sparkfun website HX711 hookup guide (https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide#arduino-code) to attempt to create a scale. ...
0
votes
2answers
183 views

How to make Arduino to stop updating i2c data when meet a condition and wait until it receives another serial input from processing?

I am currently making a robot with Arduino Uno, D6T omron thermal sensor (i2c sensor) and some other sensors. My thermal sensor will always update the data in array form. It will display 4 data arrays ...
-1
votes
1answer
879 views

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 ...
1
vote
0answers
104 views

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 ...
1
vote
0answers
227 views

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 ...
0
votes
1answer
128 views

Arduino sketch won't run until I open up GUI in processing

I am trying to make a human detection robot using D6T omron thermal sensor. However, I am facing some problem here. My Arduino Uno didn't run the sketches until I open up my GUI in processing. The tx/...
1
vote
1answer
675 views

Writing and reading multiple values through serial

I am currently busy with a project that requires me to use an Arduino and 3 potentiometers (to change background in RGB format) to write values through the serial port and read and separate them in ...
0
votes
1answer
955 views

Read RFID Card Number in Processing over Serial

I have successfully setup up a RFID reader with Arduino Uno and EM-18 Card Reader Module. Its program for Arduino is below: int count = 0; // count = 0 char input[12]; ...
1
vote
1answer
1k views

Controlling an arduino by html/php [closed]

Hello I am controlling a arduino through html/php using processing basically what it does is it has a txt file in the web server that holds the value for the state of a led that gets changed through ...
0
votes
1answer
147 views

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; ...
3
votes
1answer
888 views

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 ...
1
vote
1answer
3k views

Graph plotting on Processing from Arduino sensor data

I am trying to plot a graph on processing but I'm having challenges going about it. The processing sketch below does work for plotting only one axis, and I'm trying to plot all three axis on the same ...
1
vote
1answer
435 views

pushing accelerometer data in packets from an arduino due to the pc and unto processing

I'm quite a newbie to this and I've been struggling for sometime now with my school project, trying to find a way to send accelerometer data from my MMA7361 in data packets, I understand that I have ...
0
votes
1answer
985 views

Processing printing sensor readings and raising NaN exception at the same time

I am using pressure sensor with Arduino Uno within Processing. Given these variables: Serial myPort; //the serial port float sensorValue = 0; //the value form the sensor Arduino is ...
0
votes
0answers
101 views

Arduino Processing client fails to upload file to PHP server

Background I want pressure sensors (they are working) to trigger the built-in camera and take a picture when cat goes to bed, upload the pic and email me so I can go check out the real-time image on ...
2
votes
1answer
4k views

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) ...
0
votes
1answer
435 views

Sending data from Processing and receiving as uint32_t

I need to send data from a processing sketch to an Arduino to pass to a function that takes a uint32_t. How to I send the data in Processing to be run on the Arduino
1
vote
2answers
1k views

Arduino Serial Queue

So I am programming an LED Music Visualizer that uses a combination of Processing and Arduino. I have it all working as I want to but there is a small problem. If I were to stop the music, then the ...
0
votes
3answers
202 views

Sending serial data to Processing

I have a question about using the Arduino and Processing. I want to build a touch sensor using aluminum foil and connect it to an interface built in Processing. However i've come across a problem. I ...
2
votes
1answer
4k views

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 ...
1
vote
2answers
903 views

Need a simple accelerometer visualization example!

I'm doing a project using the ADXL335 accelerometer from SparkFun. The actual project I'm using P5 and it's working great. I'm running workshops in parallel and want to demo the chip in real-time but ...
1
vote
1answer
423 views

General Question about fast Serial Communication and Arduino

I'm looking for a fast (and safe, in terms of stability) way to send sensor data from an Arduino UnoR3 in real time to a Computer (in my case a MacBook Pro) with a sample rate of at least 1kHz. I ...
-1
votes
1answer
193 views

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 ...
1
vote
0answers
764 views

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, ...
1
vote
0answers
143 views

Talking between Arduino and PC (Java) [closed]

I have to realize a communication between Arduino Leonardo and a demon which runs on a pc. The demon has to tell Arduino informations about the operative system of the machine to which it is linked,...