# Electronics (Arduino, etc.)

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

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

**Page:** 21

---

## [Hot line bling ardino help](https://discourse.processing.org/t/hot-line-bling-ardino-help/11556)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 5\
**Last updated:** [May 30, 2019, 4:24pm UTC](https://discourse.processing.org/t/hot-line-bling-ardino-help/11556 "2019-05-30T16:24:13Z")

</div>

I am supposed to get the below code or create a code that play hot line bling by Drake but i don’t understand how to input the notes for it. /\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* Spark…

---

## [Push button and motor](https://discourse.processing.org/t/push-button-and-motor/11680)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 3\
**Last updated:** [May 30, 2019, 11:56am UTC](https://discourse.processing.org/t/push-button-and-motor/11680 "2019-05-30T11:56:20Z")

</div>

I was asked to create an Arduino program which uses a push button to start and stop a DC motor. int buttonPin1 = 2; //Start button int buttonPin2 = 3; //Stop button int buttonStatus1 = 0; int buttonStatus2 = 0; int m…

---

## [Reading Arduino Pin](https://discourse.processing.org/t/reading-arduino-pin/11682)

<div class="topic-metadata">

**Author:** [@Aryn](https://discourse.processing.org/u/Aryn)\
**Replies:** 1\
**Last updated:** [May 29, 2019, 5:08pm UTC](https://discourse.processing.org/t/reading-arduino-pin/11682 "2019-05-29T17:08:26Z")

</div>

Hello, I’m working on a project but never used Processing before. I’m having some troubles in reading an Arduino pin state with Processing. I have a LED connected to my PIN13, I opened StandardFirmata in Arduino and set…

---

## [Sketch set-up - time of actions](https://discourse.processing.org/t/sketch-set-up-time-of-actions/11651)

<div class="topic-metadata">

**Author:** [@aleandrosinatra](https://discourse.processing.org/u/aleandrosinatra)\
**Replies:** 8\
**Last updated:** [May 29, 2019, 10:29am UTC](https://discourse.processing.org/t/sketch-set-up-time-of-actions/11651 "2019-05-29T10:29:45Z")

</div>

Hello guys, i need to help to set a project. I’d like to know how can i write the code by Processing. I don’t understand to set a counter to make some operations. I explain my project; there is a beamer will project a b…

---

## [Alternatives for 3D scanning after Kinect](https://discourse.processing.org/t/alternatives-for-3d-scanning-after-kinect/2132)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 1\
**Last updated:** [May 28, 2019, 4:46pm UTC](https://discourse.processing.org/t/alternatives-for-3d-scanning-after-kinect/2132 "2019-05-28T16:46:36Z")

</div>

Hi, is there any alternative for the kinect sensor which even have a Proc library? I based I a quite big application on it and after MS stopped Kinect I worry about further development of devices, support and availabilit…

---

## [Time of actions](https://discourse.processing.org/t/time-of-actions/11629)

<div class="topic-metadata">

**Author:** [@aleandrosinatra](https://discourse.processing.org/u/aleandrosinatra)\
**Replies:** 4\
**Last updated:** [May 28, 2019, 8:30am UTC](https://discourse.processing.org/t/time-of-actions/11629 "2019-05-28T08:30:33Z")

</div>

Hello guys, i need to help to set a project. I’d like to know how can i write the code by Processing. I don’t understand to set a counter to make some operations. I explain my project; there is a beamer will project a b…

---

## [COM Port Error: Port Not Found](https://discourse.processing.org/t/com-port-error-port-not-found/11504)

<div class="topic-metadata">

**Author:** [@davidbambalan](https://discourse.processing.org/u/davidbambalan)\
**Replies:** 21\
**Last updated:** [May 24, 2019, 4:38pm UTC](https://discourse.processing.org/t/com-port-error-port-not-found/11504 "2019-05-24T16:38:32Z")

</div>

I used a code here to detect on which port the Arduino is connected. However, I cannot run this code: mySerial = new Serial(this, detected\_port, 9600); as it says Error opening serial port COM#: Port not found. How do I …

---

## [Can't figure out how to fix this NullPointerException](https://discourse.processing.org/t/cant-figure-out-how-to-fix-this-nullpointerexception/11441)

<div class="topic-metadata">

**Author:** [@kiraraew](https://discourse.processing.org/u/kiraraew)\
**Replies:** 8\
**Last updated:** [May 24, 2019, 3:16pm UTC](https://discourse.processing.org/t/cant-figure-out-how-to-fix-this-nullpointerexception/11441 "2019-05-24T15:16:46Z")

</div>

I am new to Processing, only have been working with it for a few months now, and I’m trying to create a program that takes data from Arduino and uses that to send out a tweet using Twitter4j. I’ve narrowed down the code…

---

## [Save Arduino input in array, and THEN plot it](https://discourse.processing.org/t/save-arduino-input-in-array-and-then-plot-it/11499)

<div class="topic-metadata">

**Author:** [@Runzolf](https://discourse.processing.org/u/Runzolf)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 2:31am UTC](https://discourse.processing.org/t/save-arduino-input-in-array-and-then-plot-it/11499 "2019-05-23T02:31:21Z")

</div>

So I’m getting quite mad not being able to accomplish something so easy. I’ve an Arduino sending various values through the serial port. The values appearing are for example 152,0,140,92,53…etc. I’d like to just save f…

---

## [MP3 track won't stop playing at the right time](https://discourse.processing.org/t/mp3-track-wont-stop-playing-at-the-right-time/11390)

<div class="topic-metadata">

**Author:** [@Sprocket](https://discourse.processing.org/u/Sprocket)\
**Replies:** 4\
**Last updated:** [May 20, 2019, 11:59am UTC](https://discourse.processing.org/t/mp3-track-wont-stop-playing-at-the-right-time/11390 "2019-05-20T11:59:58Z")

</div>

So this should have been super simple, and yet something is amiss! So I am using a supersonic range finder to trigger songs at different distances. The first track (player\[0\]) should come on when the sensor value is bet…

---

## [Mysql insert speed problem](https://discourse.processing.org/t/mysql-insert-speed-problem/9503)

<div class="topic-metadata">

**Author:** [@SandCrocus](https://discourse.processing.org/u/SandCrocus)\
**Replies:** 3\
**Last updated:** [May 21, 2019, 1:03am UTC](https://discourse.processing.org/t/mysql-insert-speed-problem/9503 "2019-05-21T01:03:56Z")

</div>

I used the de.bezier.data.sql. and processing.serial libary to get data from Arduino then save to MySql database. The transmission speed I get from Arduino is 0.02 second per record, however, I can only insert 10 records…

---

## [Map function worked in Processing 2 and early 3.. But broke in 3.5.3. Need guidance](https://discourse.processing.org/t/map-function-worked-in-processing-2-and-early-3-but-broke-in-3-5-3-need-guidance/11371)

<div class="topic-metadata">

**Author:** [@ItchyBrain](https://discourse.processing.org/u/ItchyBrain)\
**Replies:** 8\
**Last updated:** [May 20, 2019, 4:22pm UTC](https://discourse.processing.org/t/map-function-worked-in-processing-2-and-early-3-but-broke-in-3-5-3-need-guidance/11371 "2019-05-20T16:22:27Z")

</div>

Hi. This exact code worked in Processing versions 2 and and earlier version of 3. I upgraded to 3.5.3 . Since upgrading my HP laptop to Processing 3.5.3 I now get the error: (note: I have another laptop still running P…

---

## [Ping Pong Arduino program](https://discourse.processing.org/t/ping-pong-arduino-program/11333)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 3\
**Last updated:** [May 20, 2019, 12:20pm UTC](https://discourse.processing.org/t/ping-pong-arduino-program/11333 "2019-05-20T12:20:24Z")

</div>

So i was asked to make an Arduino program which simulates ping pong on your LEDs. Each LED should light up in succession, then the lit LED should “bounce back” in the opposite direction when the last LED is reached. This…

---

## [Processing and pcduino3b problem](https://discourse.processing.org/t/processing-and-pcduino3b-problem/11269)

<div class="topic-metadata">

**Author:** [@ben](https://discourse.processing.org/u/ben)\
**Replies:** 5\
**Last updated:** [May 20, 2019, 4:55am UTC](https://discourse.processing.org/t/processing-and-pcduino3b-problem/11269 "2019-05-20T04:55:24Z")

</div>

hello! I have a problem to use processing, When i run it, the result is : If you know the issue, thanks a lot ! Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphic…

---

## [Need help with an Arduino program](https://discourse.processing.org/t/need-help-with-an-arduino-program/11306)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 4\
**Last updated:** [May 17, 2019, 1:40am UTC](https://discourse.processing.org/t/need-help-with-an-arduino-program/11306 "2019-05-17T01:40:13Z")

</div>

My goal is to write a processing program that turns an LED on or off whenever a “button” (drawn on the screen), is clicked with the mouse. int circleX, circleY; int circleSize = 93; color circleColor, baseColor; c…

---

## [serialEvent out of bounds error](https://discourse.processing.org/t/serialevent-out-of-bounds-error/11272)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 10:28am UTC](https://discourse.processing.org/t/serialevent-out-of-bounds-error/11272 "2019-05-16T10:28:36Z")

</div>

Below is the function causing the exception, followed by the error message. This HAD been working - not sure what I’ve done differently to ‘break’ it. Any ideas where to start looking? =A. void serialEvent(Serial com…

---

## [Sending and saving multiple values from Arduino to Processing](https://discourse.processing.org/t/sending-and-saving-multiple-values-from-arduino-to-processing/11299)

<div class="topic-metadata">

**Author:** [@skmr](https://discourse.processing.org/u/skmr)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 9:13am UTC](https://discourse.processing.org/t/sending-and-saving-multiple-values-from-arduino-to-processing/11299 "2019-05-16T09:13:08Z")

</div>

Hi, I’m new to coding with processing, so apologies in advance for rookie mistakes. I’m working on a project where I’m collectiog multiple orientation angles from 2 BNO055 sensors using Arduino. The idea is to create a…

---

## [Is possible use different layer for the axes on chart?](https://discourse.processing.org/t/is-possible-use-different-layer-for-the-axes-on-chart/11150)

<div class="topic-metadata">

**Author:** [@dondu](https://discourse.processing.org/u/dondu)\
**Replies:** 8\
**Last updated:** [May 16, 2019, 5:15am UTC](https://discourse.processing.org/t/is-possible-use-different-layer-for-the-axes-on-chart/11150 "2019-05-16T05:15:44Z")

</div>

Hello, I’m just starting with Processing to process data from serial port. I want to show animated data on chart something like the chart below. Is possible use different layer for the axes and scale lines on chart? …

---

## [Can GameControlPlus send data TO device?](https://discourse.processing.org/t/can-gamecontrolplus-send-data-to-device/11275)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 9\
**Last updated:** [May 16, 2019, 1:34am UTC](https://discourse.processing.org/t/can-gamecontrolplus-send-data-to-device/11275 "2019-05-16T01:34:41Z")

</div>

I am using @Quark’s SUPER GameControlPlus to have a custom joystick (using an Arduino Micro) to send to Processing. And it is working great! When the joystick fire button is pressed this may or may not start an event i…

---

## [Request for guidance:- Making 3D objects appear static on a webcam feed using arduino & an IMU:](https://discourse.processing.org/t/request-for-guidance-making-3d-objects-appear-static-on-a-webcam-feed-using-arduino-an-imu/10902)

<div class="topic-metadata">

**Author:** [@moh\_maya](https://discourse.processing.org/u/moh_maya)\
**Replies:** 28\
**Last updated:** [May 15, 2019, 11:05pm UTC](https://discourse.processing.org/t/request-for-guidance-making-3d-objects-appear-static-on-a-webcam-feed-using-arduino-an-imu/10902 "2019-05-15T23:05:01Z")

</div>

Request for guidance:- Making 3D objects appear static on a webcam feed using arduino & an IMU: Is this possible? Hello, I’m new to processing (but have some coding experience in python & java / android). I am trying t…

---

## [Need help with arduino program](https://discourse.processing.org/t/need-help-with-arduino-program/11287)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 10:01pm UTC](https://discourse.processing.org/t/need-help-with-arduino-program/11287 "2019-05-15T22:01:56Z")

</div>

so i was asked to make a Processing program that simulates an RGB LED changing through the color spectrum. Prompt the user for a speed when your program starts. The larger the speed value, the quicker your RGB LED will c…

---

## [Receiving data from Arduino](https://discourse.processing.org/t/receiving-data-from-arduino/11239)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 2:58pm UTC](https://discourse.processing.org/t/receiving-data-from-arduino/11239 "2019-05-15T14:58:11Z")

</div>

HI! I’am having problem with my code, iam able to read the data, on arduino serial its fine but on Processing its too much slow, i dont have a clue about whats going on. void recebeData(){ if(myPort.available()\>0){ …

---

## [Open Pixel Control over Wifi for stage design help! sketch freezing!](https://discourse.processing.org/t/open-pixel-control-over-wifi-for-stage-design-help-sketch-freezing/11267)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 11:27am UTC](https://discourse.processing.org/t/open-pixel-control-over-wifi-for-stage-design-help-sketch-freezing/11267 "2019-05-15T11:27:15Z")

</div>

hiya so I’m using Processing with Open Pixel Control to control 10 Feather M0’s over wifi. each M0 has 1 to 3 different strands of NeoPixels. Its for a touring band and all of these neopixels are built into their clothin…

---

## [How to recieve hex data JPEG camera from Arduino and show image in Processing](https://discourse.processing.org/t/how-to-recieve-hex-data-jpeg-camera-from-arduino-and-show-image-in-processing/10351)

<div class="topic-metadata">

**Author:** [@warayutsitha2](https://discourse.processing.org/u/warayutsitha2)\
**Replies:** 6\
**Last updated:** [May 9, 2019, 2:23pm UTC](https://discourse.processing.org/t/how-to-recieve-hex-data-jpeg-camera-from-arduino-and-show-image-in-processing/10351 "2019-05-09T14:23:38Z")

</div>

Hello. I need some help about how to write a Processing code. I use JPEG camera module snapshot and sent data to output serial port and I want to write a Processing code to recieve this data to show image. Thank you. I…

---

## [Write and read to Serial port at the same time](https://discourse.processing.org/t/write-and-read-to-serial-port-at-the-same-time/11056)

<div class="topic-metadata">

**Author:** [@anikolenko](https://discourse.processing.org/u/anikolenko)\
**Replies:** 6\
**Last updated:** [May 9, 2019, 10:05am UTC](https://discourse.processing.org/t/write-and-read-to-serial-port-at-the-same-time/11056 "2019-05-09T10:05:53Z")

</div>

Hi guys, I’m trying to understand how the Serial port works. Can anyone answer me why the following code does not work? import processing.serial.\*; Serial port; void setup() { port = new Serial(this, "COM1", 9600);…

---

## [How to make an interactive cloth (wall) simulation](https://discourse.processing.org/t/how-to-make-an-interactive-cloth-wall-simulation/10957)

<div class="topic-metadata">

**Author:** [@yasoob](https://discourse.processing.org/u/yasoob)\
**Replies:** 4\
**Last updated:** [May 8, 2019, 1:20pm UTC](https://discourse.processing.org/t/how-to-make-an-interactive-cloth-wall-simulation/10957 "2019-05-08T13:20:58Z")

</div>

Hi everyone! I am just starting out with interactive art. I have seen a couple of projects made using processing and openframeworks which have an interactive cloth (wall) projected on a screen which the users can interac…

---

## [Problem with serial.clear() in handshake procedure](https://discourse.processing.org/t/problem-with-serial-clear-in-handshake-procedure/11005)

<div class="topic-metadata">

**Author:** [@wheezardth](https://discourse.processing.org/u/wheezardth)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 1:44am UTC](https://discourse.processing.org/t/problem-with-serial-clear-in-handshake-procedure/11005 "2019-05-08T01:44:10Z")

</div>

Hi everybody! I recently made a front end for a few maintenance functions embedded in my Teensy (Adruino) project and I attempted to implement a Serial port autodetection by making a simple serial handshake procedure. …

---

## [Processing serial.available issue](https://discourse.processing.org/t/processing-serial-available-issue/10930)

<div class="topic-metadata">

**Author:** [@Acrus](https://discourse.processing.org/u/Acrus)\
**Replies:** 5\
**Last updated:** [May 7, 2019, 11:20pm UTC](https://discourse.processing.org/t/processing-serial-available-issue/10930 "2019-05-07T23:20:27Z")

</div>

Hi to everyone, First of all, I’m developing a simple program in processing that receives data via serial, from an arduino connected to a sensor. Once the data arrives in processing, is uploaded to a MySQL database. Bu…

---

## [How to generate report?](https://discourse.processing.org/t/how-to-generate-report/10938)

<div class="topic-metadata">

**Author:** [@68jai90](https://discourse.processing.org/u/68jai90)\
**Replies:** 4\
**Last updated:** [May 7, 2019, 5:04pm UTC](https://discourse.processing.org/t/how-to-generate-report/10938 "2019-05-07T17:04:41Z")

</div>

Hi everyone, I would like to know how to generate report using processing software based on values read from arduino. The requirement for the report is to log every 5 minutes for 8 hours. and create new report file aft…

---

## [More serial open at a time](https://discourse.processing.org/t/more-serial-open-at-a-time/10884)

<div class="topic-metadata">

**Author:** [@Frank-95](https://discourse.processing.org/u/Frank-95)\
**Replies:** 3\
**Last updated:** [May 4, 2019, 4:16pm UTC](https://discourse.processing.org/t/more-serial-open-at-a-time/10884 "2019-05-04T16:16:57Z")

</div>

Hello, does anyone knows if processing is able to communicate with two arduinos simultaneously? At the moment I don’t have two arduino to test the code but I’m trying to write it to progress with my work in the while. …

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

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