# Electronics (Arduino, etc.)

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

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

**Page:** 3

---

## [FTDI USB DMX device (Mac)](https://discourse.processing.org/t/ftdi-usb-dmx-device-mac/24149)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 7\
**Last updated:** [October 31, 2023, 12:08am UTC](https://discourse.processing.org/t/ftdi-usb-dmx-device-mac/24149 "2023-10-31T00:08:13Z")

</div>

I have a cheap ftdi usb to dmx device. I have it working with 3rd party software but I want to try with Processing. There is the OpenDMX library but it is windows only. Anyone know of a similar library for osx? Or mayb…

---

## [Error with importing javax.xml.bind.DatatypeConverter](https://discourse.processing.org/t/error-with-importing-javax-xml-bind-datatypeconverter/43019)

<div class="topic-metadata">

**Author:** [@Shivam](https://discourse.processing.org/u/Shivam)\
**Replies:** 2\
**Last updated:** [October 21, 2023, 4:43am UTC](https://discourse.processing.org/t/error-with-importing-javax-xml-bind-datatypeconverter/43019 "2023-10-21T04:43:46Z")

</div>

While running the code, i am getting the following error “The package “javax.xml.bind” does not exist. You might be missing a library.” \</ import processing.serial.; import java.nio.ByteBuffer; import java.nio.ByteOr…

---

## [The table is not displaying updated data](https://discourse.processing.org/t/the-table-is-not-displaying-updated-data/42931)

<div class="topic-metadata">

**Author:** [@kusspuss](https://discourse.processing.org/u/kusspuss)\
**Replies:** 6\
**Last updated:** [October 11, 2023, 1:09pm UTC](https://discourse.processing.org/t/the-table-is-not-displaying-updated-data/42931 "2023-10-11T13:09:00Z")

</div>

the table is not displaying updated data , processing ide recieved parsed values import processing.serial.\*; import java.util.ArrayList; Serial myPort; // Create a Serial object Table dataTable; // A table to store the…

---

## [Getting different errors reading Serial data from MPU6050 and DHT11](https://discourse.processing.org/t/getting-different-errors-reading-serial-data-from-mpu6050-and-dht11/42917)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 1\
**Last updated:** [October 7, 2023, 6:08pm UTC](https://discourse.processing.org/t/getting-different-errors-reading-serial-data-from-mpu6050-and-dht11/42917 "2023-10-07T18:08:16Z")

</div>

I’m trying to read Serial data from 3 different sensors, a DHT11, and MPU6050 and a 30Bar pressure sensor by BlueRobotics. I should mention the pressure sensor and mpu6050 are connected to my Arduino via a multiplexer. I…

---

## [Weird DHT11 reading](https://discourse.processing.org/t/weird-dht11-reading/42869)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 1\
**Last updated:** [October 1, 2023, 4:02pm UTC](https://discourse.processing.org/t/weird-dht11-reading/42869 "2023-10-01T16:02:12Z")

</div>

I’m trying read values from a DHT11 sensor on my arduino uno. I have a very simple arduino sketch that writes just humidity, that’s the only value I want. I wrote a very simple processing sketch (see below) that reads an…

---

## [My boss gave me 6 Teensy 4.0's, can these be used for video?](https://discourse.processing.org/t/my-boss-gave-me-6-teensy-4-0s-can-these-be-used-for-video/42796)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 2\
**Last updated:** [September 21, 2023, 1:26pm UTC](https://discourse.processing.org/t/my-boss-gave-me-6-teensy-4-0s-can-these-be-used-for-video/42796 "2023-09-21T13:26:48Z")

</div>

I want to have a camera that feeds a live stream to my computer, more specifically I want to show the video in Processing. I’ve read the Arduino is not good at processing or showing video so I’ve considered getting a Pi …

---

## [Processing and Arduino ultrasonic sensor](https://discourse.processing.org/t/processing-and-arduino-ultrasonic-sensor/42778)

<div class="topic-metadata">

**Author:** [@andreiaferrsilva](https://discourse.processing.org/u/andreiaferrsilva)\
**Replies:** 3\
**Last updated:** [September 19, 2023, 7:20pm UTC](https://discourse.processing.org/t/processing-and-arduino-ultrasonic-sensor/42778 "2023-09-19T19:20:59Z")

</div>

Hello! I’m working on a project with processing, Arduino and an ultrasonic sensor. Now I’ve come across a problem that I can’t solve, if anyone can help me I’d be grateful! This Processing code controls the playback of …

---

## [Electronic speed controller not working](https://discourse.processing.org/t/electronic-speed-controller-not-working/42780)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 4\
**Last updated:** [September 18, 2023, 7:47pm UTC](https://discourse.processing.org/t/electronic-speed-controller-not-working/42780 "2023-09-18T19:47:18Z")

</div>

Im using a PS4 controller with the game control plus library in processing with a DC motor wired to an electronic speed controller in pin 2 of my arduino. The DC motor runs on 12-16Vs so my battery is a 14.8V and connect…

---

## [Send OSC data to ESP 32 (Wi-Fi module connected to Arduino board)](https://discourse.processing.org/t/send-osc-data-to-esp-32-wi-fi-module-connected-to-arduino-board/42724)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 6\
**Last updated:** [September 15, 2023, 9:12pm UTC](https://discourse.processing.org/t/send-osc-data-to-esp-32-wi-fi-module-connected-to-arduino-board/42724 "2023-09-15T21:12:25Z")

</div>

Hello. I would like to send data from Processing to ESP32 ( a wifi module plugged in a Arduino) The Processing program is /\*\* \* oscP5sendreceive by andreas schlegel \* example shows how to send and receive osc messag…

---

## [Getting data from a DS18B20 temp sensor](https://discourse.processing.org/t/getting-data-from-a-ds18b20-temp-sensor/42745)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 2\
**Last updated:** [September 13, 2023, 9:23pm UTC](https://discourse.processing.org/t/getting-data-from-a-ds18b20-temp-sensor/42745 "2023-09-13T21:23:09Z")

</div>

Hi everyone, I’m trying to integrate tabs into my code and I want to read a few waterproof temp sensors. I want to show the temperature as a sliding scale bar and I think I’m close, I have a DS18B20 in Pin 2 on my Ardui…

---

## [Why won't my rectangle stay where it is when I press button?](https://discourse.processing.org/t/why-wont-my-rectangle-stay-where-it-is-when-i-press-button/42747)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 7:11am UTC](https://discourse.processing.org/t/why-wont-my-rectangle-stay-where-it-is-when-i-press-button/42747 "2023-09-12T07:11:06Z")

</div>

Hopefully the title is descriptive enough to get my point across. I’ve been working on building an rov for a while and wanted a rectangle in my GUI to indicate whether or not the LEDs are on. I’m also using a PS4 control…

---

## [Scale up and down an ellipse doesn't work within a function](https://discourse.processing.org/t/scale-up-and-down-an-ellipse-doesnt-work-within-a-function/42564)

<div class="topic-metadata">

**Author:** [@blindschleiche](https://discourse.processing.org/u/blindschleiche)\
**Replies:** 31\
**Last updated:** [September 11, 2023, 11:58am UTC](https://discourse.processing.org/t/scale-up-and-down-an-ellipse-doesnt-work-within-a-function/42564 "2023-09-11T11:58:05Z")

</div>

hi there i found a possibility to make a maske for a livecam which scales from small to big and back. now i tryed to write it in a function. unfortunately it doesn’t work propper and i have no idea why. it must be somet…

---

## [Set more then two analog pins as output](https://discourse.processing.org/t/set-more-then-two-analog-pins-as-output/42737)

<div class="topic-metadata">

**Author:** [@epco](https://discourse.processing.org/u/epco)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 11:34am UTC](https://discourse.processing.org/t/set-more-then-two-analog-pins-as-output/42737 "2023-09-11T11:34:22Z")

</div>

I have a Arduino 8 relay module board that I want to controle via a Arduino UNO that has installed the standardFirmata sketch. When I test the Arduino and relay board I can control relay 1 to 6 via analog pin A0 until A…

---

## [Help with turning LEDs on and off using Game Control Plus Library and PS4 remote](https://discourse.processing.org/t/help-with-turning-leds-on-and-off-using-game-control-plus-library-and-ps4-remote/42717)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 4:32pm UTC](https://discourse.processing.org/t/help-with-turning-leds-on-and-off-using-game-control-plus-library-and-ps4-remote/42717 "2023-09-08T16:32:10Z")

</div>

Hello everyone, As the title suggests, I’m using the game control plus library to turn on an LED, I’ve read through some other threads with similar issues but haven’t found a solution. I want to press X and have an LED …

---

## [I want to control a relay with a button press from a joystick using Game Control Plus and Arduino](https://discourse.processing.org/t/i-want-to-control-a-relay-with-a-button-press-from-a-joystick-using-game-control-plus-and-arduino/36153)

<div class="topic-metadata">

**Author:** [@01G8R](https://discourse.processing.org/u/01G8R)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 2:50pm UTC](https://discourse.processing.org/t/i-want-to-control-a-relay-with-a-button-press-from-a-joystick-using-game-control-plus-and-arduino/36153 "2023-09-08T14:50:27Z")

</div>

I am using the Game Control Plus library in processing. I have setup a configuration for the joystick and mapped one button to “TRIM”. Processing is reading button presses correctly. The code below runs and the Arduin…

---

## [How to draw this graph](https://discourse.processing.org/t/how-to-draw-this-graph/42376)

<div class="topic-metadata">

**Author:** [@kusspuss](https://discourse.processing.org/u/kusspuss)\
**Replies:** 42\
**Last updated:** [September 7, 2023, 4:55pm UTC](https://discourse.processing.org/t/how-to-draw-this-graph/42376 "2023-09-07T16:55:06Z")

</div>

i want to draw this kind of graph please guide me thank you

---

## [Serial read() Arduino](https://discourse.processing.org/t/serial-read-arduino/42689)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 7\
**Last updated:** [September 2, 2023, 7:47am UTC](https://discourse.processing.org/t/serial-read-arduino/42689 "2023-09-02T07:47:21Z")

</div>

Hi! I have successfully established a Serial connection from Arduino to Processing using the read()-function (read() / Libraries / Processing.org). This only returns numbers between 0 and 255 though and I was wondering …

---

## [Does serialEvent read data at a constant rate?](https://discourse.processing.org/t/does-serialevent-read-data-at-a-constant-rate/42661)

<div class="topic-metadata">

**Author:** [@MrImskiy](https://discourse.processing.org/u/MrImskiy)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 9:18am UTC](https://discourse.processing.org/t/does-serialevent-read-data-at-a-constant-rate/42661 "2023-08-31T09:18:18Z")

</div>

Hi, I am trying to measure the rate at which the void serialEvent (Serial myPort) function reads data. The way I am doing this is as follows: void serialEvent (Serial myPort) { time\_prev1 = time\_now1; time\_now1 = mi…

---

## [Selecting a serial port using a configuration file; a quick tip](https://discourse.processing.org/t/selecting-a-serial-port-using-a-configuration-file-a-quick-tip/42642)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 0\
**Last updated:** [August 22, 2023, 1:23pm UTC](https://discourse.processing.org/t/selecting-a-serial-port-using-a-configuration-file-a-quick-tip/42642 "2023-08-22T13:23:51Z")

</div>

I often see Processing code (for communication with e.g. Arduino) where the port is hard-coded. E.g. myPort = new Serial(this, Serial.list()\[0\], 9600); One thing that people don’t seem to realise is that the second pa…

---

## [Trying to get a BLDC w/ ESC to work with my PS4 controller](https://discourse.processing.org/t/trying-to-get-a-bldc-w-esc-to-work-with-my-ps4-controller/42612)

<div class="topic-metadata">

**Author:** [@bkeith](https://discourse.processing.org/u/bkeith)\
**Replies:** 7\
**Last updated:** [August 18, 2023, 9:46pm UTC](https://discourse.processing.org/t/trying-to-get-a-bldc-w-esc-to-work-with-my-ps4-controller/42612 "2023-08-18T21:46:43Z")

</div>

This is my first post here, im running into trouble with my code and im not sure where im going wrong. I want to control a bldc motor with my ps4 controller, the dc motor is a Firma Spektrum 6000kv BLDC. When I run an ar…

---

## [DIY Wind Weather Station and Remote Monitor via MQTT](https://discourse.processing.org/t/diy-wind-weather-station-and-remote-monitor-via-mqtt/29596)

<div class="topic-metadata">

**Author:** [@Makerhe](https://discourse.processing.org/u/Makerhe)\
**Replies:** 3\
**Last updated:** [August 3, 2023, 8:53am UTC](https://discourse.processing.org/t/diy-wind-weather-station-and-remote-monitor-via-mqtt/29596 "2023-08-03T08:53:07Z")

</div>

This is a DIY Wind Weather Station, It was Remote Monitor via MQTT, it is powered by solar energy, and gathering real-time data such as humidity, temperature, PM2.5, wind speed, etc. If you are interested, you can se…

---

## [Significant delay with serial communication to Arduino](https://discourse.processing.org/t/significant-delay-with-serial-communication-to-arduino/42508)

<div class="topic-metadata">

**Author:** [@somebody](https://discourse.processing.org/u/somebody)\
**Replies:** 3\
**Last updated:** [July 28, 2023, 1:53am UTC](https://discourse.processing.org/t/significant-delay-with-serial-communication-to-arduino/42508 "2023-07-28T01:53:50Z")

</div>

Hello, I am currently attempting to make a simple bluetooth car controlled by an Arduino. I am attempting to control the car from my computer through the use of a key listener. When I run my code, the key listener works …

---

## [Proximity Data Visualization Arduino-Processing. Running into issue with for loop visualization, layout of Processing sketch](https://discourse.processing.org/t/proximity-data-visualization-arduino-processing-running-into-issue-with-for-loop-visualization-layout-of-processing-sketch/42296)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 7\
**Last updated:** [July 30, 2023, 3:10pm UTC](https://discourse.processing.org/t/proximity-data-visualization-arduino-processing-running-into-issue-with-for-loop-visualization-layout-of-processing-sketch/42296 "2023-07-30T15:10:52Z")

</div>

Hi, running into an issue here that seems related to the for loop section of my processing sketch. My aim is to re-draw the loaded image as a grid of ellipses, using .get. The Distance sensor reading from arduino, (myDi…

---

## [Processing IDE code not working (Arduino / Processing)](https://discourse.processing.org/t/processing-ide-code-not-working-arduino-processing/42349)

<div class="topic-metadata">

**Author:** [@kusspuss](https://discourse.processing.org/u/kusspuss)\
**Replies:** 4\
**Last updated:** [July 6, 2023, 2:23pm UTC](https://discourse.processing.org/t/processing-ide-code-not-working-arduino-processing/42349 "2023-07-06T14:23:18Z")

</div>

I make code that do not receive data from Arduino , angle should be along x-axis and h\_dot should be along y-axis import processing.serial.\*; Serial port; float Angle; float h\_dot; void setup() { size(400, 300); …

---

## [Processing + Bluetooth Baudrate](https://discourse.processing.org/t/processing-bluetooth-baudrate/42293)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 2:51pm UTC](https://discourse.processing.org/t/processing-bluetooth-baudrate/42293 "2023-06-27T14:51:09Z")

</div>

I’ve been successful in making PC Bluetooth communicate with HC-05, using processing in creating the graphic user interface making it communicate via Bluetooth pairing it. Though I am not sure what is causing the respons…

---

## [Plotting data from Arduino](https://discourse.processing.org/t/plotting-data-from-arduino/42285)

<div class="topic-metadata">

**Author:** [@cyp](https://discourse.processing.org/u/cyp)\
**Replies:** 5\
**Last updated:** [June 24, 2023, 10:22pm UTC](https://discourse.processing.org/t/plotting-data-from-arduino/42285 "2023-06-24T22:22:33Z")

</div>

Hi everyone.i have a little code i wrote from a school project. if someone could help me wih a code to processing to plot these variables. ex: volt=f(debit) curent=f(debit).

---

## [PC to Bluetooth (with Arduino) does not work when USB is unplugged](https://discourse.processing.org/t/pc-to-bluetooth-with-arduino-does-not-work-when-usb-is-unplugged/42156)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 30\
**Last updated:** [June 11, 2023, 2:21pm UTC](https://discourse.processing.org/t/pc-to-bluetooth-with-arduino-does-not-work-when-usb-is-unplugged/42156 "2023-06-11T14:21:52Z")

</div>

I am currently working on a project connecting and controlling Arduino Uno via Bluetooth, using Processing via PC, but the problem is, it works when the USB port with Arduino is connected, but when I disconnect it and ju…

---

## [Processing - Part Tracer (3D digitizer)](https://discourse.processing.org/t/processing-part-tracer-3d-digitizer/42020)

<div class="topic-metadata">

**Author:** [@AussieBoy](https://discourse.processing.org/u/AussieBoy)\
**Replies:** 20\
**Last updated:** [June 2, 2023, 9:08am UTC](https://discourse.processing.org/t/processing-part-tracer-3d-digitizer/42020 "2023-06-02T09:08:22Z")

</div>

Hi, I haven’t used an Arduino in a number of years. Tied up with life. Starting again from scratch to be honest. But hoping to fast track. Building the project is my aim not to reinvent the entire wheel. Never used pr…

---

## [Deforming a shape with increasing values toward the X axis](https://discourse.processing.org/t/deforming-a-shape-with-increasing-values-toward-the-x-axis/41959)

<div class="topic-metadata">

**Author:** [@michele\_rinaldi](https://discourse.processing.org/u/michele_rinaldi)\
**Replies:** 3\
**Last updated:** [May 12, 2023, 7:11am UTC](https://discourse.processing.org/t/deforming-a-shape-with-increasing-values-toward-the-x-axis/41959 "2023-05-12T07:11:08Z")

</div>

Hi all. I am working on this sketch where I am trying to simulate the inner circles of the tree trunk with a proximity sensor connected to Arduino whose values determine the width of these circles. I wanted to ask if t…

---

## [Serial does not recognize disconnect](https://discourse.processing.org/t/serial-does-not-recognize-disconnect/41770)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 1\
**Last updated:** [April 21, 2023, 12:01pm UTC](https://discourse.processing.org/t/serial-does-not-recognize-disconnect/41770 "2023-04-21T12:01:50Z")

</div>

Hi! I was doing some work with the processing.Serial library and ran into a problem with serial.active(). When I unplug the USB cable to my Arduino while the program is running, serial.active() still returns true. Since…

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

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