# Electronics (Arduino, etc.)

**URL:** https://discourse.processing.org/c/processing/processing-electronics/25.md

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

---

## [About the Electronics (Arduino, etc.) category](https://discourse.processing.org/t/about-the-electronics-arduino-etc-category/1266)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0

</div>

Processing with external electronics devices like an Arduino board or NeoPixels, etc. If you’re using a Raspberry Pi, please use the “Processing for Pi” category.

---

## [Serial ports disappear after years of working reliably](https://discourse.processing.org/t/serial-ports-disappear-after-years-of-working-reliably/49236)

<div class="topic-metadata">

**Author:** [@Craig](https://discourse.processing.org/u/Craig)\
**Replies:** 2\
**Last updated:** [August 22, 2026, 5:40pm UTC](https://discourse.processing.org/t/serial-ports-disappear-after-years-of-working-reliably/49236 "2026-08-22T17:40:25Z")

</div>

I have several projects that have been using the Serial library reliably for years. Recently, on all of my computers (using Macintoshes) the /dev/cu.usbserial-XXXX port has disappeared. The Bluetooth ports are still ther…

---

## [Help with code in the book Make: Getting Started with Arduino](https://discourse.processing.org/t/help-with-code-in-the-book-make-getting-started-with-arduino/48831)

<div class="topic-metadata">

**Author:** [@JTR](https://discourse.processing.org/u/JTR)\
**Replies:** 15\
**Last updated:** [June 25, 2026, 7:44pm UTC](https://discourse.processing.org/t/help-with-code-in-the-book-make-getting-started-with-arduino/48831 "2026-06-25T19:44:39Z")

</div>

Hello, I’m new and with no coding experience. I’m trying to learn Arduino with a book of Make, I purchased the book in 2020, yea procrastination sometimes is big. The thing is that when I try to write this code it gives…

---

## [Mini Pen Plotter](https://discourse.processing.org/t/mini-pen-plotter/48734)

<div class="topic-metadata">

**Author:** [@SPW48](https://discourse.processing.org/u/SPW48)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 12:09am UTC](https://discourse.processing.org/t/mini-pen-plotter/48734 "2026-06-04T00:09:54Z")

</div>

\<Hello, The project is: Making a mini plotter from old CD-ROM stepper motors for the x-axis and y-axis, and a servo motor for the pen lifter. Control is via an Arduino UNO 3 board with a CNC shield and an A4988 stepper…

---

## [Linear compass display to use with a MPU](https://discourse.processing.org/t/linear-compass-display-to-use-with-a-mpu/48060)

<div class="topic-metadata">

**Author:** [@philtkp](https://discourse.processing.org/u/philtkp)\
**Replies:** 55\
**Last updated:** [May 15, 2026, 2:49pm UTC](https://discourse.processing.org/t/linear-compass-display-to-use-with-a-mpu/48060 "2026-05-15T14:49:03Z")

</div>

I’m trying to make a linear compass using a MPU(I2C) and Arduino. I was able to get a regular compass to function properly reading data from the Arduino. Now I’m trying this. I’m using the MouseX() to give me the 0-360 d…

---

## [Modifier une cintreuse](https://discourse.processing.org/t/modifier-une-cintreuse/47923)

<div class="topic-metadata">

**Author:** [@CONTY](https://discourse.processing.org/u/CONTY)\
**Replies:** 4\
**Last updated:** [February 22, 2026, 4:05pm UTC](https://discourse.processing.org/t/modifier-une-cintreuse/47923 "2026-02-22T16:05:17Z")

</div>

Un bloc controllino pilote les électrovannes d’une cinteuse BLM B40-D Processing est installé sur un Pc tactile (DELL Inspiron one) afin de piloter ce Contollino. Le but du programme est de gérer des fichiers, ces fic…

---

## [I need a code for a radar](https://discourse.processing.org/t/i-need-a-code-for-a-radar/47892)

<div class="topic-metadata">

**Author:** [@theradarguy](https://discourse.processing.org/u/theradarguy)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 10:43pm UTC](https://discourse.processing.org/t/i-need-a-code-for-a-radar/47892 "2026-02-19T22:43:17Z")

</div>

i need code for a radar that makes it into a stl 3d item that downloads once i hit a button it downloads it the port is /dev/cu.usbmodem4827E2E111D02 my arduino code prints out the distance and its constantly rotating a …

---

## [loadImage() with base64 encoded jpg](https://discourse.processing.org/t/loadimage-with-base64-encoded-jpg/47681)

<div class="topic-metadata">

**Author:** [@papertree](https://discourse.processing.org/u/papertree)\
**Replies:** 8\
**Last updated:** [January 7, 2026, 8:00pm UTC](https://discourse.processing.org/t/loadimage-with-base64-encoded-jpg/47681 "2026-01-07T20:00:07Z")

</div>

I am writing a program that gets an image encoded in base64 through the Serial port. I want to then load that image in my Processing program to analyze it. It seems that loadImage() should work with base64 encoded data,…

---

## [Processing not finding Arduino Uno](https://discourse.processing.org/t/processing-not-finding-arduino-uno/47602)

<div class="topic-metadata">

**Author:** [@SWijnen](https://discourse.processing.org/u/SWijnen)\
**Replies:** 4\
**Last updated:** [December 10, 2025, 2:14pm UTC](https://discourse.processing.org/t/processing-not-finding-arduino-uno/47602 "2025-12-10T14:14:22Z")

</div>

Hey everyone, I’m working on a project for school, and for some reason, my environment is messing up. The deadline is upcoming Friday, so I’m still researching some solutions while also making this post. Thanks for your…

---

## [Processing + OSC + Arduino: Application Freezes When Controlling Fan](https://discourse.processing.org/t/processing-osc-arduino-application-freezes-when-controlling-fan/47568)

<div class="topic-metadata">

**Author:** [@brightscape](https://discourse.processing.org/u/brightscape)\
**Replies:** 7\
**Last updated:** [December 9, 2025, 7:58pm UTC](https://discourse.processing.org/t/processing-osc-arduino-application-freezes-when-controlling-fan/47568 "2025-12-09T19:58:38Z")

</div>

Hi There, I was wondering if anyone could help me. I am trying to drive a fan/motor using an OSC command. It’s running well through via an arduino to a potentiometer controller on the fan. I have used OSC as the button p…

---

## [I am attempting a serial communication with my Arduino](https://discourse.processing.org/t/i-am-attempting-a-serial-communication-with-my-arduino/47521)

<div class="topic-metadata">

**Author:** [@electron59](https://discourse.processing.org/u/electron59)\
**Replies:** 3\
**Last updated:** [November 11, 2025, 12:28pm UTC](https://discourse.processing.org/t/i-am-attempting-a-serial-communication-with-my-arduino/47521 "2025-11-11T12:28:31Z")

</div>

I am getting an error stating the class “string” does not exist and in same block variable “port” and variable “ lastTime” does not exist . I believe it is something to do with a serial port list for the Arduino is not …

---

## [Please help, code crashes and I can't figure out why](https://discourse.processing.org/t/please-help-code-crashes-and-i-cant-figure-out-why/47440)

<div class="topic-metadata">

**Author:** [@Hallowed31](https://discourse.processing.org/u/Hallowed31)\
**Replies:** 4\
**Last updated:** [October 25, 2025, 7:17pm UTC](https://discourse.processing.org/t/please-help-code-crashes-and-i-cant-figure-out-why/47440 "2025-10-25T19:17:08Z")

</div>

Hello all. Time is getting thin, as is my ability to troubleshoot errors I do not understand. My code interfaces with an Arduino Uno R4 Wifi and all the Arduino does is send messages over Serial to change the state of m…

---

## [Error with Serial library](https://discourse.processing.org/t/error-with-serial-library/47333)

<div class="topic-metadata">

**Author:** [@unkient](https://discourse.processing.org/u/unkient)\
**Replies:** 3\
**Last updated:** [October 13, 2025, 3:05pm UTC](https://discourse.processing.org/t/error-with-serial-library/47333 "2025-10-13T15:05:17Z")

</div>

Hello, friends! I’ve got an error on my computer. When i’m trying to import serial library with this code: “import processing.serial.\*;” processing gives me an error “The package “processing.serial” does not exist. You…

---

## [Serial.list() does not update when connected port is removed](https://discourse.processing.org/t/serial-list-does-not-update-when-connected-port-is-removed/47224)

<div class="topic-metadata">

**Author:** [@bonner45](https://discourse.processing.org/u/bonner45)\
**Replies:** 2\
**Last updated:** [September 26, 2025, 1:38am UTC](https://discourse.processing.org/t/serial-list-does-not-update-when-connected-port-is-removed/47224 "2025-09-26T01:38:22Z")

</div>

It appears that when you connect to a serial port and then remove the cable serial list does not update. here is a test code. import processing.serial.\*; Serial myPort; // Create object from Serial class void setup…

---

## [Need help with text position (solved)](https://discourse.processing.org/t/need-help-with-text-position-solved/46756)

<div class="topic-metadata">

**Author:** [@Meteor122](https://discourse.processing.org/u/Meteor122)\
**Replies:** 11\
**Last updated:** [August 18, 2025, 7:58pm UTC](https://discourse.processing.org/t/need-help-with-text-position-solved/46756 "2025-08-18T19:58:26Z")

</div>

Hi everyone, I’m creating the GUI for a ground station for a rocket I’m building with Arduino, or rather, chatGPT did it for me since I have no experience with processing and don’t have the time to learn it, so I’ll s…

---

## [G4P textarea too slow?](https://discourse.processing.org/t/g4p-textarea-too-slow/46865)

<div class="topic-metadata">

**Author:** [@bonner45](https://discourse.processing.org/u/bonner45)\
**Replies:** 7\
**Last updated:** [August 7, 2025, 5:22pm UTC](https://discourse.processing.org/t/g4p-textarea-too-slow/46865 "2025-08-07T17:22:07Z")

</div>

Hi i’m working on this project. https://github.com/bonner72/SerialTerminal when i send data to G4P text area any faster than a line per 200-300 millis it does not update fast enough. This is how i push data to the text…

---

## [Impossible to activate debug in Processing](https://discourse.processing.org/t/impossible-to-activate-debug-in-processing/46781)

<div class="topic-metadata">

**Author:** [@PyM72](https://discourse.processing.org/u/PyM72)\
**Replies:** 13\
**Last updated:** [July 29, 2025, 7:40am UTC](https://discourse.processing.org/t/impossible-to-activate-debug-in-processing/46781 "2025-07-29T07:40:02Z")

</div>

Hi all, I run processing 4.4.4 on my Ubuntu 22.04. The tool runs perfectly in normal mode but not in debug. There is no issue to activate debug mode but this has no effects at all. I mean I can still run my sketch and…

---

## [Error, disabling serialEvent() for COM8 null (A Solution that worked for me)](https://discourse.processing.org/t/error-disabling-serialevent-for-com8-null-a-solution-that-worked-for-me/36120)

<div class="topic-metadata">

**Author:** [@owens1024](https://discourse.processing.org/u/owens1024)\
**Replies:** 2\
**Last updated:** [July 16, 2025, 2:05am UTC](https://discourse.processing.org/t/error-disabling-serialevent-for-com8-null-a-solution-that-worked-for-me/36120 "2025-07-16T02:05:20Z")

</div>

Good afternoon All, Problem: Error, disabling serialEvent() for COM8 null ..when running a PROCESSING sketch Environment I have an Arduino Uno running an Ultrasonic sweep sketch and am trying to learn PROCESSING by…

---

## [Serial.list() not showing USB ports (available serial ports)](https://discourse.processing.org/t/serial-list-not-showing-usb-ports-available-serial-ports/46429)

<div class="topic-metadata">

**Author:** [@newuser](https://discourse.processing.org/u/newuser)\
**Replies:** 11\
**Last updated:** [July 7, 2025, 2:51pm UTC](https://discourse.processing.org/t/serial-list-not-showing-usb-ports-available-serial-ports/46429 "2025-07-07T14:51:15Z")

</div>

Windows 11 (auto update) Processing 4.4.4 I have two USB ports available, and both work with other hardware not related to Processing (mouse, USB printer, USB memory, battery tester, audio player, Arduino, ESP). Using…

---

## [Got stuck for 4 days on a tiny Serial bug](https://discourse.processing.org/t/got-stuck-for-4-days-on-a-tiny-serial-bug/46555)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 5\
**Last updated:** [June 17, 2025, 4:54am UTC](https://discourse.processing.org/t/got-stuck-for-4-days-on-a-tiny-serial-bug/46555 "2025-06-17T04:54:27Z")

</div>

I’ve spent 4 days trying to find a bug in a piece of code :frowning: It eventually boiled down to the below (incorrect) line \_myPort = new Serial(\_parent, \_port, 115200, 'N', '8', '1'); And yes, I’ve done serial…

---

## [Device connection failed](https://discourse.processing.org/t/device-connection-failed/46408)

<div class="topic-metadata">

**Author:** [@UZEW8](https://discourse.processing.org/u/UZEW8)\
**Replies:** 14\
**Last updated:** [May 24, 2025, 3:00am UTC](https://discourse.processing.org/t/device-connection-failed/46408 "2025-05-24T03:00:46Z")

</div>

I cannot run the very first board example. “Oscilloscope”. Processing sees 2 COM ports, tries to connect to one and then the other, but then announces “failed to connect”. Please help (board is blinking BLU at 2 Hz) Con…

---

## [CRC Libraries for Processing?](https://discourse.processing.org/t/crc-libraries-for-processing/44449)

<div class="topic-metadata">

**Author:** [@Thundercat](https://discourse.processing.org/u/Thundercat)\
**Replies:** 18\
**Last updated:** [July 24, 2024, 1:04pm UTC](https://discourse.processing.org/t/crc-libraries-for-processing/44449 "2024-07-24T13:04:58Z")

</div>

Hi, I’m working up a serial communications app with a Teensy/Arduino and a processing sketch. It’s going well, and I want to implement some checksums to safeguard data transmissions. I’ve found several libraries on the A…

---

## [Packet loss when transmitting using Bluetooth](https://discourse.processing.org/t/packet-loss-when-transmitting-using-bluetooth/45754)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 2\
**Last updated:** [February 27, 2025, 2:18am UTC](https://discourse.processing.org/t/packet-loss-when-transmitting-using-bluetooth/45754 "2025-02-27T02:18:21Z")

</div>

I use the Bluetooth serial port to transmit data. There is data output but it cannot be output in real time. Because multiple data packets are transmitted, is it because my unpacking process affects the drawing? Here is …

---

## [Advice on what graphic card to buy](https://discourse.processing.org/t/advice-on-what-graphic-card-to-buy/45798)

<div class="topic-metadata">

**Author:** [@lucedan](https://discourse.processing.org/u/lucedan)\
**Replies:** 0\
**Last updated:** [February 19, 2025, 10:37am UTC](https://discourse.processing.org/t/advice-on-what-graphic-card-to-buy/45798 "2025-02-19T10:37:47Z")

</div>

Hello everybody, I started creating an audiovisual work, playing my Processing and SuperCollider simultaneously. However, I see some limitations due to my integrated graphic card, and I was considering whether buying an…

---

## [ESP32 Bluetooth transmission problem](https://discourse.processing.org/t/esp32-bluetooth-transmission-problem/45730)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 5\
**Last updated:** [February 9, 2025, 2:33pm UTC](https://discourse.processing.org/t/esp32-bluetooth-transmission-problem/45730 "2025-02-09T14:33:11Z")

</div>

Part of the Arduino function is as follows： void sendDataThroughUART(void){ DataPacket\[0\] = ecgFilterout; DataPacket\[1\] = ecgFilterout \>\> 8; DataPacket\[2\] = resWaveBuff; DataPacket\[3\] = resWaveBuff \>\> 8; Dat…

---

## [Send message from Processing to Touch OSC Mk1 to update a led status](https://discourse.processing.org/t/send-message-from-processing-to-touch-osc-mk1-to-update-a-led-status/34767)

<div class="topic-metadata">

**Author:** [@dams2007](https://discourse.processing.org/u/dams2007)\
**Replies:** 21\
**Last updated:** [January 29, 2025, 9:13am UTC](https://discourse.processing.org/t/send-message-from-processing-to-touch-osc-mk1-to-update-a-led-status/34767 "2025-01-29T09:13:17Z")

</div>

Hi everyone, I am actually working on a processing Sketch to link with Touch OSC app on Iphone / Ipad to create a custom MIDI controller I am almost done to cover the functionalities that I need to build my interface. …

---

## [How to draw real-time data in a specific canvas area？](https://discourse.processing.org/t/how-to-draw-real-time-data-in-a-specific-canvas-area/45631)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 38\
**Last updated:** [January 26, 2025, 4:26pm UTC](https://discourse.processing.org/t/how-to-draw-real-time-data-in-a-specific-canvas-area/45631 "2025-01-26T16:26:52Z")

</div>

Excuse me, I am testing multiple physiological parameters and hope to draw real-time waveforms in a specific canvas area, taking ECG as an example, how should I do it? I have three channels of data. The data received…

---

## [Processing and Arduino Serial Example](https://discourse.processing.org/t/processing-and-arduino-serial-example/31650)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 4\
**Last updated:** [December 21, 2024, 5:39pm UTC](https://discourse.processing.org/t/processing-and-arduino-serial-example/31650 "2024-12-21T17:39:25Z")

</div>

Hi @josephh, @glv, @PhilHaw, @TfGuy44, I’ve included you specifically because I’ve seen you reply to Proceesing+Arduino Serial questions, but anyone else is welcome to join in. I’m sure you’ve noticed that the same …

---

## [Auto scroll to end not working with GTextarea](https://discourse.processing.org/t/auto-scroll-to-end-not-working-with-gtextarea/45235)

<div class="topic-metadata">

**Author:** [@lohith](https://discourse.processing.org/u/lohith)\
**Replies:** 6\
**Last updated:** [November 2, 2024, 1:58pm UTC](https://discourse.processing.org/t/auto-scroll-to-end-not-working-with-gtextarea/45235 "2024-11-02T13:58:18Z")

</div>

I want to send a command in serial and it prints many lines of data in serial monitor. but here auto scroll not working, and even I remove the lines (see comment // auto scroll) still the scroll bar moving slowly to do…

---

## [Adding date and time stamp to create writer](https://discourse.processing.org/t/adding-date-and-time-stamp-to-create-writer/45192)

<div class="topic-metadata">

**Author:** [@SteveH](https://discourse.processing.org/u/SteveH)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 2:25pm UTC](https://discourse.processing.org/t/adding-date-and-time-stamp-to-create-writer/45192 "2024-10-16T14:25:26Z")

</div>

Hi All, I am new to processing 4.3, so please forgive me if what I am asking is very basic. I have been programming using Adruino IDE for some time now and have come across and interesting project in the link below: W…

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