# Electronics (Arduino, etc.)

**URL:** https://discourse.processing.org/c/processing/processing-electronics/25.md?page=1

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 2

---

## [Can anybody help me with parameters for ortho view?](https://discourse.processing.org/t/can-anybody-help-me-with-parameters-for-ortho-view/45166)

<div class="topic-metadata">

**Author:** [@masoudhyudani](https://discourse.processing.org/u/masoudhyudani)\
**Replies:** 6\
**Last updated:** [October 14, 2024, 12:46pm UTC](https://discourse.processing.org/t/can-anybody-help-me-with-parameters-for-ortho-view/45166 "2024-10-14T12:46:27Z")

</div>

Hello, can anybody help me with the parameters so that I can see something like the below: import processing.serial.\*; Serial myPort; // The serial port int cols = 2; int rows = 2; int\[\]\[\] intensityGrid = new int\[…

---

## [Arduino-Processing Radar project parsing error](https://discourse.processing.org/t/arduino-processing-radar-project-parsing-error/45095)

<div class="topic-metadata">

**Author:** [@erdemerz](https://discourse.processing.org/u/erdemerz)\
**Replies:** 3\
**Last updated:** [September 25, 2024, 6:08pm UTC](https://discourse.processing.org/t/arduino-processing-radar-project-parsing-error/45095 "2024-09-25T18:08:13Z")

</div>

iAngle = int(angle); iDistance = int(distance); This part of the code gives the following error (The function parseİnt(String) does not exist. ) how can i fix it import processing.serial.\*; // imports library for se…

---

## [serialEvent for high frequency for closed loop control - Arduino & Processing](https://discourse.processing.org/t/serialevent-for-high-frequency-for-closed-loop-control-arduino-processing/44883)

<div class="topic-metadata">

**Author:** [@Rouno](https://discourse.processing.org/u/Rouno)\
**Replies:** 9\
**Last updated:** [August 5, 2024, 7:06pm UTC](https://discourse.processing.org/t/serialevent-for-high-frequency-for-closed-loop-control-arduino-processing/44883 "2024-08-05T19:06:44Z")

</div>

Hi guys, (reposting from my issue in Arduino Forum) I’m writing some code in Processing that interacts with an Arduino to control a robot arm. I need the closed-loop control code to run Processing with the highest frequ…

---

## [Parsing and Reading Serial JSON data](https://discourse.processing.org/t/parsing-and-reading-serial-json-data/44806)

<div class="topic-metadata">

**Author:** [@mfusco](https://discourse.processing.org/u/mfusco)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 3:36am UTC](https://discourse.processing.org/t/parsing-and-reading-serial-json-data/44806 "2024-07-24T03:36:10Z")

</div>

Hi, I’m trying to send serial JSON data from an Arduino to Processing. I found documentation on reading JSON data from a file, but I’d like to read the JSON data from a Serial input. I tried the following code: val = m…

---

## [Client connection refused](https://discourse.processing.org/t/client-connection-refused/44679)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 8:38am UTC](https://discourse.processing.org/t/client-connection-refused/44679 "2024-07-02T08:38:38Z")

</div>

hello guys, hope you doing all well, so i i have a bunch of arduinos connected to local network via ethernet, a user can than interact with them via GUI done by processing, after testing with three arduinos everything wo…

---

## [OnReceive event for Ethernet connection?](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 10:47pm UTC](https://discourse.processing.org/t/onreceive-event-for-ethernet-connection/44591 "2024-06-13T22:47:44Z")

</div>

hi, hope you doing all well, when i was using serial port for my arduino project, there was a function that automatically trigerred upon receiving data via serial port ( serial event) , now i m using ethernet connection,…

---

## [Problem playing multiple movie files in a sequence](https://discourse.processing.org/t/problem-playing-multiple-movie-files-in-a-sequence/43762)

<div class="topic-metadata">

**Author:** [@dswayne92](https://discourse.processing.org/u/dswayne92)\
**Replies:** 4\
**Last updated:** [June 11, 2024, 12:21pm UTC](https://discourse.processing.org/t/problem-playing-multiple-movie-files-in-a-sequence/43762 "2024-06-11T12:21:44Z")

</div>

Dear everyone, I’m working on a project where I have several video files I want to play back in a sequence, and have the sequence itself repeat indefinitely. Every other video clip, Processing writes to the serial port …

---

## [Showing x y z axis acceleration data](https://discourse.processing.org/t/showing-x-y-z-axis-acceleration-data/44551)

<div class="topic-metadata">

**Author:** [@Ken\_000](https://discourse.processing.org/u/Ken_000)\
**Replies:** 2\
**Last updated:** [June 9, 2024, 4:00pm UTC](https://discourse.processing.org/t/showing-x-y-z-axis-acceleration-data/44551 "2024-06-09T16:00:23Z")

</div>

New to processing. On windows PC, how to setup processing (with processing code) to display an aeroplane showing roll, pitch and yaw with accelerometer x,y,z axis data coming from serial port? Arduino is used to read a…

---

## [Grafica plot not displaying in G4P window](https://discourse.processing.org/t/grafica-plot-not-displaying-in-g4p-window/44491)

<div class="topic-metadata">

**Author:** [@hakim](https://discourse.processing.org/u/hakim)\
**Replies:** 4\
**Last updated:** [May 27, 2024, 2:06pm UTC](https://discourse.processing.org/t/grafica-plot-not-displaying-in-g4p-window/44491 "2024-05-27T14:06:29Z")

</div>

Hello, hope you doing all well, i have a problem regarding grafica plot, well first of all i did multiple windows using G4P, everything just works fine, i then added a button “lancer mesures” which on click will trigger …

---

## [String Index Out Of Bounds Exception](https://discourse.processing.org/t/string-index-out-of-bounds-exception/44375)

<div class="topic-metadata">

**Author:** [@mohitSingh](https://discourse.processing.org/u/mohitSingh)\
**Replies:** 3\
**Last updated:** [May 8, 2024, 4:07am UTC](https://discourse.processing.org/t/string-index-out-of-bounds-exception/44375 "2024-05-08T04:07:03Z")

</div>

I am encountering a java.lang.StringIndexOutOfBoundsException when receiving data from a TCP server in my Processing application. The error occurs after sending a configuration command and receiving an acknowledgment fro…

---

## [Help: Arduino Joystick Shield tracing a wave](https://discourse.processing.org/t/help-arduino-joystick-shield-tracing-a-wave/44295)

<div class="topic-metadata">

**Author:** [@jzeng21](https://discourse.processing.org/u/jzeng21)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 10:57am UTC](https://discourse.processing.org/t/help-arduino-joystick-shield-tracing-a-wave/44295 "2024-04-25T10:57:37Z")

</div>

The goal of my project is using a ardunino leonardo with a joystick shield to trace a wave in processing. The joystick is able to control the y axis of the cursor (red dot) and the x is static. A generated wave moves acr…

---

## [Digitech Retro Arcade Game Controller](https://discourse.processing.org/t/digitech-retro-arcade-game-controller/44313)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 5\
**Last updated:** [April 19, 2024, 7:40pm UTC](https://discourse.processing.org/t/digitech-retro-arcade-game-controller/44313 "2024-04-19T19:40:07Z")

</div>

Hi all, long time no see. Salient info: 2021 M1 Mac Sonoma 14.4.1 I have just received a Digitech Retro Arcade Game Controller that I’d like to incorporate into my processing projects. I assumed ( and after talking t…

---

## [How to Access Class Properties in While Loop](https://discourse.processing.org/t/how-to-access-class-properties-in-while-loop/44282)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 26\
**Last updated:** [April 16, 2024, 1:50pm UTC](https://discourse.processing.org/t/how-to-access-class-properties-in-while-loop/44282 "2024-04-16T13:50:37Z")

</div>

Hi, I’ve got a sketch with a separate class file for buttons. I’m making an app, and I want to be able to click a button and run a void for serial communication. The void needs to be in its own loop so it can wait for se…

---

## [Delay When Connecting Two Bluetooth Devices](https://discourse.processing.org/t/delay-when-connecting-two-bluetooth-devices/44229)

<div class="topic-metadata">

**Author:** [@smac3](https://discourse.processing.org/u/smac3)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 7:22pm UTC](https://discourse.processing.org/t/delay-when-connecting-two-bluetooth-devices/44229 "2024-04-09T19:22:45Z")

</div>

Hi, I’m working on a project that transmits data using Bluetooth to my computer from 2 separate devices which have 5 force sensors each. The data from the force sensors are printed in an array. Each device has its own mi…

---

## [Arduino who help me](https://discourse.processing.org/t/arduino-who-help-me/44207)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 8:16pm UTC](https://discourse.processing.org/t/arduino-who-help-me/44207 "2024-04-03T20:16:56Z")

</div>

Hello, I should ask something about arduino then I have a variable that goes from zero to 100 and I would like when it arrives at a certain imposed value a certain value raises a Pin. Who explane me Thankyou

---

## [More details about COM ports](https://discourse.processing.org/t/more-details-about-com-ports/43714)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 14\
**Last updated:** [April 3, 2024, 12:08pm UTC](https://discourse.processing.org/t/more-details-about-com-ports/43714 "2024-04-03T12:08:56Z")

</div>

I have a question concerning com ports. A while ago in this thread I managed to use arduino-cli.exe in order to get me more details about COM ports. It works really well. I can also find me boards with Ch340 chips. But…

---

## [GPS speedometer alarm](https://discourse.processing.org/t/gps-speedometer-alarm/44147)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 0\
**Last updated:** [March 23, 2024, 11:28pm UTC](https://discourse.processing.org/t/gps-speedometer-alarm/44147 "2024-03-23T23:28:37Z")

</div>

Any help for code Thankyou

---

## [Server/client with ESP32/Processing](https://discourse.processing.org/t/server-client-with-esp32-processing/44156)

<div class="topic-metadata">

**Author:** [@Bellatore69](https://discourse.processing.org/u/Bellatore69)\
**Replies:** 4\
**Last updated:** [March 28, 2024, 6:44am UTC](https://discourse.processing.org/t/server-client-with-esp32-processing/44156 "2024-03-28T06:44:14Z")

</div>

Good morning, I am currently in university, and my end-of-year project is to create an automatic greenhouse. I therefore have to create a Human Machine Interface with Processing and a server which will group together a…

---

## [Saving live information to excel file every half hour](https://discourse.processing.org/t/saving-live-information-to-excel-file-every-half-hour/43061)

<div class="topic-metadata">

**Author:** [@Jason](https://discourse.processing.org/u/Jason)\
**Replies:** 60\
**Last updated:** [March 26, 2024, 9:52am UTC](https://discourse.processing.org/t/saving-live-information-to-excel-file-every-half-hour/43061 "2024-03-26T09:52:38Z")

</div>

The following code was written by someone a few years ago for our company. What it does is display the counts of parts that are coming off of some of our machines. What i need to be able to do is have those numbers sa…

---

## [SD Plotter DB® version 2.31 — Program for automation and data recorder via Arduino and developed in Processing 4](https://discourse.processing.org/t/sd-plotter-db-version-2-31-program-for-automation-and-data-recorder-via-arduino-and-developed-in-processing-4/44020)

<div class="topic-metadata">

**Author:** [@Spidoug](https://discourse.processing.org/u/Spidoug)\
**Replies:** 0\
**Last updated:** [March 3, 2024, 4:24am UTC](https://discourse.processing.org/t/sd-plotter-db-version-2-31-program-for-automation-and-data-recorder-via-arduino-and-developed-in-processing-4/44020 "2024-03-03T04:24:56Z")

</div>

The software was developed for industrial automation, focusing on the management of a pilot plant for the chemical industry, but as the probe inputs are renameable and the parameters can be changed, there are countless p…

---

## [Serial buffer contains old data on new connection?](https://discourse.processing.org/t/serial-buffer-contains-old-data-on-new-connection/43826)

<div class="topic-metadata">

**Author:** [@YoSteve](https://discourse.processing.org/u/YoSteve)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 7:21am UTC](https://discourse.processing.org/t/serial-buffer-contains-old-data-on-new-connection/43826 "2024-02-06T07:21:10Z")

</div>

I am using arduino to send data to processing sketch. Arduino code: // arduino void setup() { Serial.begin(38400); Serial.write('P'); Serial.write('P'); Serial.write('P'); } void loop() { Serial.write(analogRead(0…

---

## [Adding an existing 2 dimensional array to a JSONObject](https://discourse.processing.org/t/adding-an-existing-2-dimensional-array-to-a-jsonobject/43807)

<div class="topic-metadata">

**Author:** [@remka](https://discourse.processing.org/u/remka)\
**Replies:** 5\
**Last updated:** [February 2, 2024, 7:58am UTC](https://discourse.processing.org/t/adding-an-existing-2-dimensional-array-to-a-jsonobject/43807 "2024-02-02T07:58:32Z")

</div>

Hi everyone, I am fairly new to Java and Processing, …coming from Javascript many things still look like black magic to me :slight\_smile: … I am trying to format some data to JSON to send via websockets to an esp32 boa…

---

## [How use Serial object inside a class](https://discourse.processing.org/t/how-use-serial-object-inside-a-class/43568)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 6:51pm UTC](https://discourse.processing.org/t/how-use-serial-object-inside-a-class/43568 "2024-01-03T18:51:43Z")

</div>

I had myself a fine working program. But I had to refactor some things. I added a class and inside that class I would like all to do all the serial data handling. I only have no clue how java works with this. I keep get…

---

## [Type Serial is ambiguous](https://discourse.processing.org/t/type-serial-is-ambiguous/43584)

<div class="topic-metadata">

**Author:** [@rototbob](https://discourse.processing.org/u/rototbob)\
**Replies:** 3\
**Last updated:** [December 30, 2023, 11:41pm UTC](https://discourse.processing.org/t/type-serial-is-ambiguous/43584 "2023-12-30T23:41:22Z")

</div>

I’m new to the Processing language. I am trying to run the code for the Arduino Networked Lamp as detailed in the Getting started with Arduino book. I’ve downloaded the program titled ex06 01 processing and I get the fo…

---

## [Can you set a process timeout](https://discourse.processing.org/t/can-you-set-a-process-timeout/43534)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 2\
**Last updated:** [December 27, 2023, 8:41pm UTC](https://discourse.processing.org/t/can-you-set-a-process-timeout/43534 "2023-12-27T20:41:42Z")

</div>

I can succesfully invoke arduino-cli to build and upload programs to an arduino board. The problem that I am having, is that the upload process takes 2 minutes before a status is returned. When I select the wrong board…

---

## [How can I get/fetch a response from invoked (launch() ) command?](https://discourse.processing.org/t/how-can-i-get-fetch-a-response-from-invoked-launch-command/43511)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 8:25pm UTC](https://discourse.processing.org/t/how-can-i-get-fetch-a-response-from-invoked-launch-command/43511 "2023-12-27T20:25:18Z")

</div>

I used launch() to invoke a batch script. The batch script would than launch Arduino-cli to build and upload an arduino program to a board. That was this fine working line. launch("rundll32 SHELL32.DLL,ShellExec\_RunDLL…

---

## [Run a batch file from Processing](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 4\
**Last updated:** [December 18, 2023, 3:11pm UTC](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474 "2023-12-18T15:11:47Z")

</div>

I am trying to run a batch file from my processing sketch, but I cannot get it done. I keep getting an exception. I tried open(), launch() and exec() and with several paths. I believe open() is no longer used in Process…

---

## [Geomerative Library error](https://discourse.processing.org/t/geomerative-library-error/43304)

<div class="topic-metadata">

**Author:** [@freesheida1984](https://discourse.processing.org/u/freesheida1984)\
**Replies:** 15\
**Last updated:** [December 6, 2023, 7:16am UTC](https://discourse.processing.org/t/geomerative-library-error/43304 "2023-12-06T07:16:27Z")

</div>

hi folks, I got an error after I installed “Geomerative” library for run a robot based on Arduino Uno, how can I fix the problem? the error I got is as followed: “more than one library is competing for this sketch” whi…

---

## [A problem with variables or libraries](https://discourse.processing.org/t/a-problem-with-variables-or-libraries/43281)

<div class="topic-metadata">

**Author:** [@Vodin](https://discourse.processing.org/u/Vodin)\
**Replies:** 13\
**Last updated:** [December 3, 2023, 4:20pm UTC](https://discourse.processing.org/t/a-problem-with-variables-or-libraries/43281 "2023-12-03T16:20:43Z")

</div>

Hi, I Try to do a radar. But now I have an error: frame cannot be resolved to a variable. May be I have problems with my libryries or something like that. I believe in you guys. If it will help the radar consist of: 2 ul…

---

## [previously, the 3D display was working by reading the information from the sensor, but now the 3D display screen opens, but the figure does not appear.](https://discourse.processing.org/t/previously-the-3d-display-was-working-by-reading-the-information-from-the-sensor-but-now-the-3d-display-screen-opens-but-the-figure-does-not-appear/43132)

<div class="topic-metadata">

**Author:** [@S1ERRA](https://discourse.processing.org/u/S1ERRA)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 1:36pm UTC](https://discourse.processing.org/t/previously-the-3d-display-was-working-by-reading-the-information-from-the-sensor-but-now-the-3d-display-screen-opens-but-the-figure-does-not-appear/43132 "2023-11-03T13:36:07Z")

</div>

import processing.serial.\*; import java.awt.event.KeyEvent; import java.io.IOException; Serial myPort; String data=“”; float roll, pitch; void setup() { size (960, 640, P3D); myPort = new Serial(this, “COM255”, 9…

[Previous page](https://discourse.processing.org/c/processing/processing-electronics/25.md)

[Next page](https://discourse.processing.org/c/processing/processing-electronics/25.md?page=2)
