# Electronics (Arduino, etc.)

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

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

**Page:** 14

---

## [Sending over Arduino analog values to Processing doesn't work](https://discourse.processing.org/t/sending-over-arduino-analog-values-to-processing-doesnt-work/21241)

<div class="topic-metadata">

**Author:** [@Monfan123](https://discourse.processing.org/u/Monfan123)\
**Replies:** 2\
**Last updated:** [May 24, 2020, 5:13pm UTC](https://discourse.processing.org/t/sending-over-arduino-analog-values-to-processing-doesnt-work/21241 "2020-05-24T17:13:50Z")

</div>

Hi all, For a schoolassignment i’am creating a 3D boxchart from a CSV file which represents COVID-19 cases in the Netherlands. The whole code is working fine for me as it is. At this moment i’ve got three buttons, a LED…

---

## [Need some guidance in making a CNC plotter with arduino and motor driver](https://discourse.processing.org/t/need-some-guidance-in-making-a-cnc-plotter-with-arduino-and-motor-driver/21059)

<div class="topic-metadata">

**Author:** [@manish\_das](https://discourse.processing.org/u/manish_das)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 3:10pm UTC](https://discourse.processing.org/t/need-some-guidance-in-making-a-cnc-plotter-with-arduino-and-motor-driver/21059 "2020-05-19T15:10:05Z")

</div>

I want to make a voice operated CNC plotter with arduino and L293D motor driver. The main function of the plotter will be to write down words spoken by a speaker in real time. I am just a beginner in processing. Please h…

---

## [Processing using bare conductive](https://discourse.processing.org/t/processing-using-bare-conductive/20983)

<div class="topic-metadata">

**Author:** [@herbert\_greenhorses](https://discourse.processing.org/u/herbert_greenhorses)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 1:30am UTC](https://discourse.processing.org/t/processing-using-bare-conductive/20983 "2020-05-18T01:30:21Z")

</div>

Hello, I’m French, my english is poor. But I can try. I use Processing, as a librarian. I also use Bare Conductive. I have Arduino. So I can plug the Bare Conductive in Processing. With this sketch, I can see which …

---

## [Doubts about readStringUntil ()](https://discourse.processing.org/t/doubts-about-readstringuntil/20938)

<div class="topic-metadata">

**Author:** [@Black\_1](https://discourse.processing.org/u/Black_1)\
**Replies:** 4\
**Last updated:** [May 17, 2020, 4:53pm UTC](https://discourse.processing.org/t/doubts-about-readstringuntil/20938 "2020-05-17T16:53:50Z")

</div>

hi everyone, i’m a new member, and i’m using processing recently. I am currently having difficulty with the “readStringUntil ()” function. Processing communicates with Arduino via LAN, but if the connection fails, the …

---

## [Coin acceptor for photobooth](https://discourse.processing.org/t/coin-acceptor-for-photobooth/20496)

<div class="topic-metadata">

**Author:** [@Karlosz](https://discourse.processing.org/u/Karlosz)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 8:38pm UTC](https://discourse.processing.org/t/coin-acceptor-for-photobooth/20496 "2020-05-13T20:38:43Z")

</div>

Hello, I want to add a coin acceptor to my photobooth. I connected a coin acceptor trought the Ardiuno - Adruino counts pulses from acceptor and send coin value via serial port to pc. I tried to create simple program (w…

---

## [Problem with split() and serialEvent](https://discourse.processing.org/t/problem-with-split-and-serialevent/20757)

<div class="topic-metadata">

**Author:** [@Ablah](https://discourse.processing.org/u/Ablah)\
**Replies:** 5\
**Last updated:** [May 12, 2020, 8:30pm UTC](https://discourse.processing.org/t/problem-with-split-and-serialevent/20757 "2020-05-12T20:30:40Z")

</div>

I’m trying to send data from Arduino to Processing. On the Arduino file, the code prints the value of the sensor (I’m only using one sensor) every time a button is pressed (only using one button). I just need 9 values, …

---

## [Connecting Mindstorm Lego roboter](https://discourse.processing.org/t/connecting-mindstorm-lego-roboter/20354)

<div class="topic-metadata">

**Author:** [@kanktonk](https://discourse.processing.org/u/kanktonk)\
**Replies:** 10\
**Last updated:** [May 10, 2020, 7:55am UTC](https://discourse.processing.org/t/connecting-mindstorm-lego-roboter/20354 "2020-05-10T07:55:07Z")

</div>

Hi im an art student from gemany and im working on a project with processing. I have a mistake in my code and I can t figure out how to solve it. If you have any advice it would save me a lot of time. I try to connect…

---

## [SplitTokens strings do not print as text](https://discourse.processing.org/t/splittokens-strings-do-not-print-as-text/20149)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 1\
**Last updated:** [May 10, 2020, 1:30am UTC](https://discourse.processing.org/t/splittokens-strings-do-not-print-as-text/20149 "2020-05-10T01:30:03Z")

</div>

I am receiving 3 different strings and I print them separately based on the first char. All is well till I tried to parse one of strings by token. The newly formed strings will print out but will not show as text . I …

---

## [Coding question for trecking device](https://discourse.processing.org/t/coding-question-for-trecking-device/20385)

<div class="topic-metadata">

**Author:** [@kanktonk](https://discourse.processing.org/u/kanktonk)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 11:38am UTC](https://discourse.processing.org/t/coding-question-for-trecking-device/20385 "2020-05-02T11:38:05Z")

</div>

Hey I try to use processing together with my old lego mindstorm roboter. I spend a lot of time to research how to combine them and finally found a code online which looked helpfull. But now i get this ERROR can somebody…

---

## [CAN bus library or CAN alternative](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 10:25am UTC](https://discourse.processing.org/t/can-bus-library-or-can-alternative/20553 "2020-05-08T10:25:43Z")

</div>

Hello! I need to access a CAN Bus from my processing sketch. I have not found any processing library that can do it. I have tried it with java and I have not found anything either. I have a star topology with different…

---

## [Help with serial communication](https://discourse.processing.org/t/help-with-serial-communication/20103)

<div class="topic-metadata">

**Author:** [@ed\_from\_maine](https://discourse.processing.org/u/ed_from_maine)\
**Replies:** 8\
**Last updated:** [May 7, 2020, 3:23pm UTC](https://discourse.processing.org/t/help-with-serial-communication/20103 "2020-05-07T15:23:40Z")

</div>

Hi, First post. I’m an intermediate level programmer but relatively new to Processing. I have a Processing program on my desktop that sends a sequence of commands to an Arduino board by the serial port (actually a Teens…

---

## [Motion detection send to arduino](https://discourse.processing.org/t/motion-detection-send-to-arduino/20533)

<div class="topic-metadata">

**Author:** [@kanktonk](https://discourse.processing.org/u/kanktonk)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 8:43am UTC](https://discourse.processing.org/t/motion-detection-send-to-arduino/20533 "2020-05-07T08:43:03Z")

</div>

Hi you all! Im an art student from berlin and for my latest project I need to send Data I get from Processing to Arduino. I use a serial port to communicate and I basically want to find the x Position of an person in Fro…

---

## [Display arduino values on a processing interface](https://discourse.processing.org/t/display-arduino-values-on-a-processing-interface/20176)

<div class="topic-metadata">

**Author:** [@amina](https://discourse.processing.org/u/amina)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 4:49pm UTC](https://discourse.processing.org/t/display-arduino-values-on-a-processing-interface/20176 "2020-05-06T16:49:14Z")

</div>

I’m a beginner in processing and I want to make this diagram, I tried but I can’t do it can you help me?please

---

## [Serial port management in a class, constructor undefined error](https://discourse.processing.org/t/serial-port-management-in-a-class-constructor-undefined-error/20465)

<div class="topic-metadata">

**Author:** [@AlexanderDyas](https://discourse.processing.org/u/AlexanderDyas)\
**Replies:** 3\
**Last updated:** [May 5, 2020, 6:33am UTC](https://discourse.processing.org/t/serial-port-management-in-a-class-constructor-undefined-error/20465 "2020-05-05T06:33:35Z")

</div>

Hello, I am having trouble moving some code into a class. The code works fine outside the class, in the setup() function for instance. Within the class the following line raises an error on build : myPort = new Serial(…

---

## [Data communication from Arduino/Processing Post #1](https://discourse.processing.org/t/data-communication-from-arduino-processing-post-1/20482)

<div class="topic-metadata">

**Author:** [@MaissaHamdi](https://discourse.processing.org/u/MaissaHamdi)\
**Replies:** 5\
**Last updated:** [May 5, 2020, 12:53am UTC](https://discourse.processing.org/t/data-communication-from-arduino-processing-post-1/20482 "2020-05-05T00:53:18Z")

</div>

i am a beginner I would appreciate it if someone help me to write a programme to receive data(62 data) from arduino to processing and class them in a table plz

---

## [Program slower when I send data to Arduino](https://discourse.processing.org/t/program-slower-when-i-send-data-to-arduino/19815)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 10:37am UTC](https://discourse.processing.org/t/program-slower-when-i-send-data-to-arduino/19815 "2020-05-04T10:37:57Z")

</div>

Hello, I make turning 5 motors with a potar with Arduino. It works perfectly, I make turning them with a simulation from Processing, it all turn but the simulation is slower than if I don’t send datas to Arduino. What…

---

## [Need assistance reading sequential inputs from Arduino serial](https://discourse.processing.org/t/need-assistance-reading-sequential-inputs-from-arduino-serial/20368)

<div class="topic-metadata">

**Author:** [@Brandon\_Y](https://discourse.processing.org/u/Brandon_Y)\
**Replies:** 8\
**Last updated:** [May 2, 2020, 11:08pm UTC](https://discourse.processing.org/t/need-assistance-reading-sequential-inputs-from-arduino-serial/20368 "2020-05-02T23:08:21Z")

</div>

EDIT: Got it sorted, thanks everyone. My arduino program and device appears to be working correctly, sending the appropriate info out to serial. From reading through the console prints in processing, it is reading the …

---

## [\[Solved\] Attack3 Joystick buttons to turn on LEDs on Arduino?](https://discourse.processing.org/t/solved-attack3-joystick-buttons-to-turn-on-leds-on-arduino/20170)

<div class="topic-metadata">

**Author:** [@Code7](https://discourse.processing.org/u/Code7)\
**Replies:** 10\
**Last updated:** [April 30, 2020, 10:03pm UTC](https://discourse.processing.org/t/solved-attack3-joystick-buttons-to-turn-on-leds-on-arduino/20170 "2020-04-30T22:03:49Z")

</div>

Hello, community I’m new to Processing and coding in general so please bear with me. I am trying to control 2 servos and a bunch of LEDs attached to an Arduino Nano clone using Logitech Attack3 Joystick and Processing …

---

## [Problem running code via HC-05 module](https://discourse.processing.org/t/problem-running-code-via-hc-05-module/20216)

<div class="topic-metadata">

**Author:** [@masterjader](https://discourse.processing.org/u/masterjader)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 2:53pm UTC](https://discourse.processing.org/t/problem-running-code-via-hc-05-module/20216 "2020-04-30T14:53:38Z")

</div>

So I created a program to control a robot using 5 servos. I’m controlling the robot using a wireless PS4 controller using Game Controller Plus. Everything works fine when plugged in but I have to make this wireless so I …

---

## [Color randomizing time reaction game](https://discourse.processing.org/t/color-randomizing-time-reaction-game/20222)

<div class="topic-metadata">

**Author:** [@stanley](https://discourse.processing.org/u/stanley)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 12:08pm UTC](https://discourse.processing.org/t/color-randomizing-time-reaction-game/20222 "2020-04-30T12:08:51Z")

</div>

Hello all, I am relativity new to Processing and I have challenged myself to evolve a previous art project into a game based on reaction time. Below is an image of this project with my Processing interface open on the c…

---

## [Problem by receiving datas in Arduino? Or problem by sending datas to Arduino?](https://discourse.processing.org/t/problem-by-receiving-datas-in-arduino-or-problem-by-sending-datas-to-arduino/20202)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 11:05am UTC](https://discourse.processing.org/t/problem-by-receiving-datas-in-arduino-or-problem-by-sending-datas-to-arduino/20202 "2020-04-28T11:05:33Z")

</div>

Continuing the discussion from RE: My program getting slower when I write datas on Serial Port: Hello all, I send 5 datas from Processing to Arduino and I re write those datas with Arduino into an other serial port tha…

---

## [\[SOLVED\] Problems sending data from Processing to Arduino through serial port](https://discourse.processing.org/t/solved-problems-sending-data-from-processing-to-arduino-through-serial-port/20138)

<div class="topic-metadata">

**Author:** [@bacum](https://discourse.processing.org/u/bacum)\
**Replies:** 10\
**Last updated:** [April 28, 2020, 6:22am UTC](https://discourse.processing.org/t/solved-problems-sending-data-from-processing-to-arduino-through-serial-port/20138 "2020-04-28T06:22:00Z")

</div>

Hello everybody! I’m newbie in Processing. I’m writing here hoping that someone will be able to help me… Thanks in advance;) I’m trying to communicate two XBEE S1 modules between the computer and an Arduino Mega, in AT…

---

## [My program getting slower when I write datas on Serial Port](https://discourse.processing.org/t/my-program-getting-slower-when-i-write-datas-on-serial-port/19828)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 6\
**Last updated:** [April 17, 2020, 9:52pm UTC](https://discourse.processing.org/t/my-program-getting-slower-when-i-write-datas-on-serial-port/19828 "2020-04-17T21:52:10Z")

</div>

Hello, I think there is a problem with my Processing program to write datas to the Serial Port. Or there is a problem with my Arduino code to read datas from the serial Port. I give you both program. Thank you. import…

---

## [Graphica font size in axes and multiple lines in a plot](https://discourse.processing.org/t/graphica-font-size-in-axes-and-multiple-lines-in-a-plot/19998)

<div class="topic-metadata">

**Author:** [@crek](https://discourse.processing.org/u/crek)\
**Replies:** 5\
**Last updated:** [April 23, 2020, 10:26pm UTC](https://discourse.processing.org/t/graphica-font-size-in-axes-and-multiple-lines-in-a-plot/19998 "2020-04-23T22:26:38Z")

</div>

Hello, I am new in processing and I have some questions regarding graphica. I want to change the font size in graphica and also I want to add a second line in the same plot. Also is there a list of grapfica commands? …

---

## [How to use threads in a sketch?](https://discourse.processing.org/t/how-to-use-threads-in-a-sketch/17832)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 7\
**Last updated:** [April 19, 2020, 5:23pm UTC](https://discourse.processing.org/t/how-to-use-threads-in-a-sketch/17832 "2020-04-19T17:23:05Z")

</div>

The need has arisen to make the draw() function the run function of a consumer thread that receives from a producer thread, as is demonstrated in this example: In my application the producer thread reads data from a …

---

## [Trying to make 2 strings out of one Serial transmission](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 4:59pm UTC](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819 "2020-04-16T16:59:01Z")

</div>

I made a GUI for an Arduino robot. Every 500 mS I am getting a serial communication and it works well. Now I have two data strings. One pertains to the Motor Currents and it always starts with M. The other provides o…

---

## [Send & Receive data on the same serial port without causing the Arduino program to bug](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 9:55am UTC](https://discourse.processing.org/t/send-receive-data-on-the-same-serial-port-without-causing-the-arduino-program-to-bug/19723 "2020-04-13T09:55:03Z")

</div>

Hello gentlemen and ladies, It’s more an Arduino question than an Processing one, but it’s a short question :wink: I send data with the serial port from Processing to Arduino and it works very well, I can control 5 st…

---

## [Serial issues with apc220 and Processing 3.5.4](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621)

<div class="topic-metadata">

**Author:** [@JG97400](https://discourse.processing.org/u/JG97400)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 10:58pm UTC](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621 "2020-04-10T22:58:10Z")

</div>

Hello everybody !! I’am a new user of Processing software and I try to etablish a communication between my laptop and arduino board with apc 220 wireless module. In the following link someone use the Processing 1.5.1 : h…

---

## [How to remove Null exception Error](https://discourse.processing.org/t/how-to-remove-null-exception-error/19533)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 3\
**Last updated:** [April 8, 2020, 11:18am UTC](https://discourse.processing.org/t/how-to-remove-null-exception-error/19533 "2020-04-08T11:18:21Z")

</div>

I am getting an error while running the code collecting data from 4 Arduino boards. java.lang.NullPointerException at Dual\_IMP\_SPO2.Impedance(Dual\_IMP\_SPO2.java:343) at sun.reflect.GeneratedMethodAccessor6.invoke(Unk…

---

## [Modifying a grid](https://discourse.processing.org/t/modifying-a-grid/19298)

<div class="topic-metadata">

**Author:** [@senior](https://discourse.processing.org/u/senior)\
**Replies:** 7\
**Last updated:** [April 4, 2020, 7:15pm UTC](https://discourse.processing.org/t/modifying-a-grid/19298 "2020-04-04T19:15:14Z")

</div>

I am using processing connected to an Arduino with a sensor sheet. The output is a in java mode showing a mapped grid as shown in the attached image. I am wondering how I can curve the corners of the grid so that is in 3…

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

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