# Electronics (Arduino, etc.)

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

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

**Page:** 13

---

## [Controlp5 - got error that I can't understand](https://discourse.processing.org/t/controlp5-got-error-that-i-cant-understand/22730)

<div class="topic-metadata">

**Author:** [@marrrta](https://discourse.processing.org/u/marrrta)\
**Replies:** 6\
**Last updated:** [July 24, 2020, 7:48am UTC](https://discourse.processing.org/t/controlp5-got-error-that-i-cant-understand/22730 "2020-07-24T07:48:44Z")

</div>

Hi there, I got this error Can anyone help me on this please? Thank you lug 19, 2020 5:34:52 PM controlP5.ControlBroadcaster printMethodError GRAVE: An error occured while forwarding a Controller event, please check…

---

## [Toggle Button Dependency](https://discourse.processing.org/t/toggle-button-dependency/22755)

<div class="topic-metadata">

**Author:** [@carlos.411](https://discourse.processing.org/u/carlos.411)\
**Replies:** 14\
**Last updated:** [July 22, 2020, 5:24pm UTC](https://discourse.processing.org/t/toggle-button-dependency/22755 "2020-07-22T17:24:50Z")

</div>

Hello everyone! I have a program with some toggles running, and I want a 'Main" Button to be able to reset the toggles to their initial position/value. Is there a way to do this? and if so how should I go about it. Th…

---

## [Delete post (no longer necessary)](https://discourse.processing.org/t/delete-post-no-longer-necessary/22694)

<div class="topic-metadata">

**Author:** [@carlos.411](https://discourse.processing.org/u/carlos.411)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 12:01pm UTC](https://discourse.processing.org/t/delete-post-no-longer-necessary/22694 "2020-07-21T12:01:12Z")

</div>

DELETE POST (did not receive the necessary help, and was able to solve on my own).

---

## [ArrayIndexoutofboundsexception: 9](https://discourse.processing.org/t/arrayindexoutofboundsexception-9/22702)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 10:33am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-9/22702 "2020-07-21T10:33:31Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Im getting ArrayIndexoutofboundsexception: 9 error as I read data from serial port.

---

## [3D room map by TFmini Lidar](https://discourse.processing.org/t/3d-room-map-by-tfmini-lidar/22709)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 6\
**Last updated:** [July 19, 2020, 2:26pm UTC](https://discourse.processing.org/t/3d-room-map-by-tfmini-lidar/22709 "2020-07-19T14:26:11Z")

</div>

Hi, I’m a beginner so I hope this time I worte as should. I’m trying to simulate room with TFmini lidar by using arduino Mega with serial port communication. The simulation is not good at all. I need help. My Arduino…

---

## [TFmini lidar simulation](https://discourse.processing.org/t/tfmini-lidar-simulation/22608)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:45am UTC](https://discourse.processing.org/t/tfmini-lidar-simulation/22608 "2020-07-19T11:45:50Z")

</div>

Hi, I’m a begginer and I’m tring to create a room simulation with my TFmini Lidar, the device works with serial communication. I diffeculties with my code, I’m trying to read from arduino and plot 3D as is. \</\> import…

---

## [3D simulation by TFmini lidar](https://discourse.processing.org/t/3d-simulation-by-tfmini-lidar/22708)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:38am UTC](https://discourse.processing.org/t/3d-simulation-by-tfmini-lidar/22708 "2020-07-19T11:38:52Z")

</div>

Hi, I’m a beginner , I’m trying to simulate 3D room map by TFmini LIDAR. I connected the sensor to arduino mega 2560 to communication pins. Moreover, I control 2 servo’s inorder to scan the room. This is my arduino cod…

---

## [Serial communications on two ports](https://discourse.processing.org/t/serial-communications-on-two-ports/22630)

<div class="topic-metadata">

**Author:** [@Jaguar](https://discourse.processing.org/u/Jaguar)\
**Replies:** 4\
**Last updated:** [July 16, 2020, 1:32am UTC](https://discourse.processing.org/t/serial-communications-on-two-ports/22630 "2020-07-16T01:32:57Z")

</div>

I am new to processing software and Arduino too. I would very much appreciate if any of you can guide me on below project: Arduino Uno board connected to com port 7 of computer. Using two pins 9 & 10 to turn on two ligh…

---

## [Processing Sketch on Macbook Air Won’t Connect with XBee](https://discourse.processing.org/t/processing-sketch-on-macbook-air-won-t-connect-with-xbee/22644)

<div class="topic-metadata">

**Author:** [@sdc020583](https://discourse.processing.org/u/sdc020583)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 8:23pm UTC](https://discourse.processing.org/t/processing-sketch-on-macbook-air-won-t-connect-with-xbee/22644 "2020-07-15T20:23:21Z")

</div>

HELP! My Macbook Air, running a Processing sketch, doesn’t connect with my XBee, There are several anomalies that really have me confused. In fact, I’m totally stuck. Here are the details: Hardware- The XBee is a Seri…

---

## [Arduino Nano33 BLE Sense Serial Port Locked by Processing](https://discourse.processing.org/t/arduino-nano33-ble-sense-serial-port-locked-by-processing/22469)

<div class="topic-metadata">

**Author:** [@baqwas](https://discourse.processing.org/u/baqwas)\
**Replies:** 4\
**Last updated:** [July 11, 2020, 1:20pm UTC](https://discourse.processing.org/t/arduino-nano33-ble-sense-serial-port-locked-by-processing/22469 "2020-07-11T13:20:36Z")

</div>

Hello, I’m a self-certified newbie. I was working on the example at https://blog.arduino.cc/2020/06/24/machine-vision-with-low-cost-camera-modules/. Unfortunately, Camera Pattern was not displayed by Processing. I close…

---

## [Using Processing to find the value of a knob and send it through a serial port](https://discourse.processing.org/t/using-processing-to-find-the-value-of-a-knob-and-send-it-through-a-serial-port/22465)

<div class="topic-metadata">

**Author:** [@processingHax](https://discourse.processing.org/u/processingHax)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 6:22pm UTC](https://discourse.processing.org/t/using-processing-to-find-the-value-of-a-knob-and-send-it-through-a-serial-port/22465 "2020-07-10T18:22:01Z")

</div>

hey i’m pretty new to processing and I was wondering if I could take a knob constantly get the value of it and send the value of the knob through the serial port. I have tried it and all I’ve gotten is this error Jul 0…

---

## [Serial plotter over bluetooth](https://discourse.processing.org/t/serial-plotter-over-bluetooth/22378)

<div class="topic-metadata">

**Author:** [@alexthesmeus](https://discourse.processing.org/u/alexthesmeus)\
**Replies:** 20\
**Last updated:** [July 8, 2020, 10:03pm UTC](https://discourse.processing.org/t/serial-plotter-over-bluetooth/22378 "2020-07-08T22:03:16Z")

</div>

Hi, I’m trying to create a portable ECG with ESP32, AD8232 and battery 18650. I modified a sketch for arduino and processing pde to use bluetooth communication instead of serial over usb. My Arduino sketch work perfect…

---

## [Drawing movement of 2 accelerometers](https://discourse.processing.org/t/drawing-movement-of-2-accelerometers/22446)

<div class="topic-metadata">

**Author:** [@Matthias\_db](https://discourse.processing.org/u/Matthias_db)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 1:26pm UTC](https://discourse.processing.org/t/drawing-movement-of-2-accelerometers/22446 "2020-07-07T13:26:06Z")

</div>

hello, i want to simulate the movement of 2 accelerometers in one drawing. the 2 boxes that i draw should move differently from each other. i managed to get my first box moving but i can not include another moving box. t…

---

## [Serial write() blocks on Bluetooth ports](https://discourse.processing.org/t/serial-write-blocks-on-bluetooth-ports/22413)

<div class="topic-metadata">

**Author:** [@processor](https://discourse.processing.org/u/processor)\
**Replies:** 1\
**Last updated:** [July 6, 2020, 5:37pm UTC](https://discourse.processing.org/t/serial-write-blocks-on-bluetooth-ports/22413 "2020-07-06T17:37:49Z")

</div>

Hello, I am developing a desktop app on Processing that reads data arriving on a Serial port. The app will be distributed to users running either Windows or MacOS. They will have an Arduino Uno set up to stream data to …

---

## [Comm to Arduino](https://discourse.processing.org/t/comm-to-arduino/22334)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 3\
**Last updated:** [July 4, 2020, 3:48pm UTC](https://discourse.processing.org/t/comm-to-arduino/22334 "2020-07-04T15:48:37Z")

</div>

I’m building a GUI for an Arduino project I have. The GUI has some switches and sliders. My question is, What is a good method to ID which control is communicating to the Arduino at anyone time. For example suppose there…

---

## [Automatic serial port finder for Arduino](https://discourse.processing.org/t/automatic-serial-port-finder-for-arduino/22300)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 6\
**Last updated:** [July 3, 2020, 10:37am UTC](https://discourse.processing.org/t/automatic-serial-port-finder-for-arduino/22300 "2020-07-03T10:37:02Z")

</div>

I have an Arduino and I wish to automatically adjust the COM serial port number. Let’s say I have a variable names arduinoSerialPortNumber and I have the following line: String portName = Serial.list()\[arduinoSerialPort…

---

## [Data from PDE to Arduinio IDE on continual basis](https://discourse.processing.org/t/data-from-pde-to-arduinio-ide-on-continual-basis/22310)

<div class="topic-metadata">

**Author:** [@kmot](https://discourse.processing.org/u/kmot)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 9:14am UTC](https://discourse.processing.org/t/data-from-pde-to-arduinio-ide-on-continual-basis/22310 "2020-07-03T09:14:12Z")

</div>

"Building" a PDE / IDE connection to pass ongoing and changing data from PC (W10/64) to an Arduino board with an LCD. Eventual goal is an LCD-display clock. \*My existing code succeeds,up to a point.\*. In the test se…

---

## [Data exchanges via PORTS - Arduino and Processing](https://discourse.processing.org/t/data-exchanges-via-ports-arduino-and-processing/22264)

<div class="topic-metadata">

**Author:** [@kmot](https://discourse.processing.org/u/kmot)\
**Replies:** 8\
**Last updated:** [July 1, 2020, 6:19pm UTC](https://discourse.processing.org/t/data-exchanges-via-ports-arduino-and-processing/22264 "2020-07-01T18:19:52Z")

</div>

BASIC QUESTION: : reading and / writing short data streams (char, int, binary. strings).VIA THE ports The code for each side (IDE and PDE) is from a tutorial web site: https://forum.arduino.cc/index.php?topic=434516.0 …

---

## [Vl6180x and Ardunio Uno - writting serial data to a textfile](https://discourse.processing.org/t/vl6180x-and-ardunio-uno-writting-serial-data-to-a-textfile/22177)

<div class="topic-metadata">

**Author:** [@AndreasW](https://discourse.processing.org/u/AndreasW)\
**Replies:** 2\
**Last updated:** [June 30, 2020, 11:42am UTC](https://discourse.processing.org/t/vl6180x-and-ardunio-uno-writting-serial-data-to-a-textfile/22177 "2020-06-30T11:42:57Z")

</div>

Good morning i am wondering if anyone could help me with this little code, or point me in the direction on why it is not working. singular function: Reading range from a lidar, and save it into a text document, to be …

---

## [Showing buttons based on a message received by arduino](https://discourse.processing.org/t/showing-buttons-based-on-a-message-received-by-arduino/22235)

<div class="topic-metadata">

**Author:** [@mohitSingh](https://discourse.processing.org/u/mohitSingh)\
**Replies:** 9\
**Last updated:** [June 30, 2020, 8:24am UTC](https://discourse.processing.org/t/showing-buttons-based-on-a-message-received-by-arduino/22235 "2020-06-30T08:24:16Z")

</div>

Hi, This is my first or second processing code and I am findind it a bit difficult to wrap my head around processing. I am trying to make a simple GUI, where I send a UDP packet to my arduino and receive an acknowledge…

---

## [Timing Problem xxx](https://discourse.processing.org/t/timing-problem-xxx/22180)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 9\
**Last updated:** [June 27, 2020, 10:11pm UTC](https://discourse.processing.org/t/timing-problem-xxx/22180 "2020-06-27T22:11:50Z")

</div>

I have made an G4P image button as an ON/OFF switch for an Arduino program. I’m having some timing problems. Seems that when the image button is turned on the Arduino comes on with no noticeable delay, but when the image…

---

## [Processing , second user interface via chrome](https://discourse.processing.org/t/processing-second-user-interface-via-chrome/21771)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 11\
**Last updated:** [June 26, 2020, 8:34am UTC](https://discourse.processing.org/t/processing-second-user-interface-via-chrome/21771 "2020-06-26T08:34:48Z")

</div>

I have written a scetch for processing. I’m reading a circuit of sensors via usb and I’ve created a graphical environment. Is it possible to create a server within the same scetch and display a second user interface so t…

---

## [G4P button properties and methods](https://discourse.processing.org/t/g4p-button-properties-and-methods/22068)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 8\
**Last updated:** [June 25, 2020, 3:26pm UTC](https://discourse.processing.org/t/g4p-button-properties-and-methods/22068 "2020-06-25T15:26:33Z")

</div>

I consider myself a beginner with processing. Recently I wrote a program to test ignition coils using an Arduino. The program works fine, but uses the serial monitor to control it. I have downloaded the G4P GUI tool and …

---

## [Serial sample frequency analysis](https://discourse.processing.org/t/serial-sample-frequency-analysis/21560)

<div class="topic-metadata">

**Author:** [@MiguelSanches](https://discourse.processing.org/u/MiguelSanches)\
**Replies:** 8\
**Last updated:** [June 23, 2020, 7:38am UTC](https://discourse.processing.org/t/serial-sample-frequency-analysis/21560 "2020-06-23T07:38:57Z")

</div>

Hi everyone, I am currently doing some tests on hardware. I am using a teensy 3.2 to send a byte stream of 87 bytes every 3.125ms (corresponding to 320SPS). The code can be found below. Arduino code: long Loop\_start; …

---

## [About saving data](https://discourse.processing.org/t/about-saving-data/21964)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 3\
**Last updated:** [June 18, 2020, 4:46pm UTC](https://discourse.processing.org/t/about-saving-data/21964 "2020-06-18T16:46:32Z")

</div>

I can read and make a graph about those values that I can send from Arduino. I want to save those datas as an .csv file (Excel with commas between values) Is there a way ?

---

## [Why doesn't the port.write() work when placed inside the setup() function? Processing doesn't get serial data back from Arduino](https://discourse.processing.org/t/why-doesnt-the-port-write-work-when-placed-inside-the-setup-function-processing-doesnt-get-serial-data-back-from-arduino/21920)

<div class="topic-metadata">

**Author:** [@wasd808](https://discourse.processing.org/u/wasd808)\
**Replies:** 5\
**Last updated:** [June 18, 2020, 11:57am UTC](https://discourse.processing.org/t/why-doesnt-the-port-write-work-when-placed-inside-the-setup-function-processing-doesnt-get-serial-data-back-from-arduino/21920 "2020-06-18T11:57:01Z")

</div>

I’m using processing with an Arduino UNO for my application. I’m making an adaptive traffic light system and for that, I’ve implemented a primitive graphic display in processing. In this, the processing code reads the nu…

---

## [How to save last selections on Processing](https://discourse.processing.org/t/how-to-save-last-selections-on-processing/21695)

<div class="topic-metadata">

**Author:** [@jensenphan](https://discourse.processing.org/u/jensenphan)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 6:08am UTC](https://discourse.processing.org/t/how-to-save-last-selections-on-processing/21695 "2020-06-16T06:08:36Z")

</div>

Hi everyone, i am an amatur coder. I want to use Processing as user interface to controll my arduino with LED color. I want to save config i choose on Processing. My mean the User interface will show last select when i…

---

## [How do I use Processing to read and write data to an Arduino](https://discourse.processing.org/t/how-do-i-use-processing-to-read-and-write-data-to-an-arduino/21113)

<div class="topic-metadata">

**Author:** [@McLae5](https://discourse.processing.org/u/McLae5)\
**Replies:** 13\
**Last updated:** [June 10, 2020, 10:43pm UTC](https://discourse.processing.org/t/how-do-i-use-processing-to-read-and-write-data-to-an-arduino/21113 "2020-06-10T22:43:09Z")

</div>

Looking for a front end to manage Arduino data from a PC. I Know the arduino side (Serial IO and parsing), looking for a PC side option. The need is to read data from the arduino, make changes, and write updated data b…

---

## [3d Digitzer Arm build](https://discourse.processing.org/t/3d-digitzer-arm-build/2868)

<div class="topic-metadata">

**Author:** [@MickHanks](https://discourse.processing.org/u/MickHanks)\
**Replies:** 16\
**Last updated:** [June 6, 2020, 9:07pm UTC](https://discourse.processing.org/t/3d-digitzer-arm-build/2868 "2020-06-06T21:07:47Z")

</div>

Hi, thanks for any help. Question = How do I know a Processing app is getting a signal from the COMPORT? I’m stuck with this project. https://www.youtube.com/watch?v=8feFq3ugSLI I’ve built the hardware, Wired it, Inst…

---

## [About Processing's serial port](https://discourse.processing.org/t/about-processings-serial-port/21432)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 9\
**Last updated:** [May 30, 2020, 9:26pm UTC](https://discourse.processing.org/t/about-processings-serial-port/21432 "2020-05-30T21:26:30Z")

</div>

Hi there It’s me again so Here is a photo about the issue. . So as you can see (here is the code btw import processing.serial.\*; import controlP5.\*; ///////////////// int interval = 0; int end = 10; String received…

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

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