Questions tagged [processing-lang]
A programming language and an IDE based on Java, but with simplified syntax and graphics programming model.
56 questions
2
votes
0
answers
360
views
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 ...
1
vote
1
answer
413
views
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 ...
-1
votes
1
answer
46
views
How do I make my Arduino do a specific action when the computer is locked/unlocked?
I have a windows computer connected to my Arduino Uno. I work in a area with a bunch of cubicles and we leave our desk fairly regularly to go and troubleshoot other computers (I'm a service desk ...
0
votes
1
answer
69
views
UPDATE: Fault in processing code - doesn't receive correct data from Arduino
I am receiving data from an LDR which I am inputting into processing. The data seems to be received to Arduino correctly and I have looked at the data being sent via the serial monitor and it all ...
-1
votes
1
answer
39
views
Two adruino are connected to the raspberry via usb, but one is reconnected during processing code is running
I try to solve this a month..but still problem...
I want to make below led-matrix spectrum.
Thumbnail image
https://youtu.be/X35HbE7k3DA
※Environment
Device UML
One Raspberry pi 3 : 2019-09-26-...
1
vote
0
answers
50
views
Arduino and Processing- Conditionals only executing sometimes in response to IR codes
I am reasonably new to arduino and even newer to Processing so still struggle with trouble shooting my code.
The intention of my sketch is have Processing receive IR codes from the arduino and ...
1
vote
1
answer
322
views
Arduino and Processing Call and response not working
I have been trying to develop a connection from the arduino IDE to Processing so I can send data measured on the arduino Pins to processing to display.
I first packaged the 10-bit integers I was ...
0
votes
1
answer
66
views
How to send chars and values at the same time from processing to Arduino [closed]
i have been trying to set Builtin LED frequency from arduino and turn it on and off .
I have created an interface with knobs and buttons in processing . I want to set delay between ON and OFF with 1 ...
0
votes
1
answer
93
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 ...
0
votes
1
answer
51
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
votes
1
answer
378
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 ...
1
vote
1
answer
122
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 ...
2
votes
2
answers
1k
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 ...
2
votes
0
answers
91
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
2
answers
2k
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
1
answer
136
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 ...
0
votes
2
answers
325
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
vote
1
answer
632
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.
...
-1
votes
1
answer
1k
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 ...
2
votes
0
answers
322
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 ...
1
vote
1
answer
2k
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
1
answer
249
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;
...
1
vote
1
answer
4k
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 ...
0
votes
1
answer
2k
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 ...
1
vote
1
answer
1k
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