# Electronics (Arduino, etc.)

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

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

**Page:** 6

---

## [Serial.list() not updating correctly](https://discourse.processing.org/t/serial-list-not-updating-correctly/38036)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 9:16pm UTC](https://discourse.processing.org/t/serial-list-not-updating-correctly/38036 "2022-07-20T21:16:30Z")

</div>

I have 2 original arduino nano every boards. If I run following code (CODE1): import processing.serial.\*; Serial myPort; void setup(){ } void draw(){ println(frameCount); // just to see that code is running pri…

---

## [Processing Arduino communication](https://discourse.processing.org/t/processing-arduino-communication/38026)

<div class="topic-metadata">

**Author:** [@chrisBon8](https://discourse.processing.org/u/chrisBon8)\
**Replies:** 1\
**Last updated:** [July 19, 2022, 11:04am UTC](https://discourse.processing.org/t/processing-arduino-communication/38026 "2022-07-19T11:04:50Z")

</div>

Hi everyone, i am working with processing and arduino. I am trying to pass via serial method a String “x;y” where x and y are integers from arduino to Processing. Then i want to plot on processing the x and y separately,…

---

## [How to check if com Port is already being used by another application?](https://discourse.processing.org/t/how-to-check-if-com-port-is-already-being-used-by-another-application/37946)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 10:37am UTC](https://discourse.processing.org/t/how-to-check-if-com-port-is-already-being-used-by-another-application/37946 "2022-07-15T10:37:02Z")

</div>

How do I check if com Port is already being used by another application or if it is free to be used ? import processing.serial.\*; Serial myPort; void setup(){ myPort = new Serial(this, Serial.list()\[0\], 9600); // H…

---

## [Tinkercad+Arduino](https://discourse.processing.org/t/tinkercad-arduino/37962)

<div class="topic-metadata">

**Author:** [@Leonid](https://discourse.processing.org/u/Leonid)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 6:30am UTC](https://discourse.processing.org/t/tinkercad-arduino/37962 "2022-07-15T06:30:14Z")

</div>

Hi all ! I did not find a forum for Tinkercad. Maybe you can help me ? How to add a caption on the chart along the x-axis in it? Thanks

---

## [How to close serial port when window is closed](https://discourse.processing.org/t/how-to-close-serial-port-when-window-is-closed/37854)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 12:15pm UTC](https://discourse.processing.org/t/how-to-close-serial-port-when-window-is-closed/37854 "2022-07-14T12:15:22Z")

</div>

I am using serial port for building GUI with ControlP5. I open serial port in setup() function. i.e. tha start of program. I want to close the serial port when user closes the window. I know that port.close() can be u…

---

## [How To Test for Lost Serial Port?](https://discourse.processing.org/t/how-to-test-for-lost-serial-port/15437)

<div class="topic-metadata">

**Author:** [@Forrest\_Erickson](https://discourse.processing.org/u/Forrest_Erickson)\
**Replies:** 15\
**Last updated:** [July 14, 2022, 11:59am UTC](https://discourse.processing.org/t/how-to-test-for-lost-serial-port/15437 "2022-07-14T11:59:41Z")

</div>

I am using the processing serial library. In processing I am monitoring serial data. I want to detect when a USB device which identifies on a Windows computer as a COM port is turned off and therefor the COM port goes aw…

---

## [Accelerometer data STK8231 to 3d view](https://discourse.processing.org/t/accelerometer-data-stk8231-to-3d-view/37923)

<div class="topic-metadata">

**Author:** [@narendok](https://discourse.processing.org/u/narendok)\
**Replies:** 6\
**Last updated:** [July 14, 2022, 1:52am UTC](https://discourse.processing.org/t/accelerometer-data-stk8231-to-3d-view/37923 "2022-07-14T01:52:53Z")

</div>

import processing.opengl.\*; import processing.serial.\*; //Sets variables for serial port, bytes, and floats Serial sp; byte\[\] buff; float\[\] r; float OFFSET\_X = 2.5, OFFSET\_Y = -2.5; //These offsets are chip specific,…

---

## [Pulling HTML data from my node.js server](https://discourse.processing.org/t/pulling-html-data-from-my-node-js-server/37849)

<div class="topic-metadata">

**Author:** [@PrinceSalmon](https://discourse.processing.org/u/PrinceSalmon)\
**Replies:** 1\
**Last updated:** [July 5, 2022, 7:04pm UTC](https://discourse.processing.org/t/pulling-html-data-from-my-node-js-server/37849 "2022-07-05T19:04:07Z")

</div>

Hello! Is it possible logging HTML data from a website (the number updates 60 times a secound) and then sending it to my arduino via serial? I want to pull certain data from the h1 from my HTML and then process and send…

---

## [MPU teapot not showing 3d model](https://discourse.processing.org/t/mpu-teapot-not-showing-3d-model/28632)

<div class="topic-metadata">

**Author:** [@ethankong](https://discourse.processing.org/u/ethankong)\
**Replies:** 15\
**Last updated:** [June 30, 2022, 5:52pm UTC](https://discourse.processing.org/t/mpu-teapot-not-showing-3d-model/28632 "2022-06-30T17:52:29Z")

</div>

Hi, I have a teapot code that is able to receive and write out the ypr of the mpu 6050, but it is unable to make the 3d rendered modeled in processing, it just shows a new window with a white background. What am I missin…

---

## [HELP! Exception in Event Handler](https://discourse.processing.org/t/help-exception-in-event-handler/37751)

<div class="topic-metadata">

**Author:** [@charlielamus](https://discourse.processing.org/u/charlielamus)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 8:31am UTC](https://discourse.processing.org/t/help-exception-in-event-handler/37751 "2022-06-29T08:31:12Z")

</div>

Hello! I know next to nothing about java, being limited to playing about with the Marlin code for my 3d printer. I am a total beginner, so please be kind… I am also autistic so I might ask questions which sound stupid.…

---

## [Processing not compiling my code anymore](https://discourse.processing.org/t/processing-not-compiling-my-code-anymore/37654)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 20\
**Last updated:** [June 23, 2022, 2:41pm UTC](https://discourse.processing.org/t/processing-not-compiling-my-code-anymore/37654 "2022-06-23T14:41:58Z")

</div>

Hi guys. I am having a problem. I was running a sketch on processing on my old PC with windows 7 and it worked fine. the IDE compiled it and the compiled .exe file also worked. that computer’s hard drive stopped working …

---

## [Video Capture from Skydroid OTG receiver](https://discourse.processing.org/t/video-capture-from-skydroid-otg-receiver/37662)

<div class="topic-metadata">

**Author:** [@jake99](https://discourse.processing.org/u/jake99)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 9:39am UTC](https://discourse.processing.org/t/video-capture-from-skydroid-otg-receiver/37662 "2022-06-21T09:39:08Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I have been trying to load video from FPV receiver using video library. I have confirmed that it successfully loads feeds from the webcam, and C…

---

## [Processing and Arduino: how to change color according to the status of a digital input?](https://discourse.processing.org/t/processing-and-arduino-how-to-change-color-according-to-the-status-of-a-digital-input/37579)

<div class="topic-metadata">

**Author:** [@samiam85](https://discourse.processing.org/u/samiam85)\
**Replies:** 4\
**Last updated:** [June 17, 2022, 6:10am UTC](https://discourse.processing.org/t/processing-and-arduino-how-to-change-color-according-to-the-status-of-a-digital-input/37579 "2022-06-17T06:10:45Z")

</div>

Dear All, I am new in the “Processing world”. I have connected Processing to Arduino. What I can do, it is to push a button and activate some Digital Outputs in Arduino. Now, what I wanna do is: according to the statu…

---

## [Can you start a sketch with Arduino button?](https://discourse.processing.org/t/can-you-start-a-sketch-with-arduino-button/37494)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 11\
**Last updated:** [June 13, 2022, 12:15am UTC](https://discourse.processing.org/t/can-you-start-a-sketch-with-arduino-button/37494 "2022-06-13T00:15:48Z")

</div>

Hi! I recently purchased this keyswitch. I was wondering if there’s any way to run a sketch (with this switch). What code would I need for this? Something like: if … == 0 once, run file? Thanks!

---

## [Serial connection of Processing and Arduino](https://discourse.processing.org/t/serial-connection-of-processing-and-arduino/37344)

<div class="topic-metadata">

**Author:** [@jinalilili](https://discourse.processing.org/u/jinalilili)\
**Replies:** 4\
**Last updated:** [June 6, 2022, 5:06pm UTC](https://discourse.processing.org/t/serial-connection-of-processing-and-arduino/37344 "2022-06-06T17:06:25Z")

</div>

I’m try to make a serial connection from processing to arduino. The idea is that when I press “a”, the speaker from Arduino will produce a sound and the same goes with another key pressed but with a different note. Howev…

---

## [Button connection from Arduino to Processing](https://discourse.processing.org/t/button-connection-from-arduino-to-processing/37192)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 7\
**Last updated:** [June 2, 2022, 5:00pm UTC](https://discourse.processing.org/t/button-connection-from-arduino-to-processing/37192 "2022-06-02T17:00:32Z")

</div>

Hi! I’m trying to connect a button from Arduino to visuals in Processing. Can’t get it to work. I’m very new to this so any help and explanations are welcome!! (Potmeter works fine) Here is the Processing code: import…

---

## [Read feedback data from gauge](https://discourse.processing.org/t/read-feedback-data-from-gauge/36879)

<div class="topic-metadata">

**Author:** [@Ardan](https://discourse.processing.org/u/Ardan)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 12:40am UTC](https://discourse.processing.org/t/read-feedback-data-from-gauge/36879 "2022-05-15T00:40:53Z")

</div>

Hi guys, I want to use processing to read from my gauge, here is my code: import processing.serial.\*; ////varibles setting Serial myPort; String inString; Table table; String Force; String trigger; void setup() { …

---

## [How to use data from accelerometer to control camera and perspective in Processing](https://discourse.processing.org/t/how-to-use-data-from-accelerometer-to-control-camera-and-perspective-in-processing/36799)

<div class="topic-metadata">

**Author:** [@EllenYang](https://discourse.processing.org/u/EllenYang)\
**Replies:** 42\
**Last updated:** [May 12, 2022, 2:21am UTC](https://discourse.processing.org/t/how-to-use-data-from-accelerometer-to-control-camera-and-perspective-in-processing/36799 "2022-05-12T02:21:37Z")

</div>

I’m new to the forum, I wonder if anyone can help me to use data from accelerometer to control camera and perspective in processing? I’m making a 3D model of a galaxy and wish to use accelerometer to control the perspect…

---

## [Why Serial is not printing data from Arduino accelerometer in Processing](https://discourse.processing.org/t/why-serial-is-not-printing-data-from-arduino-accelerometer-in-processing/36809)

<div class="topic-metadata">

**Author:** [@EllenYang00](https://discourse.processing.org/u/EllenYang00)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 11:03am UTC](https://discourse.processing.org/t/why-serial-is-not-printing-data-from-arduino-accelerometer-in-processing/36809 "2022-05-11T11:03:17Z")

</div>

I imported Serial library in my Processing and connect it to the Arduino accelerometer. Now the console is only printing my port’s name. I wish it to print out the acceleration on xyz as well. Can someone help me? I will…

---

## [Video playback if](https://discourse.processing.org/t/video-playback-if/36788)

<div class="topic-metadata">

**Author:** [@zrshzrsh](https://discourse.processing.org/u/zrshzrsh)\
**Replies:** 2\
**Last updated:** [May 10, 2022, 2:10pm UTC](https://discourse.processing.org/t/video-playback-if/36788 "2022-05-10T14:10:42Z")

</div>

Hi all. I’m trying to use my Arduino Serial to control video play in Processing. What I want to achieve is video play when value(Arduino) is higher than 2. And when not (lower than 2) I wanted my video to playback(rew…

---

## [FSR pressure matrix](https://discourse.processing.org/t/fsr-pressure-matrix/36582)

<div class="topic-metadata">

**Author:** [@GalA](https://discourse.processing.org/u/GalA)\
**Replies:** 8\
**Last updated:** [May 7, 2022, 11:52am UTC](https://discourse.processing.org/t/fsr-pressure-matrix/36582 "2022-05-07T11:52:24Z")

</div>

Hi all, I have a project that I need to manufacture a chair that prevent pressure sores using fsr sensors The seat will have 9 fsr sensors and the backrest will have 4 more sensors. The sensors are connected to Arduin…

---

## [Issues with Game Control Plus/Processing & Arduino](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691)

<div class="topic-metadata">

**Author:** [@Dewski](https://discourse.processing.org/u/Dewski)\
**Replies:** 3\
**Last updated:** [May 3, 2022, 5:16pm UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691 "2022-05-03T17:16:44Z")

</div>

Hello, Newbie to Processing, and coding in general here. I am working on a project to control a 12v motor from a button on a sim racing steering wheel. The motor will be powered off most of the time, but I want it to …

---

## [Arduino Firmata wont register Arduino](https://discourse.processing.org/t/arduino-firmata-wont-register-arduino/31358)

<div class="topic-metadata">

**Author:** [@TitanNikola](https://discourse.processing.org/u/TitanNikola)\
**Replies:** 24\
**Last updated:** [April 29, 2022, 3:06pm UTC](https://discourse.processing.org/t/arduino-firmata-wont-register-arduino/31358 "2022-04-29T15:06:21Z")

</div>

Hello, I’m actually not very experienced with coding but my friend who wrote this is out of town and i was hoping i could find a solution soon. So the basic part of the issue is that this code has always been problemati…

---

## [Coding problem using Processing with Arduino](https://discourse.processing.org/t/coding-problem-using-processing-with-arduino/36354)

<div class="topic-metadata">

**Author:** [@remi\_chen](https://discourse.processing.org/u/remi_chen)\
**Replies:** 5\
**Last updated:** [April 20, 2022, 2:32pm UTC](https://discourse.processing.org/t/coding-problem-using-processing-with-arduino/36354 "2022-04-20T14:32:10Z")

</div>

Hi guys! Recently, I am working on an art project that needs Processing and Arduino. Now that I have some questions, I want to turn the following flowchart into automatic code behavior. I already have some basic code and…

---

## [Serial sending unexpected values](https://discourse.processing.org/t/serial-sending-unexpected-values/36412)

<div class="topic-metadata">

**Author:** [@Smajdalf](https://discourse.processing.org/u/Smajdalf)\
**Replies:** 1\
**Last updated:** [April 18, 2022, 1:20pm UTC](https://discourse.processing.org/t/serial-sending-unexpected-values/36412 "2022-04-18T13:20:45Z")

</div>

I encountered another problem when communicating with Arduino. I want to send raw data. On the Processing side I prepare them as a String and send them to Arduino via Serial. Using void writeToArduino(String whatToWrite…

---

## [Bluetooth connection from Arduino to Android phone wont connect](https://discourse.processing.org/t/bluetooth-connection-from-arduino-to-android-phone-wont-connect/36378)

<div class="topic-metadata">

**Author:** [@KrisNielsen](https://discourse.processing.org/u/KrisNielsen)\
**Replies:** 2\
**Last updated:** [April 17, 2022, 3:35pm UTC](https://discourse.processing.org/t/bluetooth-connection-from-arduino-to-android-phone-wont-connect/36378 "2022-04-17T15:35:06Z")

</div>

Hello. I am working on an that will recieve data over bluetooth from an arduino. The problem is that i can not connect the bluetooth moduel to my phone. I am using the MLT-BT05, I can comunicate with the moduel from the …

---

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

<div class="topic-metadata">

**Author:** [@Leonid](https://discourse.processing.org/u/Leonid)\
**Replies:** 11\
**Last updated:** [April 14, 2022, 5:22am UTC](https://discourse.processing.org/t/processing-arduino/36295 "2022-04-14T05:22:04Z")

</div>

Hello everyone Please help. I connected processing and arduino. Sending some data from arduno for processing. Everything seems to be in order. But. At the same time, I want to activate the LED (for example) on the ardu…

---

## [How send multiple values from Processing to Arduino](https://discourse.processing.org/t/how-send-multiple-values-from-processing-to-arduino/36167)

<div class="topic-metadata">

**Author:** [@yohan](https://discourse.processing.org/u/yohan)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 3:51pm UTC](https://discourse.processing.org/t/how-send-multiple-values-from-processing-to-arduino/36167 "2022-04-08T15:51:33Z")

</div>

I’m using shiftr to receive data into processing and I want to send it to Arduino. I’ve stored 8 values into an array and sent it to Arduino as a string. I’m having trouble with receiving the string in Arduino from proce…

---

## [Serial.available does not return correct value](https://discourse.processing.org/t/serial-available-does-not-return-correct-value/36186)

<div class="topic-metadata">

**Author:** [@Smajdalf](https://discourse.processing.org/u/Smajdalf)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 7:36pm UTC](https://discourse.processing.org/t/serial-available-does-not-return-correct-value/36186 "2022-04-08T19:36:01Z")

</div>

The Serial.available() function (on computer side) sometimes returns 0 even if there is something in the buffer. For testing Arduino runs a simple “echo” sketch: void setup() { Serial.begin(115200); } void loop() { …

---

## [How do I make my delay come after my prompt?](https://discourse.processing.org/t/how-do-i-make-my-delay-come-after-my-prompt/36173)

<div class="topic-metadata">

**Author:** [@mikeymike](https://discourse.processing.org/u/mikeymike)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 6:51pm UTC](https://discourse.processing.org/t/how-do-i-make-my-delay-come-after-my-prompt/36173 "2022-04-08T18:51:26Z")

</div>

Hello, I am working on a project for school. I am working with Processing 3 with Arduino uno (both program and board). I am writing a GUI on Processing 3, so I can control Arduino. On my GUI, I have a box for inputs and …

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

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