# Electronics (Arduino, etc.)

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

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

**Page:** 5

---

## [Weird behavior Closing and opening serial Port in Windows. Bug?](https://discourse.processing.org/t/weird-behavior-closing-and-opening-serial-port-in-windows-bug/39559)

<div class="topic-metadata">

**Author:** [@PAk](https://discourse.processing.org/u/PAk)\
**Replies:** 3\
**Last updated:** [November 5, 2022, 2:32pm UTC](https://discourse.processing.org/t/weird-behavior-closing-and-opening-serial-port-in-windows-bug/39559 "2022-11-05T14:32:27Z")

</div>

Hello I am trying to close and reopening a serial port in Windows ( CP210x) and it is not possible. This is some pretty simple code: case '9': println("pre-serial: "+serial); serial.clear(); serial.s…

---

## [Image keeps being redrawn after 'deleted'](https://discourse.processing.org/t/image-keeps-being-redrawn-after-deleted/39542)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 9\
**Last updated:** [November 4, 2022, 9:45am UTC](https://discourse.processing.org/t/image-keeps-being-redrawn-after-deleted/39542 "2022-11-04T09:45:46Z")

</div>

Hi all, I am working on a game in processing where a Fish needs to eat some food. I used object collision detection to know when the fish collided with a food object, and then want to delete that object. For this I use…

---

## [Measuring change in X position of image](https://discourse.processing.org/t/measuring-change-in-x-position-of-image/39477)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 4:06pm UTC](https://discourse.processing.org/t/measuring-change-in-x-position-of-image/39477 "2022-11-02T16:06:11Z")

</div>

Hi all, I am creating a game in processing and arduino. The game Character is a little red fish who can move inside his pool. I would like that the fish his head moves left when he is directed to move left by the contro…

---

## [Arduino and Processing gives NullPointerException](https://discourse.processing.org/t/arduino-and-processing-gives-nullpointerexception/39399)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 7\
**Last updated:** [October 28, 2022, 3:05pm UTC](https://discourse.processing.org/t/arduino-and-processing-gives-nullpointerexception/39399 "2022-10-28T15:05:40Z")

</div>

Hi all! Just started with making a game in processing, connected to Arduino where I am using a joystick. Super exciting, however I am a bit stuck because I keep getting the following error message: NullPointerException …

---

## [Sound Library bugs? (lagging, noise/choppy)](https://discourse.processing.org/t/sound-library-bugs-lagging-noise-choppy/4718)

<div class="topic-metadata">

**Author:** [@kumouni](https://discourse.processing.org/u/kumouni)\
**Replies:** 3\
**Last updated:** [October 23, 2022, 11:02am UTC](https://discourse.processing.org/t/sound-library-bugs-lagging-noise-choppy/4718 "2022-10-23T11:02:20Z")

</div>

Hi, I am new to the Sound Library, and I’m experiencing an issue - while playing an mp3 repeatedly, the audio becomes increasingly choppy / play noise(?) as time passes. I would really really appreciate it if you can h…

---

## [Generating sin wave output values to serial port](https://discourse.processing.org/t/generating-sin-wave-output-values-to-serial-port/39297)

<div class="topic-metadata">

**Author:** [@andy](https://discourse.processing.org/u/andy)\
**Replies:** 5\
**Last updated:** [October 18, 2022, 4:48pm UTC](https://discourse.processing.org/t/generating-sin-wave-output-values-to-serial-port/39297 "2022-10-18T16:48:36Z")

</div>

Good evening to you all. Forgive me, my first day with processing on windows and looking for some pointers to get me started. I have 8 bit DtoA converters connected to my serial port that take an 8 bit address and 8 bi…

---

## [How do I upload myArduinofile.ino to the Arduino Board (MEGA-UNO) from a Processing sketch](https://discourse.processing.org/t/how-do-i-upload-myarduinofile-ino-to-the-arduino-board-mega-uno-from-a-processing-sketch/38010)

<div class="topic-metadata">

**Author:** [@demir](https://discourse.processing.org/u/demir)\
**Replies:** 7\
**Last updated:** [October 16, 2022, 1:18pm UTC](https://discourse.processing.org/t/how-do-i-upload-myarduinofile-ino-to-the-arduino-board-mega-uno-from-a-processing-sketch/38010 "2022-10-16T13:18:34Z")

</div>

I am using the exec(arg) function My arg is : C:\\Program Files (x86)\\Arduino\\arduino.exe --upload C:\\ArduinoProcessingV1\\sketch\_New\\Arduino\\HeatTransfer\\HeatTransfer.ino The arg works from commandline of windows it also…

---

## [Cheap alternatives for Kinect?](https://discourse.processing.org/t/cheap-alternatives-for-kinect/39150)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 12:56pm UTC](https://discourse.processing.org/t/cheap-alternatives-for-kinect/39150 "2022-10-11T12:56:47Z")

</div>

Is there a cheap alternative for MS Kinect and at least available in Germany and with Processing support?

---

## [Creating a Scoreboard for Simple Game](https://discourse.processing.org/t/creating-a-scoreboard-for-simple-game/39075)

<div class="topic-metadata">

**Author:** [@honeydew](https://discourse.processing.org/u/honeydew)\
**Replies:** 4\
**Last updated:** [October 10, 2022, 2:22pm UTC](https://discourse.processing.org/t/creating-a-scoreboard-for-simple-game/39075 "2022-10-10T14:22:13Z")

</div>

Hi guys, I’m new to this forum so I’m not really sure how to post my code properly. I’m trying to make a game where a character, Steve, runs around and collects food. Whenever he runs over a piece of food, the food reapp…

---

## [Accessing BLE input to Processing](https://discourse.processing.org/t/accessing-ble-input-to-processing/35560)

<div class="topic-metadata">

**Author:** [@jimluyten](https://discourse.processing.org/u/jimluyten)\
**Replies:** 6\
**Last updated:** [October 9, 2022, 6:58pm UTC](https://discourse.processing.org/t/accessing-ble-input-to-processing/35560 "2022-10-09T18:58:08Z")

</div>

I have a BLE feed from Arduino - but can not access the data from processing sketch on macbook pro, neither of two bluetooth devices seems to have any accessable data - “/dev/cu.Bluetooth-Incoming-Port” nor “/dev/tty.Blu…

---

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

<div class="topic-metadata">

**Author:** [@gradientquestion](https://discourse.processing.org/u/gradientquestion)\
**Replies:** 3\
**Last updated:** [October 9, 2022, 3:15am UTC](https://discourse.processing.org/t/arduino-processing/39168 "2022-10-09T03:15:11Z")

</div>

hello, I would like to create a little game for my child to discover electronics. Unfortunately this is not my area… I would like to be able to display an image when you clap your hands. for this I have an arduino uno…

---

## [Heroic Robotics PixelPusher](https://discourse.processing.org/t/heroic-robotics-pixelpusher/17720)

<div class="topic-metadata">

**Author:** [@tmasylum](https://discourse.processing.org/u/tmasylum)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 4:23pm UTC](https://discourse.processing.org/t/heroic-robotics-pixelpusher/17720 "2022-09-26T16:23:49Z")

</div>

Hi all, I understand this is probably a question for a PixelPusher Forum but there doesn’t seem to be one I can access. So I’ve purchased a bunch of PixelPushers for a project but I’m struggling to get them to work with…

---

## [Watchdog timer possibility? serial COM is broken and reconnected](https://discourse.processing.org/t/watchdog-timer-possibility-serial-com-is-broken-and-reconnected/29037)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 7\
**Last updated:** [September 26, 2022, 1:27pm UTC](https://discourse.processing.org/t/watchdog-timer-possibility-serial-com-is-broken-and-reconnected/29037 "2022-09-26T13:27:36Z")

</div>

hey yall! is there any kind of watchdog timer kind of thing in processing that will restart your code from the beginning? like rerun setup and everything if the serial communication isnt happening? I am making a kiosk …

---

## [Modbus IEE754 Float convert from Arduino](https://discourse.processing.org/t/modbus-iee754-float-convert-from-arduino/38971)

<div class="topic-metadata">

**Author:** [@Holle](https://discourse.processing.org/u/Holle)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 7:34am UTC](https://discourse.processing.org/t/modbus-iee754-float-convert-from-arduino/38971 "2022-09-26T07:34:40Z")

</div>

Hello, I’m new here. I am trying to read an Eastron smart meter with Modbus IEE754 I sent the modbus string to Smartmeter and received the bytes. But this is the IEE75 with floating point. I found an Arduino code tha…

---

## [From Processing to Arduino Stepper motor 28BYJ-48 with ULN2003](https://discourse.processing.org/t/from-processing-to-arduino-stepper-motor-28byj-48-with-uln2003/38804)

<div class="topic-metadata">

**Author:** [@rand\_colors](https://discourse.processing.org/u/rand_colors)\
**Replies:** 13\
**Last updated:** [September 19, 2022, 1:12pm UTC](https://discourse.processing.org/t/from-processing-to-arduino-stepper-motor-28byj-48-with-uln2003/38804 "2022-09-19T13:12:21Z")

</div>

Hi everyone, I need some help to figuring out , why I can’t send data for changing the Speed, from Processing to my stepper motor via Arduino. It’ should be very easy … I saw in the forum other people doing things wit…

---

## [I cant get this to work](https://discourse.processing.org/t/i-cant-get-this-to-work/38766)

<div class="topic-metadata">

**Author:** [@dep6142](https://discourse.processing.org/u/dep6142)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:31am UTC](https://discourse.processing.org/t/i-cant-get-this-to-work/38766 "2022-09-19T07:31:01Z")

</div>

I am trying to use this laser maze processing code and i cant seem to get it to work Laser Maze site and when i try and run it it says “Could not run the sketch (Target VM failed to initialize).”

---

## [Control servos using sliders](https://discourse.processing.org/t/control-servos-using-sliders/38787)

<div class="topic-metadata">

**Author:** [@jeffmorris1956](https://discourse.processing.org/u/jeffmorris1956)\
**Replies:** 7\
**Last updated:** [September 18, 2022, 9:11pm UTC](https://discourse.processing.org/t/control-servos-using-sliders/38787 "2022-09-18T21:11:57Z")

</div>

I’m trying to write Processing code that uses ControlP5 to create an GUI that have sliders that send values to Arduino code to control many servos. If I have four sliders called Hand, Wrist, Elbow, and Shoulder in Proces…

---

## [Null Pointer Exceptions problem](https://discourse.processing.org/t/null-pointer-exceptions-problem/38830)

<div class="topic-metadata">

**Author:** [@Emmanuel](https://discourse.processing.org/u/Emmanuel)\
**Replies:** 6\
**Last updated:** [September 17, 2022, 11:49pm UTC](https://discourse.processing.org/t/null-pointer-exceptions-problem/38830 "2022-09-17T23:49:57Z")

</div>

hello hi, sorry am trying to get data from arduino through serial port to processing ide but a getting an error that say Null Pointer Exceptions. below is my full processing code. // Import Meter library import meter.\*;…

---

## [Arduino filling the serial Buffer with nulls](https://discourse.processing.org/t/arduino-filling-the-serial-buffer-with-nulls/38674)

<div class="topic-metadata">

**Author:** [@maro](https://discourse.processing.org/u/maro)\
**Replies:** 12\
**Last updated:** [September 10, 2022, 12:57pm UTC](https://discourse.processing.org/t/arduino-filling-the-serial-buffer-with-nulls/38674 "2022-09-10T12:57:43Z")

</div>

I just wrote some code that sends a String from Arduino to Processing. Processing prints the String and display the number of characters in the buffer… After uploading the sketch to the Arduino and starting Processing f…

---

## [Using Leap Motion with Processing 4](https://discourse.processing.org/t/using-leap-motion-with-processing-4/38634)

<div class="topic-metadata">

**Author:** [@acesteef](https://discourse.processing.org/u/acesteef)\
**Replies:** 0\
**Last updated:** [September 3, 2022, 5:24pm UTC](https://discourse.processing.org/t/using-leap-motion-with-processing-4/38634 "2022-09-03T17:24:25Z")

</div>

Hey, I am currently working on a school project where i will use a Leap Motion device. I started on a macbook but apparently Leap Motion does not work on Monterey. So now i am working on my Windows PC at home and tried …

---

## [Sending Strings from Arduino to Processing](https://discourse.processing.org/t/sending-strings-from-arduino-to-processing/38615)

<div class="topic-metadata">

**Author:** [@maro](https://discourse.processing.org/u/maro)\
**Replies:** 7\
**Last updated:** [September 3, 2022, 11:01am UTC](https://discourse.processing.org/t/sending-strings-from-arduino-to-processing/38615 "2022-09-03T11:01:13Z")

</div>

I want to get Processing to read Strings from Arduino. I send two Strings massages from the arduino and I want to store them in two different variables on Processing. I tried to do it, but the two Strings are passed to…

---

## [Sampling a movement. Synchronize it on a tempo](https://discourse.processing.org/t/sampling-a-movement-synchronize-it-on-a-tempo/38396)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 14\
**Last updated:** [September 1, 2022, 4:03pm UTC](https://discourse.processing.org/t/sampling-a-movement-synchronize-it-on-a-tempo/38396 "2022-09-01T16:03:19Z")

</div>

Hello, For my artistic machine project, I need to sample a movement and play it on a loop. This sample must be set on the tempo! But, there is a small problem, let me explain: I draw a movement with the mouse for two …

---

## [How do I push UART data into the sound library's FFT function?](https://discourse.processing.org/t/how-do-i-push-uart-data-into-the-sound-librarys-fft-function/38484)

<div class="topic-metadata">

**Author:** [@onelectron](https://discourse.processing.org/u/onelectron)\
**Replies:** 0\
**Last updated:** [August 25, 2022, 11:25am UTC](https://discourse.processing.org/t/how-do-i-push-uart-data-into-the-sound-librarys-fft-function/38484 "2022-08-25T11:25:17Z")

</div>

Hello, I am trying to send data from an accelerometer to the Processing through UART. I was able to accomplish that portion of my project. My final goal is to use the sensor data to create an FFT visual interface to vis…

---

## [FFT in Processing](https://discourse.processing.org/t/fft-in-processing/38463)

<div class="topic-metadata">

**Author:** [@onelectron](https://discourse.processing.org/u/onelectron)\
**Replies:** 4\
**Last updated:** [August 25, 2022, 2:01pm UTC](https://discourse.processing.org/t/fft-in-processing/38463 "2022-08-25T14:01:38Z")

</div>

Hello, I am trying to send data from an accelerometer to the Processing through UART. It’s working. My final goal is to use the sensor data to create an FFT visual interface to visualize the vibration frequency. I have …

---

## [How to create a low resolution video with data received from UART?](https://discourse.processing.org/t/how-to-create-a-low-resolution-video-with-data-received-from-uart/38376)

<div class="topic-metadata">

**Author:** [@onelectron](https://discourse.processing.org/u/onelectron)\
**Replies:** 4\
**Last updated:** [August 17, 2022, 12:55pm UTC](https://discourse.processing.org/t/how-to-create-a-low-resolution-video-with-data-received-from-uart/38376 "2022-08-17T12:55:37Z")

</div>

Hello, I am planning to send data through the COM port to Processing to construct a low-resolution image based on the collected data. As it is being sent over UART, I assume that the refresh rate will be very low. My id…

---

## [Help with video mixer logic](https://discourse.processing.org/t/help-with-video-mixer-logic/38386)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 8:13pm UTC](https://discourse.processing.org/t/help-with-video-mixer-logic/38386 "2022-08-16T20:13:24Z")

</div>

I am having a problem with the implementation of a project which uses the video library as well as the serial library and could really use some help. HELP!! If you like I can also provide a private zoom link and screen …

---

## [Can I reconnect a serial Port without re-Starting a sketch?](https://discourse.processing.org/t/can-i-reconnect-a-serial-port-without-re-starting-a-sketch/20697)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 5\
**Last updated:** [August 10, 2022, 1:44pm UTC](https://discourse.processing.org/t/can-i-reconnect-a-serial-port-without-re-starting-a-sketch/20697 "2022-08-10T13:44:25Z")

</div>

I am building a robot ran by an Arduino and I am using the Processing as a GUI. Sometimes I loose my m BT connection and is a pain to restart the sketch I am using a GUI button trying to re initialize the connection, b…

---

## [Saving partial display for showing and hiding](https://discourse.processing.org/t/saving-partial-display-for-showing-and-hiding/38161)

<div class="topic-metadata">

**Author:** [@demir](https://discourse.processing.org/u/demir)\
**Replies:** 0\
**Last updated:** [July 30, 2022, 9:18am UTC](https://discourse.processing.org/t/saving-partial-display-for-showing-and-hiding/38161 "2022-07-30T09:18:12Z")

</div>

I have a main window and 6 extra windows which are opened from the main window via a menu. I can save and restore a partial view in the main window. How can I do the same with the extra windows? I have established 6 P…

---

## [Make Arduino and PIR motion sensor work in Processing code with Boolean expression](https://discourse.processing.org/t/make-arduino-and-pir-motion-sensor-work-in-processing-code-with-boolean-expression/23978)

<div class="topic-metadata">

**Author:** [@Jonathan\_2](https://discourse.processing.org/u/Jonathan_2)\
**Replies:** 10\
**Last updated:** [July 28, 2022, 10:18am UTC](https://discourse.processing.org/t/make-arduino-and-pir-motion-sensor-work-in-processing-code-with-boolean-expression/23978 "2022-07-28T10:18:01Z")

</div>

Hey! I am working on a code, that I will use as a part of an artwork. Basically the code is taking a random word from a text file and putting it on the screen every time the mouse is clicked. This works as you see with …

---

## [macOS Monterey won't reconnect to HC-05 Bluetooth without removing/re-pairing each time](https://discourse.processing.org/t/macos-monterey-wont-reconnect-to-hc-05-bluetooth-without-removing-re-pairing-each-time/38119)

<div class="topic-metadata">

**Author:** [@ctiptonk](https://discourse.processing.org/u/ctiptonk)\
**Replies:** 0\
**Last updated:** [July 27, 2022, 11:09am UTC](https://discourse.processing.org/t/macos-monterey-wont-reconnect-to-hc-05-bluetooth-without-removing-re-pairing-each-time/38119 "2022-07-27T11:09:15Z")

</div>

I’m working on remote operated camera pan/tilt device that uses a HC-05 Bluetooth module to connect a GUI written in Processing and running on a Mac to an Arduino. Everything works great when I first pair the HC-05, but …

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

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