# Electronics (Arduino, etc.)

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

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

**Page:** 8

---

## [Help in Rotate Image in JAVA2D](https://discourse.processing.org/t/help-in-rotate-image-in-java2d/33852)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 4\
**Last updated:** [December 4, 2021, 11:05pm UTC](https://discourse.processing.org/t/help-in-rotate-image-in-java2d/33852 "2021-12-04T23:05:48Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \<!- I have issues rotating image. I need help please. I wish to implement Flow Rate Meter. See the attached code. I have seen examples, but mo…

---

## [Still struggling with Interactive Graph](https://discourse.processing.org/t/still-struggling-with-interactive-graph/33708)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 4\
**Last updated:** [November 25, 2021, 1:40pm UTC](https://discourse.processing.org/t/still-struggling-with-interactive-graph/33708 "2021-11-25T13:40:24Z")

</div>

Hello beginners want to ask, I want to make an interactive graph of the incoming data array. I have three types of data which are rpm, torque and power. I send all the data via the Arduino serial. I created the graph usi…

---

## [Processing Serial. list() no show anything](https://discourse.processing.org/t/processing-serial-list-no-show-anything/33714)

<div class="topic-metadata">

**Author:** [@jun](https://discourse.processing.org/u/jun)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 12:21pm UTC](https://discourse.processing.org/t/processing-serial-list-no-show-anything/33714 "2021-11-24T12:21:23Z")

</div>

Hi, I have had this problem for quite a long time, processing can’t find my serial list, even I printArray(Serial.list()); it shows nothing. Can I ask how to solve it? Or anyone knows how processing detects serial, m…

---

## [Displaying Arduino data but getting blurry, Need some help](https://discourse.processing.org/t/displaying-arduino-data-but-getting-blurry-need-some-help/33669)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 4\
**Last updated:** [November 23, 2021, 6:36am UTC](https://discourse.processing.org/t/displaying-arduino-data-but-getting-blurry-need-some-help/33669 "2021-11-23T06:36:08Z")

</div>

Hello, beginners want to ask again… I made a GUI and Display for the Arduino project and it was made using processing, where there are seven data that I will send to the display. Actually there is no error in the code t…

---

## [Make a Simple GUI and Displaying Serial Arduino data got NullPointerException](https://discourse.processing.org/t/make-a-simple-gui-and-displaying-serial-arduino-data-got-nullpointerexception/33662)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 7\
**Last updated:** [November 22, 2021, 2:01pm UTC](https://discourse.processing.org/t/make-a-simple-gui-and-displaying-serial-arduino-data-got-nullpointerexception/33662 "2021-11-22T14:01:46Z")

</div>

Hello I want to make an Arduino serial data display using processing from several sensors, but for experiments only I use 3 potentiometers. Here’s the Arduino code. #define pinPot1 0 #define pinPot2 3 #define pinPot3 5 …

---

## [How to package 12 double variables into JSON Object (Packets)](https://discourse.processing.org/t/how-to-package-12-double-variables-into-json-object-packets/33592)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 4\
**Last updated:** [November 18, 2021, 10:55am UTC](https://discourse.processing.org/t/how-to-package-12-double-variables-into-json-object-packets/33592 "2021-11-18T10:55:40Z")

</div>

\< I am developing Processing GUI for PID control. I wish to use JSON to share data between the PC and the control board. But i am having issue packaging the JSON object. I need send and receive 12 variable (double). …

---

## [Printing Serial Data from Arduino into a Processing IDE GUI](https://discourse.processing.org/t/printing-serial-data-from-arduino-into-a-processing-ide-gui/33545)

<div class="topic-metadata">

**Author:** [@Handrup](https://discourse.processing.org/u/Handrup)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 10:36am UTC](https://discourse.processing.org/t/printing-serial-data-from-arduino-into-a-processing-ide-gui/33545 "2021-11-18T10:36:13Z")

</div>

Hi guys, I need help with how I make a simple UI displaying a rising number that i am receiving from an Arduino via Serial Port

---

## [Error on my Processing GUI code for Arduino , I need some help](https://discourse.processing.org/t/error-on-my-processing-gui-code-for-arduino-i-need-some-help/33341)

<div class="topic-metadata">

**Author:** [@fdinumario](https://discourse.processing.org/u/fdinumario)\
**Replies:** 41\
**Last updated:** [November 18, 2021, 6:41am UTC](https://discourse.processing.org/t/error-on-my-processing-gui-code-for-arduino-i-need-some-help/33341 "2021-11-18T06:41:31Z")

</div>

Arduino code : #include \<Wire.h\> #include "SparkFunMPL3115A2.h" #include "SparkFun\_Si7021\_Breakout\_Library.h" MPL3115A2 myPressure; Weather myHumidity; const byte WSPEED = 3; const byte RAIN = 2; const byte STA…

---

## [Error: ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 32768](https://discourse.processing.org/t/error-arrayindexoutofboundsexception-index-1-out-of-bounds-for-length-32768/33431)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 10\
**Last updated:** [November 18, 2021, 6:08am UTC](https://discourse.processing.org/t/error-arrayindexoutofboundsexception-index-1-out-of-bounds-for-length-32768/33431 "2021-11-18T06:08:14Z")

</div>

hello! i am making this game in Processing and using a Teensy hooked up to some buttons to play the game. you know the drill haha. well… i am getting this amazingly frustrating error almost everytime i run the program, a…

---

## [How to print serial values above rect and not blur](https://discourse.processing.org/t/how-to-print-serial-values-above-rect-and-not-blur/33530)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 6\
**Last updated:** [November 17, 2021, 3:27am UTC](https://discourse.processing.org/t/how-to-print-serial-values-above-rect-and-not-blur/33530 "2021-11-17T03:27:16Z")

</div>

Hello, I’m trying to print the serial value of my Arduino just above the rect and circle, but when the value changes there is a buildup of values so it looks blurry. any suggestions for me? Sorry, I’m just learning to us…

---

## [Make a realtime serial plotter](https://discourse.processing.org/t/make-a-realtime-serial-plotter/33438)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 12\
**Last updated:** [November 11, 2021, 9:31pm UTC](https://discourse.processing.org/t/make-a-realtime-serial-plotter/33438 "2021-11-11T21:31:32Z")

</div>

Hello, I want to ask about the real time serial plotter, I have downloaded it from Sebastian Nilsson’s github, and have modified it as needed. But I’m confused to make my serial value as input update in the graph I creat…

---

## [Serial data from Arduino to Processing does not update](https://discourse.processing.org/t/serial-data-from-arduino-to-processing-does-not-update/33378)

<div class="topic-metadata">

**Author:** [@BerndKoggel](https://discourse.processing.org/u/BerndKoggel)\
**Replies:** 4\
**Last updated:** [November 8, 2021, 3:07pm UTC](https://discourse.processing.org/t/serial-data-from-arduino-to-processing-does-not-update/33378 "2021-11-08T15:07:27Z")

</div>

I have an arduino test wether two wires touch, this works. The data is stored in an array for each pin and given either a 1 or 0 if the wire connects to another. The Serial.print is used to send the data, the serial moni…

---

## [Make 2 needle rotate on its center point](https://discourse.processing.org/t/make-2-needle-rotate-on-its-center-point/33265)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 13\
**Last updated:** [November 3, 2021, 10:42pm UTC](https://discourse.processing.org/t/make-2-needle-rotate-on-its-center-point/33265 "2021-11-03T22:42:30Z")

</div>

Hi everyone, I am a mechanical engineering student who is making a dynotest project where I will visualize the serial monitor value from Arduino using processing. I’m making two gauges. However, one of the needles of…

---

## [Linedrawing Processing webcam video keypressed reset problem](https://discourse.processing.org/t/linedrawing-processing-webcam-video-keypressed-reset-problem/33128)

<div class="topic-metadata">

**Author:** [@jinjin](https://discourse.processing.org/u/jinjin)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 3:19pm UTC](https://discourse.processing.org/t/linedrawing-processing-webcam-video-keypressed-reset-problem/33128 "2021-10-30T15:19:20Z")

</div>

I am a student studying processing. Currently, I am implementing a real-time line drawing code using a webcam and I am currently facing a problem. In the current code, I want to press q to start the video, press s to s…

---

## [Serial communication between Arduino and Processing and resetting the sketch problem](https://discourse.processing.org/t/serial-communication-between-arduino-and-processing-and-resetting-the-sketch-problem/33117)

<div class="topic-metadata">

**Author:** [@jinjin](https://discourse.processing.org/u/jinjin)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 3:07pm UTC](https://discourse.processing.org/t/serial-communication-between-arduino-and-processing-and-resetting-the-sketch-problem/33117 "2021-10-30T15:07:09Z")

</div>

Hello, I am a student who is working hard on a project. I’m currently using Arduino’s heart rate sensor to create a line drawing that changes the thickness of the line in real time. But I’m facing two problems now. On…

---

## [Sound processing IN and OUT issues](https://discourse.processing.org/t/sound-processing-in-and-out-issues/33006)

<div class="topic-metadata">

**Author:** [@Travasso](https://discourse.processing.org/u/Travasso)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 6:29pm UTC](https://discourse.processing.org/t/sound-processing-in-and-out-issues/33006 "2021-10-22T18:29:31Z")

</div>

Hi everyone, I am having some problems with my code, and maybe someone could help me. I am doing a code where I use sensors to start audio playback and to start some sound effects. When I separate the codes - audio play…

---

## [Processing quiz](https://discourse.processing.org/t/processing-quiz/32784)

<div class="topic-metadata">

**Author:** [@Rayenblue](https://discourse.processing.org/u/Rayenblue)\
**Replies:** 11\
**Last updated:** [October 17, 2021, 3:10pm UTC](https://discourse.processing.org/t/processing-quiz/32784 "2021-10-17T15:10:26Z")

</div>

Hello Everyone ! I have a project with my university, i have to create à quizz which you can chose the answer by using Arduino button. For the moment i can’t send the stat of my button to processing and i dont know why. …

---

## [Trying to wrangle serial data from an Arduino](https://discourse.processing.org/t/trying-to-wrangle-serial-data-from-an-arduino/32720)

<div class="topic-metadata">

**Author:** [@pl4sma2389](https://discourse.processing.org/u/pl4sma2389)\
**Replies:** 17\
**Last updated:** [October 12, 2021, 12:13am UTC](https://discourse.processing.org/t/trying-to-wrangle-serial-data-from-an-arduino/32720 "2021-10-12T00:13:55Z")

</div>

Hello all, I’ve been working on a project for the last few days. It’s a very simple LiDAR scanner turret. It scans from right to left, steps up, and then scans right to left again, repeating this for a set amount of sca…

---

## [Could not run the sketch (Target VM failed to initialize)](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize/1841)

<div class="topic-metadata">

**Author:** [@jkarlos4](https://discourse.processing.org/u/jkarlos4)\
**Replies:** 6\
**Last updated:** [October 5, 2021, 2:54am UTC](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize/1841 "2021-10-05T02:54:33Z")

</div>

Help, I am getting this error message every time a run a code: Could not run the sketch (Target VM failed to initialize). have tried to run other included examples and they work pretty well, but not my code. here it is: …

---

## [Wait between port writes](https://discourse.processing.org/t/wait-between-port-writes/32550)

<div class="topic-metadata">

**Author:** [@PaladinBobcat](https://discourse.processing.org/u/PaladinBobcat)\
**Replies:** 4\
**Last updated:** [October 3, 2021, 7:56pm UTC](https://discourse.processing.org/t/wait-between-port-writes/32550 "2021-10-03T19:56:37Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m trying to figure out a way to wait a certain amount of time between sending serial data to my arduino. I want to be a able to “animate” wha…

---

## [Intermittent ArrayIndexOutOfBoundsException reading thermopile over serial](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361)

<div class="topic-metadata">

**Author:** [@The\_Wolf\_of\_Walmart](https://discourse.processing.org/u/The_Wolf_of_Walmart)\
**Replies:** 9\
**Last updated:** [September 26, 2021, 5:09pm UTC](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361 "2021-09-26T17:09:10Z")

</div>

Hello all. I’m trying to integrate the heatcam example sketches(Github) related to the Grid Eye Qwiik breakout from Sparkfun, into a bigger project, but am not able to it running reliably on it’s own. When it works, it w…

---

## [How to fix this ControlEvent issue](https://discourse.processing.org/t/how-to-fix-this-controlevent-issue/32351)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 10:02pm UTC](https://discourse.processing.org/t/how-to-fix-this-controlevent-issue/32351 "2021-09-21T22:02:56Z")

</div>

I am using Processing IDE with Java language. There are serial port writings for lighting some LEDs and my aim was; send the c (Color) from cp (colorpicker) to the corresponding LEDs. Since I have too many LED areas, I…

---

## [Arduino RFID and Processing Connection](https://discourse.processing.org/t/arduino-rfid-and-processing-connection/32108)

<div class="topic-metadata">

**Author:** [@angoldini01](https://discourse.processing.org/u/angoldini01)\
**Replies:** 12\
**Last updated:** [September 16, 2021, 1:51pm UTC](https://discourse.processing.org/t/arduino-rfid-and-processing-connection/32108 "2021-09-16T13:51:22Z")

</div>

Hey, I’m currently working on a project where I want to switch the colors of a square in processing through using rfid chips with arduino. So everytime I place a rfid-chip on my rfid-reader, arduino should send the data…

---

## [Saving data in Processing](https://discourse.processing.org/t/saving-data-in-processing/32136)

<div class="topic-metadata">

**Author:** [@nyeas001](https://discourse.processing.org/u/nyeas001)\
**Replies:** 6\
**Last updated:** [September 7, 2021, 7:24pm UTC](https://discourse.processing.org/t/saving-data-in-processing/32136 "2021-09-07T19:24:57Z")

</div>

Hi, I am trying to save data in a table in processing. Data is pressure sensor data collected through serial monitor of Arduino. I am getting a error message which I could not resolve. Code import processing.serial.\*;…

---

## [Graphing analog sensor data from Arduino in Processing](https://discourse.processing.org/t/graphing-analog-sensor-data-from-arduino-in-processing/32078)

<div class="topic-metadata">

**Author:** [@nyeas001](https://discourse.processing.org/u/nyeas001)\
**Replies:** 2\
**Last updated:** [September 4, 2021, 9:08am UTC](https://discourse.processing.org/t/graphing-analog-sensor-data-from-arduino-in-processing/32078 "2021-09-04T09:08:35Z")

</div>

Hi, I am totally new in processing. I was following some of the you tube materials to familiarize myself with processing.I wanted to plot a graph of analog sensor using arduino. But I am getting error and I could not f…

---

## [Using Processing to create a visual numeric keyboard for Arduino](https://discourse.processing.org/t/using-processing-to-create-a-visual-numeric-keyboard-for-arduino/32060)

<div class="topic-metadata">

**Author:** [@Norac](https://discourse.processing.org/u/Norac)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 5:01pm UTC](https://discourse.processing.org/t/using-processing-to-create-a-visual-numeric-keyboard-for-arduino/32060 "2021-09-02T17:01:35Z")

</div>

I create a code to use the Processing interface as a numeric Keyboard for my arduino Mega. It works just fine i keep becoming this warning. can somebody tell me what i did wrong? :face\_with\_raised\_eyebrow: import contro…

---

## [Text Input How To?](https://discourse.processing.org/t/text-input-how-to/32031)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 4\
**Last updated:** [September 1, 2021, 11:09am UTC](https://discourse.processing.org/t/text-input-how-to/32031 "2021-09-01T11:09:26Z")

</div>

Hi guys, I am stuck with something here. I am making an Eeprom editor for my for my DIY guitar effect switcher and I have implemented an eeprom emulation for it. That is working great. The emulated eeprom bytes are st…

---

## [How to do the same as "uint16\_t read\_data\[8192\];" in Processing?](https://discourse.processing.org/t/how-to-do-the-same-as-uint16-t-read-data-8192-in-processing/31891)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 24\
**Last updated:** [August 25, 2021, 3:29pm UTC](https://discourse.processing.org/t/how-to-do-the-same-as-uint16-t-read-data-8192-in-processing/31891 "2021-08-25T15:29:42Z")

</div>

As the title says, How to do the same as “uint16\_t read\_data\[8192\];” in processing? Thank you in advance for your answers. João

---

## [textAlign(CENTER) seems to move all lines in the window instead of ony one](https://discourse.processing.org/t/textalign-center-seems-to-move-all-lines-in-the-window-instead-of-ony-one/31846)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 4\
**Last updated:** [August 22, 2021, 10:26pm UTC](https://discourse.processing.org/t/textalign-center-seems-to-move-all-lines-in-the-window-instead-of-ony-one/31846 "2021-08-22T22:26:34Z")

</div>

I am having a problem with trying to center just one line of text. I think I am applying “textAlign(CENTER)” to just one line, but it is also offsetting all the other text in the window. Here is my complete code. Thank y…

---

## [ControlP5 Button function seems to ignore Text command at the beginning](https://discourse.processing.org/t/controlp5-button-function-seems-to-ignore-text-command-at-the-beginning/31781)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 6\
**Last updated:** [August 22, 2021, 1:43am UTC](https://discourse.processing.org/t/controlp5-button-function-seems-to-ignore-text-command-at-the-beginning/31781 "2021-08-22T01:43:25Z")

</div>

Hi guys, new to this forum and to Processing. Trying to learn but i can see it will be a steep curve, even if I can do some little arduino coding :frowning: I am having a few problems with my code, and one of them is th…

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

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