# Electronics (Arduino, etc.)

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

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

**Page:** 15

---

## [New here and in need of help!](https://discourse.processing.org/t/new-here-and-in-need-of-help/19079)

<div class="topic-metadata">

**Author:** [@NiteOwl](https://discourse.processing.org/u/NiteOwl)\
**Replies:** 11\
**Last updated:** [April 1, 2020, 3:18pm UTC](https://discourse.processing.org/t/new-here-and-in-need-of-help/19079 "2020-04-01T15:18:29Z")

</div>

Hello to whomever might read this. I am a coder and have been for 40 years of coding experience but mostly programs written on my own. I love to work in the processing language but I do have my limits which is why I am h…

---

## [Problem Plotting Using Grafica & serialEvent()](https://discourse.processing.org/t/problem-plotting-using-grafica-serialevent/19005)

<div class="topic-metadata">

**Author:** [@atomo](https://discourse.processing.org/u/atomo)\
**Replies:** 7\
**Last updated:** [March 31, 2020, 6:21pm UTC](https://discourse.processing.org/t/problem-plotting-using-grafica-serialevent/19005 "2020-03-31T18:21:11Z")

</div>

Hello, this is my first post. I’ve used Arduino for a couple of years now but I am new to processing. I’m trying to create a fixture that turns a stepper motor with an Arduino while simultaneously reads the torque output…

---

## [Graph in processing](https://discourse.processing.org/t/graph-in-processing/5255)

<div class="topic-metadata">

**Author:** [@martijnroks](https://discourse.processing.org/u/martijnroks)\
**Replies:** 1\
**Last updated:** [March 29, 2020, 8:28pm UTC](https://discourse.processing.org/t/graph-in-processing/5255 "2020-03-29T20:28:32Z")

</div>

Hello, I need to make a graph with GPS information embedded into it. I need to have the let and long in the graph. We get the information from the arduino with the sensor GP20U7. The graph needs to show a realtime loc…

---

## [Setting map ranges suitably](https://discourse.processing.org/t/setting-map-ranges-suitably/19130)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [March 29, 2020, 8:11pm UTC](https://discourse.processing.org/t/setting-map-ranges-suitably/19130 "2020-03-29T20:11:23Z")

</div>

Hello everyone! can some one please explain to me why my map parameters of both Arduino and processing codes are not fluidly animating the array of pngs I have declared and then stopping with an ArrayIndexOutBoundsExcept…

---

## [Parsing a string to an integer](https://discourse.processing.org/t/parsing-a-string-to-an-integer/19102)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 4:39pm UTC](https://discourse.processing.org/t/parsing-a-string-to-an-integer/19102 "2020-03-28T16:39:55Z")

</div>

Hello everyone, I wrote a processing program where and array of png’s animate with the system variable mouseY using the map function. It works, but now I want to change the mouseY and animate with the ultrasonic data com…

---

## [How to draw a continuous line with sensor values from Arduino](https://discourse.processing.org/t/how-to-draw-a-continuous-line-with-sensor-values-from-arduino/19033)

<div class="topic-metadata">

**Author:** [@Gbouna](https://discourse.processing.org/u/Gbouna)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 2:23pm UTC](https://discourse.processing.org/t/how-to-draw-a-continuous-line-with-sensor-values-from-arduino/19033 "2020-03-26T14:23:46Z")

</div>

Hello; I’m so new to processing and I need help with my code. Basically i have a sensor connected to Arduino that sends out data of an array of data. I’m able to send the data to processing and gets them converted to i…

---

## [Question about trims and integers](https://discourse.processing.org/t/question-about-trims-and-integers/18255)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [March 22, 2020, 3:53pm UTC](https://discourse.processing.org/t/question-about-trims-and-integers/18255 "2020-03-22T15:53:31Z")

</div>

String\[\] a = split(receivedString, ','); println(a\[0\]); println(a\[1\]); println(a\[2\]); println(a\[3\]); println(a\[4\]); println(a\[5\]); println(a\[6\]); int val1 = Integer.parseInt(a\[0\].trim()); int val2 = Integer.par…

---

## [Transform Array of float into an other Array or ArrayList](https://discourse.processing.org/t/transform-array-of-float-into-an-other-array-or-arraylist/18596)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [March 22, 2020, 7:34am UTC](https://discourse.processing.org/t/transform-array-of-float-into-an-other-array-or-arraylist/18596 "2020-03-22T07:34:43Z")

</div>

Hello, I’m trying to transform data of 5 differences phases in order to have it constrained and mapped positively between 200 and 12000. I did like this: for (int i = 0; i \< net.size; i++) {. // 5 phases coupled in a…

---

## [How to change the properties of class with sensor data from Arduino](https://discourse.processing.org/t/how-to-change-the-properties-of-class-with-sensor-data-from-arduino/18638)

<div class="topic-metadata">

**Author:** [@Gbouna](https://discourse.processing.org/u/Gbouna)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 6:03am UTC](https://discourse.processing.org/t/how-to-change-the-properties-of-class-with-sensor-data-from-arduino/18638 "2020-03-18T06:03:25Z")

</div>

Hello; I’m so new to processing and I need help with my code. Basically i have a sensor connected to Arduino that sends out data of an array of data. I’m able to send the data to processing and gets them converted to i…

---

## [ArrayIndexOutOfBoundsException: 0](https://discourse.processing.org/t/arrayindexoutofboundsexception-0/18709)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 9:55am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-0/18709 "2020-03-17T09:55:17Z")

</div>

Hello everyone, I have this error when I just want to rename a table like this in void draw: phazi \[i\] = net.phase \[i\]; I’m just posting a “light” program below if you see something badly written. net.phase\[i\] com fr…

---

## [Add a counter to know the number of revolution](https://discourse.processing.org/t/add-a-counter-to-know-the-number-of-revolution/18655)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 4\
**Last updated:** [March 16, 2020, 1:45pm UTC](https://discourse.processing.org/t/add-a-counter-to-know-the-number-of-revolution/18655 "2020-03-16T13:45:31Z")

</div>

Hello gentlemen! I would like to have a fonction telling me the number the revolution when I control the rotation of the axis with the keypads 0 and P. (the program is below) At the beginning, I should have 0, and at t…

---

## [Combining Processing Code](https://discourse.processing.org/t/combining-processing-code/18583)

<div class="topic-metadata">

**Author:** [@kristipham](https://discourse.processing.org/u/kristipham)\
**Replies:** 2\
**Last updated:** [March 11, 2020, 12:35pm UTC](https://discourse.processing.org/t/combining-processing-code/18583 "2020-03-11T12:35:08Z")

</div>

I am controlling multiple LEDs and was able to get a simple code running in Processing with Arduino. My master code controls the LEDS based on an RTD clock module while a sensor reads the amount of lux the lighting array…

---

## [Parsing GPS Data - Partially Working](https://discourse.processing.org/t/parsing-gps-data-partially-working/18435)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 8\
**Last updated:** [March 11, 2020, 11:58am UTC](https://discourse.processing.org/t/parsing-gps-data-partially-working/18435 "2020-03-11T11:58:13Z")

</div>

I’ve connected a GPS antenna to my laptop. With several attempts to troubleshoot the code, It appears the issue is within serialEvent(), and/or my parsing structure. If I print(inString); to the console, I can see the…

---

## [Data Acquiring Delay](https://discourse.processing.org/t/data-acquiring-delay/18438)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 10\
**Last updated:** [March 6, 2020, 11:51am UTC](https://discourse.processing.org/t/data-acquiring-delay/18438 "2020-03-06T11:51:04Z")

</div>

I am using processing software to acquire data from 4 arduino microcontrollers simultaneously. I have seen that after a few minutes data plotting gets delayed and increasing it. At initially it works fine and the latt…

---

## [Find a tip to inform the position to the stepper motor](https://discourse.processing.org/t/find-a-tip-to-inform-the-position-to-the-stepper-motor/17644)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 4\
**Last updated:** [March 10, 2020, 5:29pm UTC](https://discourse.processing.org/t/find-a-tip-to-inform-the-position-to-the-stepper-motor/17644 "2020-03-10T17:29:20Z")

</div>

n Processing, I made a simulation where I run an engine over several revolutions at a certain speed and in both directions. I can track the position of the simulated motor using a stepper motor. By giving the position …

---

## [G4P/grafica multiwindow plot crash](https://discourse.processing.org/t/g4p-grafica-multiwindow-plot-crash/18440)

<div class="topic-metadata">

**Author:** [@cannocchiale](https://discourse.processing.org/u/cannocchiale)\
**Replies:** 6\
**Last updated:** [March 10, 2020, 10:10am UTC](https://discourse.processing.org/t/g4p-grafica-multiwindow-plot-crash/18440 "2020-03-10T10:10:30Z")

</div>

Hello everyone, I’m having a stability issue when using G4P and grafica libraries. I want to create a program which reads a serial string sent by arduino. It is a two-channel pressure measurements - an E and an F channe…

---

## [Problem with the use of several sensors, Arduino / Processing](https://discourse.processing.org/t/problem-with-the-use-of-several-sensors-arduino-processing/18118)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 4\
**Last updated:** [March 9, 2020, 12:28am UTC](https://discourse.processing.org/t/problem-with-the-use-of-several-sensors-arduino-processing/18118 "2020-03-09T00:28:55Z")

</div>

Cordial greeting, I am working on a project where I require the use of several sensors and visualize them in processing. I am currently using this code. import processing.serial.\*; Serial puerto; // se declara una vari…

---

## [Problem with moving the zero of the graph](https://discourse.processing.org/t/problem-with-moving-the-zero-of-the-graph/18117)

<div class="topic-metadata">

**Author:** [@Priscilla\_van\_Gritte](https://discourse.processing.org/u/Priscilla_van_Gritte)\
**Replies:** 5\
**Last updated:** [March 8, 2020, 10:08pm UTC](https://discourse.processing.org/t/problem-with-moving-the-zero-of-the-graph/18117 "2020-03-08T22:08:07Z")

</div>

Hello good night, I am working on a project where I am using several sensors, but I only have to graph one of them the air sensor or “inByte \[2\]”, the problem is that the zero of this sensor is very down in the graph and…

---

## [Is USB hub sufficient to control 4 Arduino boards?](https://discourse.processing.org/t/is-usb-hub-sufficient-to-control-4-arduino-boards/18378)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 7:09pm UTC](https://discourse.processing.org/t/is-usb-hub-sufficient-to-control-4-arduino-boards/18378 "2020-03-07T19:09:59Z")

</div>

I am acquiring data from 4 arduino boards (3 Nano and 1 Uno) using serial communication. The USBs of each ardunio is connected to a USB hub device. From USB hub outlet is connected to the PC. I am plotting the received …

---

## [LED CONTROL Serial myPort vs. Serial port](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293)

<div class="topic-metadata">

**Author:** [@kristipham](https://discourse.processing.org/u/kristipham)\
**Replies:** 15\
**Last updated:** [March 6, 2020, 4:47am UTC](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293 "2020-03-06T04:47:34Z")

</div>

I am trying to control multiple LEDs but I am not quite sure on how to adjust my code accordingly. I have a master code that runs an RTC clock module and a light sensor to an LED. I have separated both my codes. I was ab…

---

## [Why can I not draw in the serialEvent() function?](https://discourse.processing.org/t/why-can-i-not-draw-in-the-serialevent-function/18032)

<div class="topic-metadata">

**Author:** [@tophee](https://discourse.processing.org/u/tophee)\
**Replies:** 6\
**Last updated:** [February 24, 2020, 10:09am UTC](https://discourse.processing.org/t/why-can-i-not-draw-in-the-serialevent-function/18032 "2020-02-24T10:09:55Z")

</div>

When I put the text("Bla", 30,30) in the loop, it works, i.e. it prints “Bla” on my Canvas. void Draw() { text("Bla", 30,30); } But when I but the same code into the serialEvent() function and trigger it by receiving…

---

## [How to get a .pdf export in correct dimensions?](https://discourse.processing.org/t/how-to-get-a-pdf-export-in-correct-dimensions/14094)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 13\
**Last updated:** [February 23, 2020, 6:12am UTC](https://discourse.processing.org/t/how-to-get-a-pdf-export-in-correct-dimensions/14094 "2020-02-23T06:12:56Z")

</div>

Hello! Intro: This is my very first (of many) post in this forum and it is about the issue that made me find this community. A couple of years back I found a “digitizer” project online. (measuring arm) I bought the…

---

## [Kinect interacting with LED's (processing & Arduino)](https://discourse.processing.org/t/kinect-interacting-with-leds-processing-arduino/10799)

<div class="topic-metadata">

**Author:** [@juriaan](https://discourse.processing.org/u/juriaan)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 10:09pm UTC](https://discourse.processing.org/t/kinect-interacting-with-leds-processing-arduino/10799 "2020-02-20T22:09:27Z")

</div>

0 I use a neopixel 6x6 led matrix (ws2812) + Arduino Uno I wrote a small code that uses Kinect to track movement in processing. It displays everything between the depth of 300 & 500 in pixels. I want this to be displa…

---

## [The slider of cp5 library is not responsive](https://discourse.processing.org/t/the-slider-of-cp5-library-is-not-responsive/17856)

<div class="topic-metadata">

**Author:** [@Kamel](https://discourse.processing.org/u/Kamel)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 6:53am UTC](https://discourse.processing.org/t/the-slider-of-cp5-library-is-not-responsive/17856 "2020-02-19T06:53:06Z")

</div>

hello everyone i am using cp5 library to get and represent json data “sensors values” from arduino and from the processing program i want to send to parameters to arduino “percentage and frequency”, i am using two slide…

---

## [Arduino + Processing Serial Port DATA TRANSFER](https://discourse.processing.org/t/arduino-processing-serial-port-data-transfer/16968)

<div class="topic-metadata">

**Author:** [@kristipham](https://discourse.processing.org/u/kristipham)\
**Replies:** 16\
**Last updated:** [February 19, 2020, 2:49am UTC](https://discourse.processing.org/t/arduino-processing-serial-port-data-transfer/16968 "2020-02-19T02:49:59Z")

</div>

This is my control center which displays the buttons for each room. I am wanting to turn on the lights in one room and have my light sensor transfer the data from Arduino’s serial port into Processing to display the read…

---

## [I2C Connection not working with MAX517](https://discourse.processing.org/t/i2c-connection-not-working-with-max517/17399)

<div class="topic-metadata">

**Author:** [@Samsanit](https://discourse.processing.org/u/Samsanit)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 8:50pm UTC](https://discourse.processing.org/t/i2c-connection-not-working-with-max517/17399 "2020-02-17T20:50:17Z")

</div>

Hi all, I’m working on a project using a MAX517 Digital to Analog converter, however I’m having some trouble getting the I2C connection to work properly. I’m able to pick up that there is an I2C device using the println…

---

## [Sketch running slow](https://discourse.processing.org/t/sketch-running-slow/17778)

<div class="topic-metadata">

**Author:** [@irmantas](https://discourse.processing.org/u/irmantas)\
**Replies:** 14\
**Last updated:** [February 14, 2020, 2:49pm UTC](https://discourse.processing.org/t/sketch-running-slow/17778 "2020-02-14T14:49:51Z")

</div>

I have a sketch which was running fine on win10 pc. But I upgraded pc and now same sketch is running much slower. Any ideas what may be wrong ?

---

## [How to Read 2 Packets of Data at Once - MPU6050](https://discourse.processing.org/t/how-to-read-2-packets-of-data-at-once-mpu6050/5793)

<div class="topic-metadata">

**Author:** [@yodayoshi](https://discourse.processing.org/u/yodayoshi)\
**Replies:** 5\
**Last updated:** [February 13, 2020, 10:38am UTC](https://discourse.processing.org/t/how-to-read-2-packets-of-data-at-once-mpu6050/5793 "2020-02-13T10:38:43Z")

</div>

Hello, I am trying to extend the teapot demo from Jeff Rowberg to be able to show a graphical representation of 2 MPU 6050 sensors instead of just the one. I have modified the Arduino sketch to be able to take in values …

---

## [Position / rotation conversion](https://discourse.processing.org/t/position-rotation-conversion/17610)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [February 13, 2020, 10:33am UTC](https://discourse.processing.org/t/position-rotation-conversion/17610 "2020-02-13T10:33:09Z")

</div>

Hello, I run motors in Processing with position data from 0 to 4096 for a revolution. I have a stepper motor in Arduino which follows its positions very well. :grinning: The problem is when the simulated motor arrives…

---

## [Extracting bits from serial stream?](https://discourse.processing.org/t/extracting-bits-from-serial-stream/17647)

<div class="topic-metadata">

**Author:** [@steve\_j](https://discourse.processing.org/u/steve_j)\
**Replies:** 8\
**Last updated:** [February 13, 2020, 12:02am UTC](https://discourse.processing.org/t/extracting-bits-from-serial-stream/17647 "2020-02-13T00:02:35Z")

</div>

Im trying to parse the serial data from a sensor but i (think?) im struggling to format the angle offset correctly, Below is the format of the packet i am receiving and relevant descriptions. my distance and start …

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

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