# Electronics (Arduino, etc.)

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

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

**Page:** 10

---

## [Infrared remote control](https://discourse.processing.org/t/infrared-remote-control/29301)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 9\
**Last updated:** [May 23, 2021, 8:36pm UTC](https://discourse.processing.org/t/infrared-remote-control/29301 "2021-05-23T20:36:50Z")

</div>

I found this sketch on a Japanese site and it has several errors i fix some of them but still not working any help thanks everyone import processing.serial.\*; Serial myPort ; int \[\] recv\_data = new int \[ 20…

---

## [How to make array ip address UDP message when receiving colour arrays from Processing on Arduino](https://discourse.processing.org/t/how-to-make-array-ip-address-udp-message-when-receiving-colour-arrays-from-processing-on-arduino/29843)

<div class="topic-metadata">

**Author:** [@eunbiline98](https://discourse.processing.org/u/eunbiline98)\
**Replies:** 4\
**Last updated:** [May 11, 2021, 9:46pm UTC](https://discourse.processing.org/t/how-to-make-array-ip-address-udp-message-when-receiving-colour-arrays-from-processing-on-arduino/29843 "2021-05-11T21:46:15Z")

</div>

I have successfully sent colour array to esp32,but i have a problem if run program processing sometimes like quitting program and notification “WARNING: no real random source present! Could not run the sketch (Target VM…

---

## [Bluetooth issue - com port busy when restarting a new program](https://discourse.processing.org/t/bluetooth-issue-com-port-busy-when-restarting-a-new-program/29297)

<div class="topic-metadata">

**Author:** [@Neuro503](https://discourse.processing.org/u/Neuro503)\
**Replies:** 4\
**Last updated:** [April 23, 2021, 6:23pm UTC](https://discourse.processing.org/t/bluetooth-issue-com-port-busy-when-restarting-a-new-program/29297 "2021-04-23T18:23:14Z")

</div>

Hi All, This is essentially a com port busy issue. I am unable to find a solution for this other than resetting the M5stickC. (Basically a ESP32) The M5stickC is programmed as a bluetooth device. It sends data out cons…

---

## [Wiimote + Processing 3](https://discourse.processing.org/t/wiimote-processing-3/27668)

<div class="topic-metadata">

**Author:** [@Litotitus](https://discourse.processing.org/u/Litotitus)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 7:33pm UTC](https://discourse.processing.org/t/wiimote-processing-3/27668 "2021-04-19T19:33:10Z")

</div>

Hello, I rediscovered my old Wiimote controller and I am trying to make it work with Processing 3.5.4. I am using a MacbookPro with macOS Catalina. I already tried out several things but mainly my problem is that the u…

---

## [HeatCam examples .... Please help!](https://discourse.processing.org/t/heatcam-examples-please-help/29390)

<div class="topic-metadata">

**Author:** [@SLEE](https://discourse.processing.org/u/SLEE)\
**Replies:** 6\
**Last updated:** [April 19, 2021, 1:57pm UTC](https://discourse.processing.org/t/heatcam-examples-please-help/29390 "2021-04-19T13:57:17Z")

</div>

Hi! I’m the real beginner in this field :frowning: I tried to follow various examples with my Sparkfun parts. And I’m trying to do the example with processing Heatcam. ( Example 4 - Processing Heat Cam) I do everythi…

---

## [General wondering about Kinect like devices and clever cameras](https://discourse.processing.org/t/general-wondering-about-kinect-like-devices-and-clever-cameras/29489)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 10:04am UTC](https://discourse.processing.org/t/general-wondering-about-kinect-like-devices-and-clever-cameras/29489 "2021-04-19T10:04:15Z")

</div>

Kinect is (Kinect was !) a great tool to use with Processing for interactive installations, but Microsoft ended it. It is still possible, though, to buy used ones, and they’re even not very expensive. But how is it goin…

---

## [Export with serial () library does not work](https://discourse.processing.org/t/export-with-serial-library-does-not-work/29417)

<div class="topic-metadata">

**Author:** [@Liu.Exit](https://discourse.processing.org/u/Liu.Exit)\
**Replies:** 5\
**Last updated:** [April 19, 2021, 9:40am UTC](https://discourse.processing.org/t/export-with-serial-library-does-not-work/29417 "2021-04-19T09:40:56Z")

</div>

Good morning all, My sketch works fine with IDE but after an export (.exe) the program crashes. (Both x32 and x64.) This only happens when I introduce the SERIAL library. Anyone know why? I am not the only one with th…

---

## [Why my Serial Port stays busy?](https://discourse.processing.org/t/why-my-serial-port-stays-busy/15844)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 12\
**Last updated:** [April 18, 2021, 8:22pm UTC](https://discourse.processing.org/t/why-my-serial-port-stays-busy/15844 "2021-04-18T20:22:01Z")

</div>

I am using a Win 10 Surface tablet to display settings of my robot arm. My data stream comes through a HC 06 Arduino BT dongle at 57600 baud, paired with the tablet. It worked fine when the sketches were small but now …

---

## [Arduino write data - serial](https://discourse.processing.org/t/arduino-write-data-serial/29128)

<div class="topic-metadata">

**Author:** [@HITman](https://discourse.processing.org/u/HITman)\
**Replies:** 10\
**Last updated:** [April 8, 2021, 11:56pm UTC](https://discourse.processing.org/t/arduino-write-data-serial/29128 "2021-04-08T23:56:08Z")

</div>

Hello, Can someone help me with processing serial code. I have a txt file with gcode, what I need is to open that file, ( for example positions.txt ) read line by line ( array ) and using timer ( delay ) send line b…

---

## [Having two different thick lines in one sketch](https://discourse.processing.org/t/having-two-different-thick-lines-in-one-sketch/29216)

<div class="topic-metadata">

**Author:** [@Estefania](https://discourse.processing.org/u/Estefania)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 1:31pm UTC](https://discourse.processing.org/t/having-two-different-thick-lines-in-one-sketch/29216 "2021-04-08T13:31:01Z")

</div>

I have a question concerning drawing different thick lines in my sketch. If I want to draw two lines and each of them should use a different stroke weight - how would I do this in Processing? My code: import processing…

---

## [Problems in interaction between Arduino and Processing](https://discourse.processing.org/t/problems-in-interaction-between-arduino-and-processing/29195)

<div class="topic-metadata">

**Author:** [@Yoollow](https://discourse.processing.org/u/Yoollow)\
**Replies:** 3\
**Last updated:** [April 8, 2021, 7:18am UTC](https://discourse.processing.org/t/problems-in-interaction-between-arduino-and-processing/29195 "2021-04-08T07:18:01Z")

</div>

Hello, I’m having problems in the following exercise: I have created a grid of 9 cells on Processing, i cyclically color in yellow the diagonal ones. From my Arduino code i want to send the information about which of …

---

## [Piano on arduino and processing](https://discourse.processing.org/t/piano-on-arduino-and-processing/29159)

<div class="topic-metadata">

**Author:** [@sugievlos](https://discourse.processing.org/u/sugievlos)\
**Replies:** 5\
**Last updated:** [April 7, 2021, 1:30pm UTC](https://discourse.processing.org/t/piano-on-arduino-and-processing/29159 "2021-04-07T13:30:17Z")

</div>

Hello everyone! I have a problem with a project and I was wondering if one of you could help me, im new to processing :smile:. I have to do a piano on arduino, and with processing, play the note on my computers’s speake…

---

## [Problems with converting a String to a float](https://discourse.processing.org/t/problems-with-converting-a-string-to-a-float/28761)

<div class="topic-metadata">

**Author:** [@Nick2](https://discourse.processing.org/u/Nick2)\
**Replies:** 12\
**Last updated:** [April 3, 2021, 9:46am UTC](https://discourse.processing.org/t/problems-with-converting-a-string-to-a-float/28761 "2021-04-03T09:46:15Z")

</div>

Hi! Im trying to display my sensor temperature thats hooked up with the arduino. The project is basiclly to display temperature in little rectangles with the colors:RGB, but to do that I first have to split my String an…

---

## [Conditioning the sketch on finding the COM port trouble](https://discourse.processing.org/t/conditioning-the-sketch-on-finding-the-com-port-trouble/28910)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 8\
**Last updated:** [April 3, 2021, 2:32am UTC](https://discourse.processing.org/t/conditioning-the-sketch-on-finding-the-com-port-trouble/28910 "2021-04-03T02:32:12Z")

</div>

I have a sketch that talks to an Arduino. I would like it to stop and warn me when the arduino is not present so I tried: void setup() { size(1900, 950, JAVA2D); printArray(Serial.list()); if (Serial.list().le…

---

## [NullPointerException when work with Leap Motion and Arduino](https://discourse.processing.org/t/nullpointerexception-when-work-with-leap-motion-and-arduino/28984)

<div class="topic-metadata">

**Author:** [@Negos](https://discourse.processing.org/u/Negos)\
**Replies:** 3\
**Last updated:** [March 31, 2021, 7:18am UTC](https://discourse.processing.org/t/nullpointerexception-when-work-with-leap-motion-and-arduino/28984 "2021-03-31T07:18:11Z")

</div>

I write the code to collect the data of Leap Motion, but show me a NullPointerException (at line 27). I’m just a beginner in Processing, What can I do to solve this problem? Please help me. This is coding: import proc…

---

## [Timer problem with the value](https://discourse.processing.org/t/timer-problem-with-the-value/28858)

<div class="topic-metadata">

**Author:** [@david27266361313](https://discourse.processing.org/u/david27266361313)\
**Replies:** 5\
**Last updated:** [March 27, 2021, 10:21pm UTC](https://discourse.processing.org/t/timer-problem-with-the-value/28858 "2021-03-27T22:21:23Z")

</div>

I have problem with my timer ,this homework is connect with arduino. My problem is when val==4,the value of sec won’t go properly, it just decrease maybe ten or more at a time,and I want it to decrease one second at a ti…

---

## [Make timer state ON and timer state OFF Android to Arduino via bluetooth](https://discourse.processing.org/t/make-timer-state-on-and-timer-state-off-android-to-arduino-via-bluetooth/28668)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 17\
**Last updated:** [March 23, 2021, 11:08pm UTC](https://discourse.processing.org/t/make-timer-state-on-and-timer-state-off-android-to-arduino-via-bluetooth/28668 "2021-03-23T23:08:43Z")

</div>

Who help me code example for: Make timer state ON and timer state OFF Android to Arduino via bluetooth

---

## [Serial port left open when sketch program closed](https://discourse.processing.org/t/serial-port-left-open-when-sketch-program-closed/28592)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 11:35am UTC](https://discourse.processing.org/t/serial-port-left-open-when-sketch-program-closed/28592 "2021-03-17T11:35:45Z")

</div>

Serial port opened by sketch is left open . When I try to run sketch again it fails with port busy try - catch exception doesn’t work on re running program to close open port then reopen. Is there a way , other than re…

---

## [A simple data split , what am I doing wrong?](https://discourse.processing.org/t/a-simple-data-split-what-am-i-doing-wrong/28551)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 9:02pm UTC](https://discourse.processing.org/t/a-simple-data-split-what-am-i-doing-wrong/28551 "2021-03-15T21:02:48Z")

</div>

I am receiving a 2 value string from an arduino delimited by a space. if(serialConnect) { if (myPort.available() \> 0) { IncomingSTR = myPort.readStringUntil(lf); //println (IncomingStr); if (IncomingSTR !=…

---

## [Loop through serial ports](https://discourse.processing.org/t/loop-through-serial-ports/28442)

<div class="topic-metadata">

**Author:** [@Konstanitn](https://discourse.processing.org/u/Konstanitn)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 2:23am UTC](https://discourse.processing.org/t/loop-through-serial-ports/28442 "2021-03-15T02:23:07Z")

</div>

Loop through serial ports Hello, I am trying to make a while loop for searching of the right serial port. I get the “RuntimeException: Error opening serial port COM4: Port busy” error probably because the port connecti…

---

## [Error writing to serial: port not opened after already reading from serial](https://discourse.processing.org/t/error-writing-to-serial-port-not-opened-after-already-reading-from-serial/28521)

<div class="topic-metadata">

**Author:** [@junorox](https://discourse.processing.org/u/junorox)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 1:46am UTC](https://discourse.processing.org/t/error-writing-to-serial-port-not-opened-after-already-reading-from-serial/28521 "2021-03-15T01:46:11Z")

</div>

I’m trying to create a code that works with arduino by sending commands back and forth between the two. Processing is receiving commands from arduino easily enough but Processing is giving error “RuntimeException: Error …

---

## [Splitting the String into multiple Arrays and Converting it to an int](https://discourse.processing.org/t/splitting-the-string-into-multiple-arrays-and-converting-it-to-an-int/28502)

<div class="topic-metadata">

**Author:** [@Nick2](https://discourse.processing.org/u/Nick2)\
**Replies:** 3\
**Last updated:** [March 14, 2021, 6:07am UTC](https://discourse.processing.org/t/splitting-the-string-into-multiple-arrays-and-converting-it-to-an-int/28502 "2021-03-14T06:07:39Z")

</div>

Hi I am a bit new to processing and do not really know that much. I managed to display some serial data, but what I really need is a GUI to show the temperature from multiple ds18b20 sensors. but I need some help with Sp…

---

## [How to print a label from a model of a Neural network?](https://discourse.processing.org/t/how-to-print-a-label-from-a-model-of-a-neural-network/28439)

<div class="topic-metadata">

**Author:** [@babatnvn](https://discourse.processing.org/u/babatnvn)\
**Replies:** 6\
**Last updated:** [March 13, 2021, 2:33am UTC](https://discourse.processing.org/t/how-to-print-a-label-from-a-model-of-a-neural-network/28439 "2021-03-13T02:33:15Z")

</div>

I have a Numaker-PFM-M487 device and it contains the Bin file. The Bin file contains the weights and labels as ‘cat, dog, etc’ of a Neural network. Now, how to print one label in the Bin file by this processing. I made…

---

## [Numbers only for custom font on TFT display](https://discourse.processing.org/t/numbers-only-for-custom-font-on-tft-display/28391)

<div class="topic-metadata">

**Author:** [@fotosettore](https://discourse.processing.org/u/fotosettore)\
**Replies:** 1\
**Last updated:** [March 12, 2021, 4:46pm UTC](https://discourse.processing.org/t/numbers-only-for-custom-font-on-tft-display/28391 "2021-03-12T16:46:50Z")

</div>

Hi Is it possibile to create a font with inside NUMBERS ONLY ( from 0 to 9) ? I need to show a huge number on a TFT display, that use TFT\_eSPI library. Dimensione is about 120. I don’t need alphabetic characters. I tr…

---

## [Bird wing kinematics](https://discourse.processing.org/t/bird-wing-kinematics/28175)

<div class="topic-metadata">

**Author:** [@aljosa](https://discourse.processing.org/u/aljosa)\
**Replies:** 9\
**Last updated:** [March 9, 2021, 9:20am UTC](https://discourse.processing.org/t/bird-wing-kinematics/28175 "2021-03-09T09:20:18Z")

</div>

float r1=200; // size of a first segment float r2=150; // size of a second segment float a1; // angle one float a2; // angle two float w=0; // angular velo…

---

## [Variable for Arduino Timer](https://discourse.processing.org/t/variable-for-arduino-timer/28066)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 4\
**Last updated:** [March 7, 2021, 9:56pm UTC](https://discourse.processing.org/t/variable-for-arduino-timer/28066 "2021-03-07T21:56:55Z")

</div>

Hi, I have been trying to set the timer constant of OCR1A to the variable TImer\_count so that when I change Sfreq it automatically updates Timer\_count and hence OCR1A. Does anyone know how to and what kind of variable I …

---

## [Start stop read encoder](https://discourse.processing.org/t/start-stop-read-encoder/28218)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 10\
**Last updated:** [March 5, 2021, 11:52pm UTC](https://discourse.processing.org/t/start-stop-read-encoder/28218 "2021-03-05T23:52:55Z")

</div>

Any one explane me howto start and stop read encoder from arduino ? I read encoder position but i need start and stop from button or proximity Who help me please Tankyou PS. when start begin from 0 position.

---

## [2d graph of signals of arduino](https://discourse.processing.org/t/2d-graph-of-signals-of-arduino/27921)

<div class="topic-metadata">

**Author:** [@xD\_echicero\_xD](https://discourse.processing.org/u/xD_echicero_xD)\
**Replies:** 10\
**Last updated:** [February 25, 2021, 4:11am UTC](https://discourse.processing.org/t/2d-graph-of-signals-of-arduino/27921 "2021-02-25T04:11:32Z")

</div>

import processing.serial.Serial; import grafica.\*; public GPlot plot2 ; static final int PORT\_INDEX = 0, BAUDS = 9600; int i=0; int\[\] vals = {}; //float\[\] vals = {}; void setup() { vals=new int\[5\]; size(850, 660); …

---

## [Using serial input from arduino to execute events in processing](https://discourse.processing.org/t/using-serial-input-from-arduino-to-execute-events-in-processing/28038)

<div class="topic-metadata">

**Author:** [@eelhum](https://discourse.processing.org/u/eelhum)\
**Replies:** 2\
**Last updated:** [February 24, 2021, 3:44pm UTC](https://discourse.processing.org/t/using-serial-input-from-arduino-to-execute-events-in-processing/28038 "2021-02-24T15:44:04Z")

</div>

Hi all! I’m pretty new to arduino and processing, and I’m sure there’s a way around this but I can’t seem to figure it out My code in processing uses Case, so i switch between 5 different outputs by pressing keys 1,2,3,…

---

## [Problem with Game Control Plus library button pressed](https://discourse.processing.org/t/problem-with-game-control-plus-library-button-pressed/27887)

<div class="topic-metadata">

**Author:** [@cha](https://discourse.processing.org/u/cha)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 11:45am UTC](https://discourse.processing.org/t/problem-with-game-control-plus-library-button-pressed/27887 "2021-02-21T11:45:56Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi I’m new to processing and trying to control my robot arm using an USB game controller(armor3 wired controller) through processing. While usi…

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

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