Questions tagged [processing-lang]

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

Filter by
Sorted by
Tagged with
-1 votes
0 answers
21 views

Can Arduino read serial being sent over by Processing? [closed]

I am trying to control a robot remotely using an Xbox remote. The Xbox remote connects great with processing, specifically using this project https://www.makeuseof.com/tag/arduino-robot-game-...
Bradley Butler's user avatar
2 votes
0 answers
235 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 ...
Robot12's user avatar
  • 21
1 vote
2 answers
368 views

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 ...
Zhelyazko Grudov's user avatar
1 vote
1 answer
224 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 ...
Brandy's user avatar
  • 33
2 votes
0 answers
217 views

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 ...
Sahibjot Singh's user avatar
-1 votes
1 answer
37 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 ...
Nathan Hale's user avatar
0 votes
1 answer
277 views

How to find the time of any point on the graph on an Arduino serial plotter or Processing software?

I am plotting the graph of some sensor values on my Arduino serial plotter which looks something like this - But what I want to do is hover over any point on the graph and display the time at that ...
blazingcannon's user avatar
0 votes
1 answer
41 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 ...
user62091's user avatar
0 votes
1 answer
35 views

Using MouseX in processing to control LEDs. Error in code - LEDs remain off

I am fairly new to processing and Arduino - I have a coursework deadline for both on Monday (6th January). I am trying to write a script that uses the mouseX values to turn LEDs on and off. I haven'...
user62091's user avatar
-1 votes
1 answer
27 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-...
LJB's user avatar
  • 1
0 votes
1 answer
34 views

Receiving two values over serial port using servos

So I have a java program that picks up the mouses x and y coords on the display and I would like to send those to my arduino and then move my two servos to those locations (I have two servos ontop of ...
Jamie Cole's user avatar
1 vote
0 answers
39 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 ...
Harrie's user avatar
  • 11
1 vote
1 answer
90 views

Serial input help

Hey guys I have a LED strip with 6 LEDS (I control these through Kinect & processing. It sends 1,2,3,4,5,6 to Arduino. This seems to work fine.) In Arduino LED0,LED1,LED2,LED3,LED4 work ...
Juriaan 's user avatar
1 vote
1 answer
261 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 ...
Tom's user avatar
  • 59
1 vote
1 answer
603 views

Sending mouseX and mouseY from Processing to Arduino

I'm new to serial communication and trying to send mouseX and mouseY from Processing to Arduino. Serial monitor doesn't show anything. Processing code: import processing.serial.*; Serial port; void ...
2012User's user avatar
  • 149
0 votes
1 answer
51 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 ...
Gunes's user avatar
  • 13
-2 votes
1 answer
54 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 ...
Alison's user avatar
  • 21
0 votes
1 answer
55 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 ...
Alison's user avatar
  • 21
1 vote
1 answer
661 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....
acester123's user avatar
0 votes
1 answer
31 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 ...
supreme_leader's user avatar
1 vote
1 answer
96 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 ...
supreme_leader's user avatar
-1 votes
1 answer
167 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 ...
stefanie's user avatar
1 vote
1 answer
279 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 ...
Socasx7's user avatar
  • 11
1 vote
1 answer
106 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 ...
Bong's user avatar
  • 11
0 votes
1 answer
144 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 ...
Blaine Gray's user avatar
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 ...
narner's user avatar
  • 267
3 votes
2 answers
1k 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 ...
jmswng's user avatar
  • 33
2 votes
0 answers
78 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 ...
narner's user avatar
  • 267
0 votes
1 answer
110 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 ...
Kavish Rupesh Mehta's user avatar
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....
Oliver Jones's user avatar
2 votes
0 answers
120 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 ...
Craig's user avatar
  • 21
0 votes
1 answer
121 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 ...
S. Kuehl's user avatar
0 votes
1 answer
666 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 ...
sir_weasels's user avatar
0 votes
2 answers
283 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 + (...
goldi's user avatar
  • 3
1 vote
3 answers
3k 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 ...
Radmation's user avatar
  • 113
1 vote
1 answer
532 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. ...
user20637's user avatar
0 votes
2 answers
227 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 ...
lim lagoon's user avatar
-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 ...
Jonathan's user avatar
  • 264
2 votes
0 answers
149 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 ...
lim lagoon's user avatar
2 votes
0 answers
314 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 ...
jess_JS's user avatar
  • 21
0 votes
1 answer
162 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/...
lim lagoon's user avatar
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 ...
Dewan's user avatar
  • 43
0 votes
1 answer
1k 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]; ...
CrownedEagle's user avatar
0 votes
1 answer
227 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; ...
Amin's user avatar
  • 113
3 votes
1 answer
1k 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 ...
Symphy's user avatar
  • 31
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 ...
dada's user avatar
  • 127
1 vote
1 answer
652 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 ...
dada's user avatar
  • 127
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 ...
8-Bit Borges's user avatar
2 votes
1 answer
5k 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) ...
ibrahim's user avatar
  • 21
1 vote
1 answer
986 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
Tim's user avatar
  • 11