# Electronics (Arduino, etc.)

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

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

**Page:** 11

---

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

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 4\
**Last updated:** [February 16, 2021, 10:20pm UTC](https://discourse.processing.org/t/processing-to-arduino/27871 "2021-02-16T22:20:31Z")

</div>

Hi, I have an Arduino to Processing connection. I wanted to know if Processing could take in value that in that Arduino code are only read and not printed? So if the Arduino code contained just analogRead() for example …

---

## [Need help decoding incoming byte](https://discourse.processing.org/t/need-help-decoding-incoming-byte/27644)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 10\
**Last updated:** [February 14, 2021, 12:37am UTC](https://discourse.processing.org/t/need-help-decoding-incoming-byte/27644 "2021-02-14T00:37:29Z")

</div>

\#include \<MsTimer2.h\> #include \<Arduino.h\> // FMS PIC protocol for connecting a PPM stream to a PC. // http://modelsimulator.com/ // // Implements the 19200 baud FMS PIC protocol // Converted from code by // Richard.Pr…

---

## [Unexpected behavior of char\[\] in print / println](https://discourse.processing.org/t/unexpected-behavior-of-char-in-print-println/27609)

<div class="topic-metadata">

**Author:** [@Thur](https://discourse.processing.org/u/Thur)\
**Replies:** 12\
**Last updated:** [February 8, 2021, 3:27pm UTC](https://discourse.processing.org/t/unexpected-behavior-of-char-in-print-println/27609 "2021-02-08T15:27:52Z")

</div>

Hey. While working with an array of characters I checked the value of the array members by using the print / println function. The code boils down to : void setup() { char\[\] ch = new char\[2\]; ch\[0\] = ‘0’; ch\[1\] = ‘0’; …

---

## [Problem sending byte array to Arduino over serial](https://discourse.processing.org/t/problem-sending-byte-array-to-arduino-over-serial/27628)

<div class="topic-metadata">

**Author:** [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 11:15am UTC](https://discourse.processing.org/t/problem-sending-byte-array-to-arduino-over-serial/27628 "2021-02-08T11:15:00Z")

</div>

Hi there. I am trying to send a byte array to an arduino via serial. the array represents a jpeg image.i generated it by converting the image to hex values separated by commas.I chose this because this is what the arduin…

---

## [Multiple values for incoming data being printed](https://discourse.processing.org/t/multiple-values-for-incoming-data-being-printed/27591)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 9\
**Last updated:** [February 7, 2021, 4:11pm UTC](https://discourse.processing.org/t/multiple-values-for-incoming-data-being-printed/27591 "2021-02-07T16:11:31Z")

</div>

Hi, I had a problem with my Processing data collection: essentially when my data comes in from the Arduino and to Processing, I save it onto a csv file. However, on the csv file it so happens that a value for one time s…

---

## [Multiple print values from Arduino and Processing](https://discourse.processing.org/t/multiple-print-values-from-arduino-and-processing/27545)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 1\
**Last updated:** [February 7, 2021, 3:20pm UTC](https://discourse.processing.org/t/multiple-print-values-from-arduino-and-processing/27545 "2021-02-07T15:20:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I am trying to send multiple print statements from my arduino to processing but I cant seem to obtain it properly in the processing. Could s…

---

## [Dc motor position control](https://discourse.processing.org/t/dc-motor-position-control/27482)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 22\
**Last updated:** [February 6, 2021, 7:41am UTC](https://discourse.processing.org/t/dc-motor-position-control/27482 "2021-02-06T07:41:41Z")

</div>

Good evening I would need to check the position of an engine via android (mobile phone) everything is managed by arduino uno, with a motor driver, an encoder and dc motor connected, the code should have a text box wher…

---

## [Unable to update int from serialReadStringUntil while in draw()](https://discourse.processing.org/t/unable-to-update-int-from-serialreadstringuntil-while-in-draw/27567)

<div class="topic-metadata">

**Author:** [@cutlercollin99](https://discourse.processing.org/u/cutlercollin99)\
**Replies:** 1\
**Last updated:** [February 3, 2021, 8:59pm UTC](https://discourse.processing.org/t/unable-to-update-int-from-serialreadstringuntil-while-in-draw/27567 "2021-02-03T20:59:20Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello! I am having trouble with communication between Processing and Arduino. I’m trying to run specific functions based on readings the Arduin…

---

## [Error with arduino \<-\> processing code "disabling serialEvent() for COM6 null."](https://discourse.processing.org/t/error-with-arduino-processing-code-disabling-serialevent-for-com6-null/27472)

<div class="topic-metadata">

**Author:** [@Neoncodes](https://discourse.processing.org/u/Neoncodes)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 9:53am UTC](https://discourse.processing.org/t/error-with-arduino-processing-code-disabling-serialevent-for-com6-null/27472 "2021-02-02T09:53:28Z")

</div>

HI, I’m new in Processing, and i want to use arduino and make rotary encoder as arrows. Unfortunetly i have only Uno, not leonardo, so i wanted to made a code in processing to emulate pressing a key. But evry time i want…

---

## [Using Arduino for timer and using 2 readstringuntill](https://discourse.processing.org/t/using-arduino-for-timer-and-using-2-readstringuntill/27469)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 1\
**Last updated:** [January 30, 2021, 10:38am UTC](https://discourse.processing.org/t/using-arduino-for-timer-and-using-2-readstringuntill/27469 "2021-01-30T10:38:51Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, in my code I am trying to implement a sampling rate to sample the incoming data from my Arduino. Right now, my Arduino code has a timer of …

---

## [Help with Arduino and processing connection](https://discourse.processing.org/t/help-with-arduino-and-processing-connection/27422)

<div class="topic-metadata">

**Author:** [@TiBasic](https://discourse.processing.org/u/TiBasic)\
**Replies:** 5\
**Last updated:** [January 28, 2021, 9:49pm UTC](https://discourse.processing.org/t/help-with-arduino-and-processing-connection/27422 "2021-01-28T21:49:58Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m trying to connect a processing program to arduino. It’s for a heart sensor. It works great except that the processing code can repeat the ar…

---

## [Scrolling Graph Serial](https://discourse.processing.org/t/scrolling-graph-serial/27169)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 3\
**Last updated:** [January 21, 2021, 8:10am UTC](https://discourse.processing.org/t/scrolling-graph-serial/27169 "2021-01-21T08:10:44Z")

</div>

I am trying to plot the values coming in from the serial port into a scrolling graph. Right now it it displaying some value but not what I want. It should plot every time ReadStringUntill gets to a new line etc. Any idea…

---

## [Simple Arduino Tutorial: How to make Canbus Communicate with DHT11](https://discourse.processing.org/t/simple-arduino-tutorial-how-to-make-canbus-communicate-with-dht11/27216)

<div class="topic-metadata">

**Author:** [@Makerhe](https://discourse.processing.org/u/Makerhe)\
**Replies:** 0\
**Last updated:** [January 20, 2021, 6:02am UTC](https://discourse.processing.org/t/simple-arduino-tutorial-how-to-make-canbus-communicate-with-dht11/27216 "2021-01-20T06:02:09Z")

</div>

In this project, we will learn how to use Arduino code to implement CANBUS communication with DHT11 sensor. I also used an OLED in this project, so we can display the temperature and humidity on it. Check details on this…

---

## [Scrolling Graph](https://discourse.processing.org/t/scrolling-graph/27168)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 6:50pm UTC](https://discourse.processing.org/t/scrolling-graph/27168 "2021-01-18T18:50:51Z")

</div>

Hi, I am trying to plot the values coming in from the serial port into a scrolling graph. Right now it it displaying some value but not what I want. It should plot every time ReadStringUntill gets to a new line etc. Any …

---

## [Virtual display: Extremely urgent](https://discourse.processing.org/t/virtual-display-extremely-urgent/27082)

<div class="topic-metadata">

**Author:** [@AbroChief](https://discourse.processing.org/u/AbroChief)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 11:58am UTC](https://discourse.processing.org/t/virtual-display-extremely-urgent/27082 "2021-01-15T11:58:28Z")

</div>

Hello discourse forum. This is Abhigyan from Assam, India. I’m just a beginner (know nothing) regarding Processing. It’s a very important and urgent urge from me that please anybody help me regarding my problem. I act…

---

## [Different behaviour between Processing and Arduino Serial Monitor](https://discourse.processing.org/t/different-behaviour-between-processing-and-arduino-serial-monitor/26973)

<div class="topic-metadata">

**Author:** [@kodibeni](https://discourse.processing.org/u/kodibeni)\
**Replies:** 6\
**Last updated:** [January 14, 2021, 11:32am UTC](https://discourse.processing.org/t/different-behaviour-between-processing-and-arduino-serial-monitor/26973 "2021-01-14T11:32:05Z")

</div>

Dear all, I have just started experiencing with Processing, and ran into the following problem. I am trying to blink the built-in LED on an Arduino board (Mega2560), and am experiencing different behavior between the P…

---

## [Null Pointer help and some guidance with a working EEPROM write Processing sketch](https://discourse.processing.org/t/null-pointer-help-and-some-guidance-with-a-working-eeprom-write-processing-sketch/26797)

<div class="topic-metadata">

**Author:** [@jshackel8](https://discourse.processing.org/u/jshackel8)\
**Replies:** 4\
**Last updated:** [January 10, 2021, 11:44am UTC](https://discourse.processing.org/t/null-pointer-help-and-some-guidance-with-a-working-eeprom-write-processing-sketch/26797 "2021-01-10T11:44:05Z")

</div>

Hello, This is my first post. I apologize if I’m not adhering to the syntax for submitting questions if I messed it up. I created a working Arduino nano sketch that works in combination with a Processing sketch to read …

---

## [Storing all incoming data and button not working](https://discourse.processing.org/t/storing-all-incoming-data-and-button-not-working/26398)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 8\
**Last updated:** [January 9, 2021, 5:34pm UTC](https://discourse.processing.org/t/storing-all-incoming-data-and-button-not-working/26398 "2021-01-09T17:34:10Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, my code currently stores data whenever I press the button ‘save data in text’. It stores the data at that moment in time and that second. How…

---

## [Quick code question about Serial ports](https://discourse.processing.org/t/quick-code-question-about-serial-ports/26764)

<div class="topic-metadata">

**Author:** [@jimlee](https://discourse.processing.org/u/jimlee)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 8:55am UTC](https://discourse.processing.org/t/quick-code-question-about-serial-ports/26764 "2021-01-04T08:55:45Z")

</div>

I have a GDropList that I populate with the serial ports on my machine so I can select one. Here’s the code to set up the list… // Method to setup the port listing popup selctor thing. public void setupPortList(GDropLis…

---

## [Sampling Incoming data from serial port](https://discourse.processing.org/t/sampling-incoming-data-from-serial-port/26600)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 2\
**Last updated:** [December 31, 2020, 6:08pm UTC](https://discourse.processing.org/t/sampling-incoming-data-from-serial-port/26600 "2020-12-31T18:08:01Z")

</div>

please format code with \</\> button \* homework policy \* asking questions My code takes incoming data and stores it in a table but currently it takes in all the values that come in to the serial port. I would like to m…

---

## [Kinect v2 resize depth image and color data to same aspect ratio and size](https://discourse.processing.org/t/kinect-v2-resize-depth-image-and-color-data-to-same-aspect-ratio-and-size/26596)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 0\
**Last updated:** [December 29, 2020, 8:07pm UTC](https://discourse.processing.org/t/kinect-v2-resize-depth-image-and-color-data-to-same-aspect-ratio-and-size/26596 "2020-12-29T20:07:53Z")

</div>

So the Kinect v2 has a color stream of 1920 x 1080. The depth stream is 512 x 424. The FOV is also different from what I can tell. I tried to resize both streams to 500 x 500 (the size of my canvas). Data from here. if…

---

## [Code android e arduino](https://discourse.processing.org/t/code-android-e-arduino/26364)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 20\
**Last updated:** [December 28, 2020, 9:06pm UTC](https://discourse.processing.org/t/code-android-e-arduino/26364 "2020-12-28T21:06:56Z")

</div>

But on processig for Android it is possible that no one has ever used a slider code and an LED to drive Arduino via bluetooth it seems very strange to me

---

## [How to change images graphically when receiving data?](https://discourse.processing.org/t/how-to-change-images-graphically-when-receiving-data/26523)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 4:50am UTC](https://discourse.processing.org/t/how-to-change-images-graphically-when-receiving-data/26523 "2020-12-27T04:50:06Z")

</div>

Good afternoon, I am using a terminal to send data via com-port. I work under the protocol. In the project, the Displaydata tab contains the string “case 35” - the # symbol. What to write between case 35: and break; …

---

## [Slider and led help](https://discourse.processing.org/t/slider-and-led-help/26392)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 1\
**Last updated:** [December 20, 2020, 11:49am UTC](https://discourse.processing.org/t/slider-and-led-help/26392 "2020-12-20T11:49:12Z")

</div>

Good morning I open another post because I am not convinced of the answers I have been given regarding my problem perhaps due to the misunderstanding of English (google translated) and therefore the problem is not well…

---

## [Plz help my program](https://discourse.processing.org/t/plz-help-my-program/26261)

<div class="topic-metadata">

**Author:** [@kokobab](https://discourse.processing.org/u/kokobab)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 2:11pm UTC](https://discourse.processing.org/t/plz-help-my-program/26261 "2020-12-16T14:11:10Z")

</div>

\<arduino code\> const int sampleWindow=38; unsigned int sample; unsigned long startMillis=millis(); unsigned int peakToPeak=0; unsigned int signalMax=0; unsigned int signalMin=1024; //clipping indicator variable…

---

## [Expecting EOF error, can't find out where im going wrong](https://discourse.processing.org/t/expecting-eof-error-cant-find-out-where-im-going-wrong/26073)

<div class="topic-metadata">

**Author:** [@kahkmcm](https://discourse.processing.org/u/kahkmcm)\
**Replies:** 2\
**Last updated:** [December 9, 2020, 1:54am UTC](https://discourse.processing.org/t/expecting-eof-error-cant-find-out-where-im-going-wrong/26073 "2020-12-09T01:54:39Z")

</div>

Hi, new to the forums so sorry if this is formatted wrong. But I’m trying to set up an array with sounds but I’m just getting error after error and don’t know where I’m going wrong import processing.sound.\*; // this ca…

---

## [Labelling a Real Time Graph in Processing](https://discourse.processing.org/t/labelling-a-real-time-graph-in-processing/25966)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 3\
**Last updated:** [December 5, 2020, 10:52pm UTC](https://discourse.processing.org/t/labelling-a-real-time-graph-in-processing/25966 "2020-12-05T22:52:44Z")

</div>

Hi, I wanted to know how I could create a real time moving graph (or a graph that resets to 0 after reaching the end) AND be able to label the axes as well. I cannot seem to do this. I have the following code which prov…

---

## [Serial with Hardware Flow Control](https://discourse.processing.org/t/serial-with-hardware-flow-control/25795)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 5\
**Last updated:** [December 4, 2020, 4:10pm UTC](https://discourse.processing.org/t/serial-with-hardware-flow-control/25795 "2020-12-04T16:10:51Z")

</div>

Every now and then you need to interface with a device via the computer serial port that asks for Hardware Flow Control (RTS/CTS). I had a look at the documentation: https://processing.org/reference/libraries/serial/Ser…

---

## [How to extract values from a PVector?](https://discourse.processing.org/t/how-to-extract-values-from-a-pvector/25778)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 4\
**Last updated:** [November 28, 2020, 7:17pm UTC](https://discourse.processing.org/t/how-to-extract-values-from-a-pvector/25778 "2020-11-28T19:17:31Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am using the leapmotion library and some values are coming in a PVector. They print out fine, but when I put them in a string to be sent to A…

---

## [Making a RGB leds strips control gui](https://discourse.processing.org/t/making-a-rgb-leds-strips-control-gui/25762)

<div class="topic-metadata">

**Author:** [@extazy](https://discourse.processing.org/u/extazy)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 6:30pm UTC](https://discourse.processing.org/t/making-a-rgb-leds-strips-control-gui/25762 "2020-11-27T18:30:51Z")

</div>

Hi , I am actually on a project wich consists of creating a gui to control multiple rgb led strips and normal leds . So what i need for this project is at least two colors pickers ( or colors wheels ) and some buttons …

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

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