# Electronics (Arduino, etc.)

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

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

**Page:** 19

---

## [Sending multiple numbers to Arduino via Serial](https://discourse.processing.org/t/sending-multiple-numbers-to-arduino-via-serial/13751)

<div class="topic-metadata">

**Author:** [@zara2355](https://discourse.processing.org/u/zara2355)\
**Replies:** 3\
**Last updated:** [September 1, 2019, 11:13pm UTC](https://discourse.processing.org/t/sending-multiple-numbers-to-arduino-via-serial/13751 "2019-09-01T23:13:50Z")

</div>

Hello, For the project i am doing, i am trying to grab weather data from multiple cities that i will then use to drive some NeoPixles on an Arduino with. The Processing sketch i have at the moment uses 3 cities, and tak…

---

## [How to change the canvas size of kinect?](https://discourse.processing.org/t/how-to-change-the-canvas-size-of-kinect/13701)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 1\
**Last updated:** [August 30, 2019, 10:08am UTC](https://discourse.processing.org/t/how-to-change-the-canvas-size-of-kinect/13701 "2019-08-30T10:08:16Z")

</div>

I am playing with the Kinect and when I enlarge the size of the canvas, the Kinect window stays the same size and does not expand to match the size of the canvas. How can I enlarge it?

---

## [Need help finding whats causing a NullPointerException](https://discourse.processing.org/t/need-help-finding-whats-causing-a-nullpointerexception/13694)

<div class="topic-metadata">

**Author:** [@Kasdriu](https://discourse.processing.org/u/Kasdriu)\
**Replies:** 1\
**Last updated:** [August 29, 2019, 10:23pm UTC](https://discourse.processing.org/t/need-help-finding-whats-causing-a-nullpointerexception/13694 "2019-08-29T22:23:24Z")

</div>

Hi, Ive been trying to send a string value from Arduino to Processing but I keep getting a NullPointerException when it gets to this line if (val.equals("hola")) { //file.play(); println("Funciona"); } I kn…

---

## [Nothing gets sent to Arduino from Processing](https://discourse.processing.org/t/nothing-gets-sent-to-arduino-from-processing/13654)

<div class="topic-metadata">

**Author:** [@BeastCoder](https://discourse.processing.org/u/BeastCoder)\
**Replies:** 2\
**Last updated:** [August 29, 2019, 2:45am UTC](https://discourse.processing.org/t/nothing-gets-sent-to-arduino-from-processing/13654 "2019-08-29T02:45:59Z")

</div>

I have a problem where I kwow that my bluetooth module (HC-05) is connected to a processing sketch, but nothing ever gets sent from the processing sketch,why? No error messages but the info never gets sent over because …

---

## [When using 'point' in processing, I have some issues](https://discourse.processing.org/t/when-using-point-in-processing-i-have-some-issues/13581)

<div class="topic-metadata">

**Author:** [@mstevens1994](https://discourse.processing.org/u/mstevens1994)\
**Replies:** 4\
**Last updated:** [August 25, 2019, 1:19pm UTC](https://discourse.processing.org/t/when-using-point-in-processing-i-have-some-issues/13581 "2019-08-25T13:19:44Z")

</div>

Hi all, I currently have a 3d scanner implemented within the software. However, when I use stroke() with colour mode HSB to set the colour of a single point, it changes all the colours of all of my points. How do I chan…

---

## [Bluetooth communications between HC-05 and processing inconsistent?](https://discourse.processing.org/t/bluetooth-communications-between-hc-05-and-processing-inconsistent/13601)

<div class="topic-metadata">

**Author:** [@blorglue](https://discourse.processing.org/u/blorglue)\
**Replies:** 11\
**Last updated:** [August 27, 2019, 8:34am UTC](https://discourse.processing.org/t/bluetooth-communications-between-hc-05-and-processing-inconsistent/13601 "2019-08-27T08:34:58Z")

</div>

Hello everybody, I’m trying to make a motion sensor using a ultrasonic sensor and a HC-05 bluetooth module to send the data, it works perfectly on a wired connection on processing, the String i drew in the window also ch…

---

## [Why it returned an error?](https://discourse.processing.org/t/why-it-returned-an-error/13614)

<div class="topic-metadata">

**Author:** [@Sfracassetti2005](https://discourse.processing.org/u/Sfracassetti2005)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 10:29am UTC](https://discourse.processing.org/t/why-it-returned-an-error/13614 "2019-08-26T10:29:17Z")

</div>

---

## [How to trigger a sound file in my motion sensor code?](https://discourse.processing.org/t/how-to-trigger-a-sound-file-in-my-motion-sensor-code/13603)

<div class="topic-metadata">

**Author:** [@blorglue](https://discourse.processing.org/u/blorglue)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 3:26am UTC](https://discourse.processing.org/t/how-to-trigger-a-sound-file-in-my-motion-sensor-code/13603 "2019-08-26T03:26:39Z")

</div>

I am trying to add a sound trigger to my code, but nothing I’ve done seems to work. things I’ve tried: compared strings with == and .equals used a boolean made the arduino send a number instead of a string to compare …

---

## [Parsing data arduino](https://discourse.processing.org/t/parsing-data-arduino/13541)

<div class="topic-metadata">

**Author:** [@majidd](https://discourse.processing.org/u/majidd)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 7:38am UTC](https://discourse.processing.org/t/parsing-data-arduino/13541 "2019-08-22T07:38:34Z")

</div>

can anyone help me to make an arduino serial data parsing program. data from Bluetooth HC 05, and read by Arduino

---

## [Unexpected OutOfBoundsException thrown](https://discourse.processing.org/t/unexpected-outofboundsexception-thrown/13526)

<div class="topic-metadata">

**Author:** [@Anosen](https://discourse.processing.org/u/Anosen)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 7:49pm UTC](https://discourse.processing.org/t/unexpected-outofboundsexception-thrown/13526 "2019-08-21T19:49:10Z")

</div>

Hi, my problem is I can’t find from where the OutOfBoundsException error below comes from. Processing and Arduino code attached. Using Processing debugger I think the issue appears at line 81, with “try”. java.lang.Arr…

---

## [Experiencing lots of lag](https://discourse.processing.org/t/experiencing-lots-of-lag/13387)

<div class="topic-metadata">

**Author:** [@skrrt.exe](https://discourse.processing.org/u/skrrt.exe)\
**Replies:** 8\
**Last updated:** [August 15, 2019, 2:06am UTC](https://discourse.processing.org/t/experiencing-lots-of-lag/13387 "2019-08-15T02:06:23Z")

</div>

I just started using Processing today and kind of just jumped right into it. I used it a lot on Khan Academy but never with an Arduino. I have a book that taught me a little bit about how to use processing and using it w…

---

## [PrintWriter - Disable Default UTF8 Encoding](https://discourse.processing.org/t/printwriter-disable-default-utf8-encoding/13316)

<div class="topic-metadata">

**Author:** [@ischmied](https://discourse.processing.org/u/ischmied)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 8:26pm UTC](https://discourse.processing.org/t/printwriter-disable-default-utf8-encoding/13316 "2019-08-12T20:26:41Z")

</div>

From the Processing Reference: Starting with Processing release 0134, all files loaded and saved by the Processing API use UTF-8 encoding. I am reading the contents of an EPROM using an Arduino Uno and sending the data…

---

## [Help with visualising DHT sensor data](https://discourse.processing.org/t/help-with-visualising-dht-sensor-data/13331)

<div class="topic-metadata">

**Author:** [@figsgigs](https://discourse.processing.org/u/figsgigs)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 2:51pm UTC](https://discourse.processing.org/t/help-with-visualising-dht-sensor-data/13331 "2019-08-12T14:51:40Z")

</div>

Hello good people here! I’m new to processing, and attempting to read my DHT11 sensor and visualising it via Processing. I’ve taken the processing/ arduino code from an online tutorial, and adapted it for my own arduino.…

---

## [Serial Event null pointer exception](https://discourse.processing.org/t/serial-event-null-pointer-exception/13275)

<div class="topic-metadata">

**Author:** [@l-arc-en-ciel](https://discourse.processing.org/u/l-arc-en-ciel)\
**Replies:** 3\
**Last updated:** [August 9, 2019, 11:54pm UTC](https://discourse.processing.org/t/serial-event-null-pointer-exception/13275 "2019-08-09T23:54:34Z")

</div>

I get this error code every few times: COM4 test {"lat{"lat":67.74801,"lng":21.2934} java.lang.RuntimeException: Expected a ':' after a key at processing.data.JSONObject.\<init\>(JSONObject.java:264) at processing.data…

---

## [Camera() doesn't expect parameters](https://discourse.processing.org/t/camera-doesnt-expect-parameters/13139)

<div class="topic-metadata">

**Author:** [@l-arc-en-ciel](https://discourse.processing.org/u/l-arc-en-ciel)\
**Replies:** 7\
**Last updated:** [August 9, 2019, 5:35pm UTC](https://discourse.processing.org/t/camera-doesnt-expect-parameters/13139 "2019-08-09T17:35:23Z")

</div>

I want to use centerX and centerY in my 2d scene so that the camera centers on a moving rectangle (you wouldn’t see the rectangle move then, but it leaves a trail, so you see the trail and the view centers around the hea…

---

## [Help with logic in saving tables](https://discourse.processing.org/t/help-with-logic-in-saving-tables/13178)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 10\
**Last updated:** [August 5, 2019, 4:20pm UTC](https://discourse.processing.org/t/help-with-logic-in-saving-tables/13178 "2019-08-05T16:20:32Z")

</div>

Hi, I have a scriopt that receives data from an accelerometer through Arduino. I want to save these data in a csv file. The system works as follows: Processing generates a sequence of sine waves (stored in freqList\[\])…

---

## [Sending MIDI information to my DAW](https://discourse.processing.org/t/sending-midi-information-to-my-daw/5461)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 14\
**Last updated:** [August 4, 2019, 11:36pm UTC](https://discourse.processing.org/t/sending-midi-information-to-my-daw/5461 "2019-08-04T23:36:11Z")

</div>

Hello! I want to send data from my sketch into my DAW, more specifically, Logic Pro X, using the midiBus library, but I do not know how to access the appropriate midi channel to make this happen. When I create an Aggreg…

---

## [Processing + Eclipse + Arduino](https://discourse.processing.org/t/processing-eclipse-arduino/12946)

<div class="topic-metadata">

**Author:** [@rgthings](https://discourse.processing.org/u/rgthings)\
**Replies:** 2\
**Last updated:** [July 30, 2019, 9:14pm UTC](https://discourse.processing.org/t/processing-eclipse-arduino/12946 "2019-07-30T21:14:07Z")

</div>

After a day of trying, I am unable to get Eclipse to recognize any serial messages. Using jssc I get the exception, “Port busy”. With jSerialComm I am unable to open the port. With the Processing serial library, nothing …

---

## [Run a Processing sketch from Node-RED](https://discourse.processing.org/t/run-a-processing-sketch-from-node-red/12939)

<div class="topic-metadata">

**Author:** [@nallasiger](https://discourse.processing.org/u/nallasiger)\
**Replies:** 1\
**Last updated:** [July 28, 2019, 5:46pm UTC](https://discourse.processing.org/t/run-a-processing-sketch-from-node-red/12939 "2019-07-28T17:46:30Z")

</div>

Hello, I’d like to see if anyone can help me run a specific Processing sketch through a Node-RED user interface. I’m building a connected desk lamp and would like to be able to change its light patterns from my phone. …

---

## [I added Buttons for Fan On/Off on Processing](https://discourse.processing.org/t/i-added-buttons-for-fan-on-off-on-processing/12970)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 24\
**Last updated:** [July 26, 2019, 11:27am UTC](https://discourse.processing.org/t/i-added-buttons-for-fan-on-off-on-processing/12970 "2019-07-26T11:27:51Z")

</div>

Hello everyone, I created Step Motor and Led System with Arduino and Processing. I added a Fan on my system. I added Buttons for Fan On/Off on Processing. I added Status. I want to this. If Fan is Active, Button will be…

---

## [Save data from Arduino to PC in CSV file in real time by Processing code](https://discourse.processing.org/t/save-data-from-arduino-to-pc-in-csv-file-in-real-time-by-processing-code/12959)

<div class="topic-metadata">

**Author:** [@hectorta](https://discourse.processing.org/u/hectorta)\
**Replies:** 2\
**Last updated:** [July 25, 2019, 4:41am UTC](https://discourse.processing.org/t/save-data-from-arduino-to-pc-in-csv-file-in-real-time-by-processing-code/12959 "2019-07-25T04:41:20Z")

</div>

I want to generate file name and data & time in csv file in the format yyyymmdd hhmmss.zzz. Where: zzz is millisecond. e.g 20190709 090801.001. But my following code can only get the format 201979 981.1 //import the req…

---

## [How to loop faster than 60 times per second?](https://discourse.processing.org/t/how-to-loop-faster-than-60-times-per-second/12890)

<div class="topic-metadata">

**Author:** [@Luigi](https://discourse.processing.org/u/Luigi)\
**Replies:** 8\
**Last updated:** [July 24, 2019, 8:25am UTC](https://discourse.processing.org/t/how-to-loop-faster-than-60-times-per-second/12890 "2019-07-24T08:25:58Z")

</div>

Hi, I am creating a graphic user interface for a machine controled by an arduino The arduino sends serial data to processing at 120 SPS and my monitor displays 60 images per second. the only way to draw those values on…

---

## [Radio code (sound and Arduino)](https://discourse.processing.org/t/radio-code-sound-and-arduino/9175)

<div class="topic-metadata">

**Author:** [@Mimal](https://discourse.processing.org/u/Mimal)\
**Replies:** 12\
**Last updated:** [July 23, 2019, 11:33am UTC](https://discourse.processing.org/t/radio-code-sound-and-arduino/9175 "2019-07-23T11:33:30Z")

</div>

Hello, I need to code a program that retrieves a value from the Arduino card and plays a sound based on that value. The value varies according to the position of a potentiometer: an Arduino program transforms the voltag…

---

## [Trying to convert hex into a bin file, but, get a NumberFormat Exception](https://discourse.processing.org/t/trying-to-convert-hex-into-a-bin-file-but-get-a-numberformat-exception/12869)

<div class="topic-metadata">

**Author:** [@RookieProgrammer](https://discourse.processing.org/u/RookieProgrammer)\
**Replies:** 19\
**Last updated:** [July 23, 2019, 12:14am UTC](https://discourse.processing.org/t/trying-to-convert-hex-into-a-bin-file-but-get-a-numberformat-exception/12869 "2019-07-23T00:14:12Z")

</div>

Hi, dear gentlemen and ladies. I’m developing a program that reads a file contained in an SD card via Arduino and prints the data of this file in hexadecimal format. At the same time, I am trying to create a program in …

---

## [I would you like to process at the moment when press Buttons](https://discourse.processing.org/t/i-would-you-like-to-process-at-the-moment-when-press-buttons/12813)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 10:13am UTC](https://discourse.processing.org/t/i-would-you-like-to-process-at-the-moment-when-press-buttons/12813 "2019-07-19T10:13:58Z")

</div>

Hey everyone, I created a System. This System has got Step Motor and Led. I added buttons with Processing on System but I want to use together all Buttons on System. My problem is here. I am pressing button. It is worki…

---

## [\[Processing net POST request\] Error : Client got end of stream](https://discourse.processing.org/t/processing-net-post-request-error-client-got-end-of-stream/12339)

<div class="topic-metadata">

**Author:** [@Dupond](https://discourse.processing.org/u/Dupond)\
**Replies:** 12\
**Last updated:** [July 19, 2019, 7:03am UTC](https://discourse.processing.org/t/processing-net-post-request-error-client-got-end-of-stream/12339 "2019-07-19T07:03:15Z")

</div>

Hello ! I want to send data from arduino to a local server via a serial connection. I have found this example online but I have an End of stream error when I execute the code. This is follows by many java.lang.NullPoint…

---

## [Accessing Two USB Ports in One Program](https://discourse.processing.org/t/accessing-two-usb-ports-in-one-program/12790)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 1\
**Last updated:** [July 18, 2019, 2:41pm UTC](https://discourse.processing.org/t/accessing-two-usb-ports-in-one-program/12790 "2019-07-18T14:41:17Z")

</div>

Hello Everyone, I’d like to perfect/enhance my ability to access data from two different USB devices. My code works fine, and I’m able to grab data from both devices, but I know it’s a novice approach. Is there a meth…

---

## [I Want to Add Text on the Button](https://discourse.processing.org/t/i-want-to-add-text-on-the-button/12756)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 7\
**Last updated:** [July 17, 2019, 2:49pm UTC](https://discourse.processing.org/t/i-want-to-add-text-on-the-button/12756 "2019-07-17T14:49:18Z")

</div>

Hello my dear friends, I am adding button for open the led. I want to write text on the Button. I am adding text but I can’t see this. Text is under the Button. I want to see that. I am sharing codes. I want to text “ST…

---

## [Trigger sound when data == x](https://discourse.processing.org/t/trigger-sound-when-data-x/12701)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 13\
**Last updated:** [July 17, 2019, 1:13am UTC](https://discourse.processing.org/t/trigger-sound-when-data-x/12701 "2019-07-17T01:13:12Z")

</div>

Hi, I would like to trigger sound when I receive data=0. But sometimes It works, sometimes it doesn’t. Maybe because my program doesn’t actualise itself enough quickly? here my program import processing.serial.\*; /…

---

## [Problem connection Processing Arduino](https://discourse.processing.org/t/problem-connection-processing-arduino/12700)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 2:11pm UTC](https://discourse.processing.org/t/problem-connection-processing-arduino/12700 "2019-07-13T14:11:10Z")

</div>

Hi, When I start my program Processing to read data from Arduino, I see this error message \[0\] "/dev/cu.BeatsPill-SPPDev-1" \[1\] "/dev/cu.Bluetooth-Incoming-Port" \[2\] "/dev/cu.JBLFlip3-SPPDev" \[3\] "/dev/cu.UEBOOM-LWACP"…

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

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