We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1answer
15 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-...
0
votes
1answer
24 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
21 views

problem sending data from hc05 arduino to processing?

I am trying to send simple string values from my arduino to processing via bleutooth using the hc05 module. I already paired the hc05 with my computer and got its port name as shown in the image below:...
0
votes
0answers
89 views

Garbage Characters Being Sent from HC-05

I have a contraption that uses a HC-05 Bluetooth module and sends info to a processing program which controls the contraption. The processing program is a follows (from a video by How To Mechatronics,...
1
vote
1answer
37 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 ...
0
votes
1answer
69 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 ...
1
vote
1answer
57 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 ...
0
votes
1answer
42 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 ...
-2
votes
1answer
46 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
37 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
128 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
26 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
67 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
46 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
41 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
198 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
78 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
91 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
814 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
886 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
62 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
90 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
1k 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
89 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
105 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
99 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
0answers
1k 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
618 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
148 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
470 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
2k 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
297 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
195 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
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 ...
1
vote
0answers
127 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
271 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
142 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
761 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
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]; ...
1
vote
1answer
2k 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
167 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
950 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
505 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
1k 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
104 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
638 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 ...