# Electronics (Arduino, etc.)

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

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

**Page:** 24

---

## [Tracking with a SEN0158](https://discourse.processing.org/t/tracking-with-a-sen0158/6370)

<div class="topic-metadata">

**Author:** [@POlefef](https://discourse.processing.org/u/POlefef)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 6:41pm UTC](https://discourse.processing.org/t/tracking-with-a-sen0158/6370 "2018-12-08T18:41:22Z")

</div>

Hello everyone. I’m really new at processing and i have to display a graph that gives me the location of infrared sources by using processing and an IR camera (SEN0158) I’ve tried multiple times to run the following c…

---

## [Good practice for sending data from Arduino to Processing](https://discourse.processing.org/t/good-practice-for-sending-data-from-arduino-to-processing/6339)

<div class="topic-metadata">

**Author:** [@rodrigogamboa](https://discourse.processing.org/u/rodrigogamboa)\
**Replies:** 4\
**Last updated:** [December 6, 2018, 4:51pm UTC](https://discourse.processing.org/t/good-practice-for-sending-data-from-arduino-to-processing/6339 "2018-12-06T16:51:05Z")

</div>

Hi! This is the first question I make in the forum! Is in the context of good practices sending data from Arduino to Processing, and vice versa. Recenlty I made a VJ console that sends data from some potentiometers and…

---

## [FTP: create new text file & save fileContent](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250)

<div class="topic-metadata">

**Author:** [@wieb](https://discourse.processing.org/u/wieb)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 12:55am UTC](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250 "2018-12-07T00:55:45Z")

</div>

Hi everyone, Is it possible creating a new text file (which contains some string) on the fly then save it to FTP server with Processing? string fileContent = "test 12345 test 12345 test 12345 test 12345"; char fileName…

---

## [Connecting Xbee and processing and reading remote data](https://discourse.processing.org/t/connecting-xbee-and-processing-and-reading-remote-data/6349)

<div class="topic-metadata">

**Author:** [@stevenette](https://discourse.processing.org/u/stevenette)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 9:05pm UTC](https://discourse.processing.org/t/connecting-xbee-and-processing-and-reading-remote-data/6349 "2018-12-05T21:05:55Z")

</div>

Hello, I am currently using processing, hooked up to a arduino Uno with an Xbee shield and an Xbee to top it all off. This setup is reading a mesh network of other xbee radios out there, and processing the data. What I …

---

## [Trouble with variable as text on screen](https://discourse.processing.org/t/trouble-with-variable-as-text-on-screen/6333)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 5:36pm UTC](https://discourse.processing.org/t/trouble-with-variable-as-text-on-screen/6333 "2018-12-05T17:36:05Z")

</div>

I am showing text in a window but instead of showing my number it just shows “Humidity: null%” Here is my code: import processing.serial.\*; Serial myPort; // Create object from Serial class String val; // Data re…

---

## [Help needed with Leap Motion and live capture](https://discourse.processing.org/t/help-needed-with-leap-motion-and-live-capture/6323)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 11:30am UTC](https://discourse.processing.org/t/help-needed-with-leap-motion-and-live-capture/6323 "2018-12-05T11:30:21Z")

</div>

Hi all! Can someone help me with this code? I’m trying to use the Leap Motion control the movement of the “scan beam” on the screen. It works when I use the mouseX as a input, but now I want it to use te X position from…

---

## [Using digital Scale in processing](https://discourse.processing.org/t/using-digital-scale-in-processing/6261)

<div class="topic-metadata">

**Author:** [@b5003354](https://discourse.processing.org/u/b5003354)\
**Replies:** 1\
**Last updated:** [December 4, 2018, 6:43pm UTC](https://discourse.processing.org/t/using-digital-scale-in-processing/6261 "2018-12-04T18:43:35Z")

</div>

Hi, I’m trying to find away to use a digital scale with processing. is there a Library that i need to download or just using code? I’m at a loss i tried using Arduino but i would have to build the scale, using a digita…

---

## [Trying volume control of mp3 file with arduino flex sensor](https://discourse.processing.org/t/trying-volume-control-of-mp3-file-with-arduino-flex-sensor/6256)

<div class="topic-metadata">

**Author:** [@runwaysun](https://discourse.processing.org/u/runwaysun)\
**Replies:** 0\
**Last updated:** [December 3, 2018, 3:10pm UTC](https://discourse.processing.org/t/trying-volume-control-of-mp3-file-with-arduino-flex-sensor/6256 "2018-12-03T15:10:13Z")

</div>

Hi im very new to processing. I want to control volume of a mp3 file with flex sensor. So if I bend the sensor the volume goes down. Arduino circuit works and I get the serial but it doesn’t work with processing. Sou…

---

## [Volume control with analog sensor Arduino/ Processing](https://discourse.processing.org/t/volume-control-with-analog-sensor-arduino-processing/6122)

<div class="topic-metadata">

**Author:** [@Pomdibow](https://discourse.processing.org/u/Pomdibow)\
**Replies:** 6\
**Last updated:** [December 1, 2018, 12:28am UTC](https://discourse.processing.org/t/volume-control-with-analog-sensor-arduino-processing/6122 "2018-12-01T00:28:06Z")

</div>

Hi everyone, I would like to control the volume of my audio file or my video with a classic analog sensor. So I founded these sketchs to link Arduino and Processing and I modified it to map my volume but I don’t underst…

---

## [Make a graph plz help](https://discourse.processing.org/t/make-a-graph-plz-help/5300)

<div class="topic-metadata">

**Author:** [@martijnroks](https://discourse.processing.org/u/martijnroks)\
**Replies:** 20\
**Last updated:** [November 27, 2018, 7:52am UTC](https://discourse.processing.org/t/make-a-graph-plz-help/5300 "2018-11-27T07:52:09Z")

</div>

Hello, I need to make a graph like this: But I need on both axis 0 to 1000. I get from the arduino random digits that I need to implemend in the graph, this needs to be in real time, so the graphs needs to update it…

---

## [Calculation chart](https://discourse.processing.org/t/calculation-chart/5848)

<div class="topic-metadata">

**Author:** [@Dirk](https://discourse.processing.org/u/Dirk)\
**Replies:** 3\
**Last updated:** [November 25, 2018, 8:30am UTC](https://discourse.processing.org/t/calculation-chart/5848 "2018-11-25T08:30:17Z")

</div>

Hello experts, I am reading out a sencor for light. The value of this I want to use in a chart. The chart width and height is 700 x 1200. The value of the Y-axis is from 0 to 1400 The value of the X-axis is from 0 to…

---

## [Help with reading keywords from a .txt file to send to Arduino to turn into a tone](https://discourse.processing.org/t/help-with-reading-keywords-from-a-txt-file-to-send-to-arduino-to-turn-into-a-tone/5699)

<div class="topic-metadata">

**Author:** [@jonbearpig](https://discourse.processing.org/u/jonbearpig)\
**Replies:** 1\
**Last updated:** [November 19, 2018, 4:21am UTC](https://discourse.processing.org/t/help-with-reading-keywords-from-a-txt-file-to-send-to-arduino-to-turn-into-a-tone/5699 "2018-11-19T04:21:37Z")

</div>

Hi, I’m trying to use Processing to read a .txt file from my computer, search for specific keywords from this file, and send information to Arduino via the serial port so that Arduino can turn the keyword into a specifi…

---

## [How do I send variables from text fields in processing to Arduino?](https://discourse.processing.org/t/how-do-i-send-variables-from-text-fields-in-processing-to-arduino/5691)

<div class="topic-metadata">

**Author:** [@Mahrokh](https://discourse.processing.org/u/Mahrokh)\
**Replies:** 1\
**Last updated:** [November 18, 2018, 9:42pm UTC](https://discourse.processing.org/t/how-do-i-send-variables-from-text-fields-in-processing-to-arduino/5691 "2018-11-18T21:42:31Z")

</div>

In my Arduino project, I’ve been sending data to the board via serial monitor in Arduino IDE. Here’s a part of my code from the Arduino: \`while (Serial.available() \> 0) { // look for the next valid integer/float i…

---

## [Send 3 variable to Arduino?](https://discourse.processing.org/t/send-3-variable-to-arduino/5467)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 12\
**Last updated:** [November 16, 2018, 12:00pm UTC](https://discourse.processing.org/t/send-3-variable-to-arduino/5467 "2018-11-16T12:00:48Z")

</div>

Hi, I’m trying to send 3 variable w1, w2 and phiV which are 3 parameter changing with the mouse tracking. I was trying to place those variable in 3 arrays and add it in a string but it didn’t work. I think there is on…

---

## [Serial Processing](https://discourse.processing.org/t/serial-processing/5573)

<div class="topic-metadata">

**Author:** [@vtrivedi](https://discourse.processing.org/u/vtrivedi)\
**Replies:** 0\
**Last updated:** [November 15, 2018, 9:22pm UTC](https://discourse.processing.org/t/serial-processing/5573 "2018-11-15T21:22:36Z")

</div>

Hi Team, I am trying to read the data from the Serial port that is sent by the micro-pulser attached to the USART pin on the PC com port. The sequence of data to be received is based on the command sent to the micro pu…

---

## [Change the hue or saturation of an image](https://discourse.processing.org/t/change-the-hue-or-saturation-of-an-image/5202)

<div class="topic-metadata">

**Author:** [@ultratape](https://discourse.processing.org/u/ultratape)\
**Replies:** 9\
**Last updated:** [November 13, 2018, 12:06pm UTC](https://discourse.processing.org/t/change-the-hue-or-saturation-of-an-image/5202 "2018-11-13T12:06:24Z")

</div>

With this code, I want to change the hue of the image and not the background but I’m not sure what I need to change? This is pretty much my first processing project so I’m not of any of the terms or jargon. Using an ard…

---

## [TouchOSC not controling slider on PC](https://discourse.processing.org/t/touchosc-not-controling-slider-on-pc/5158)

<div class="topic-metadata">

**Author:** [@Lourens](https://discourse.processing.org/u/Lourens)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 8:24am UTC](https://discourse.processing.org/t/touchosc-not-controling-slider-on-pc/5158 "2018-11-12T08:24:19Z")

</div>

Hi this is my first post. I followed the following tutorial on Youtube on how to control sliders with TouchOSC from my iPhone to my PC. Getting the phone set up was easy, but the sliders on the phone does not control t…

---

## [Writing to multiple serial ports without delay](https://discourse.processing.org/t/writing-to-multiple-serial-ports-without-delay/4679)

<div class="topic-metadata">

**Author:** [@jacobrejin](https://discourse.processing.org/u/jacobrejin)\
**Replies:** 19\
**Last updated:** [November 7, 2018, 9:14am UTC](https://discourse.processing.org/t/writing-to-multiple-serial-ports-without-delay/4679 "2018-11-07T09:14:58Z")

</div>

I am doing a large scale LED project using processing and STM32. processing converts the video data into led pixel data and sends them to STM32 controllers. each controller controls about 1200 LEDs. each controller is…

---

## [Question about Draw Arrays](https://discourse.processing.org/t/question-about-draw-arrays/5270)

<div class="topic-metadata">

**Author:** [@Blake](https://discourse.processing.org/u/Blake)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 7:09pm UTC](https://discourse.processing.org/t/question-about-draw-arrays/5270 "2018-11-06T19:09:03Z")

</div>

OK, new to processing here, I could use a little help solving this. What I am trying to do. Use an Arduino/motion detector to detect when someone walks by. When they do walk by I want a random .PNG from a file to open …

---

## [Plotting a scrolling Graph](https://discourse.processing.org/t/plotting-a-scrolling-graph/5219)

<div class="topic-metadata">

**Author:** [@romek](https://discourse.processing.org/u/romek)\
**Replies:** 28\
**Last updated:** [November 6, 2018, 4:35pm UTC](https://discourse.processing.org/t/plotting-a-scrolling-graph/5219 "2018-11-06T16:35:35Z")

</div>

Hello !, for my school project I need to make a scrolling graph of several data. It’s combined with arduino data. We are already at the point that arduino sends the data from the sensors to processing, and everything w…

---

## [Moving line graph](https://discourse.processing.org/t/moving-line-graph/4463)

<div class="topic-metadata">

**Author:** [@Myselium](https://discourse.processing.org/u/Myselium)\
**Replies:** 6\
**Last updated:** [November 5, 2018, 11:10am UTC](https://discourse.processing.org/t/moving-line-graph/4463 "2018-11-05T11:10:24Z")

</div>

Hello, Currently im working on a project to control an arduino with processing. The serial communication is going fine but i cant seem to find any good way to put waveforms into a moving line graph. I have looked at …

---

## [Manipulating Processing Templates with a Cyton board (EEG waves)](https://discourse.processing.org/t/manipulating-processing-templates-with-a-cyton-board-eeg-waves/4997)

<div class="topic-metadata">

**Author:** [@roguetheory](https://discourse.processing.org/u/roguetheory)\
**Replies:** 1\
**Last updated:** [November 4, 2018, 5:35am UTC](https://discourse.processing.org/t/manipulating-processing-templates-with-a-cyton-board-eeg-waves/4997 "2018-11-04T05:35:40Z")

</div>

I was wondering if anybody had any experience controlling any of the processing templates using an Open BCI Cyton 8 channel board and their EEG hand band (or similar)?

---

## [Problem with accelerometer](https://discourse.processing.org/t/problem-with-accelerometer/5131)

<div class="topic-metadata">

**Author:** [@chalita](https://discourse.processing.org/u/chalita)\
**Replies:** 1\
**Last updated:** [November 3, 2018, 10:44am UTC](https://discourse.processing.org/t/problem-with-accelerometer/5131 "2018-11-03T10:44:22Z")

</div>

import processing.serial.\*; Serial c; void setup() { size(800, 600, OPENGL); c = new Serial(this, "/dev/cu.usbserial-DN02SMXZ", 115200); // change the COM port } void draw() { float x, y, z; if (c.available()…

---

## [Changing colors on a rectangle](https://discourse.processing.org/t/changing-colors-on-a-rectangle/5090)

<div class="topic-metadata">

**Author:** [@chalita](https://discourse.processing.org/u/chalita)\
**Replies:** 3\
**Last updated:** [November 2, 2018, 7:01pm UTC](https://discourse.processing.org/t/changing-colors-on-a-rectangle/5090 "2018-11-02T19:01:37Z")

</div>

THE FOLLOWING CODE IS WRITTEN ON PROCESSING. I NEED THE CODE TO CHANGE THE COLOR OF A RECTANGLE WHEN THE VARIABLE B CHANGES ITS VALUE. WHEN D\>20 THE RECTANGLE SHOULD BE GREEN, WHEN 20\>D\>10 IT SHOULD BE YELLOW, AND WHEN D\<…

---

## [How to do serial without setting up new port?](https://discourse.processing.org/t/how-to-do-serial-without-setting-up-new-port/5076)

<div class="topic-metadata">

**Author:** [@GBry](https://discourse.processing.org/u/GBry)\
**Replies:** 4\
**Last updated:** [November 2, 2018, 5:29am UTC](https://discourse.processing.org/t/how-to-do-serial-without-setting-up-new-port/5076 "2018-11-02T05:29:43Z")

</div>

Hi, I’m trying to send a simple on/off command to Arduino, but the thing is, the serial port setup takes exactly 1561ms (so I had to add a delay of 1561 prior to sending the command) The question is, can I get one Proce…

---

## [Serial Processing does not read or write anything to controller](https://discourse.processing.org/t/serial-processing-does-not-read-or-write-anything-to-controller/5094)

<div class="topic-metadata">

**Author:** [@vtrivedi](https://discourse.processing.org/u/vtrivedi)\
**Replies:** 2\
**Last updated:** [November 2, 2018, 3:36am UTC](https://discourse.processing.org/t/serial-processing-does-not-read-or-write-anything-to-controller/5094 "2018-11-02T03:36:37Z")

</div>

Hi Team, I have written a processing software for the first time for my project. The concept is to read data from and write commands to pulser controller over the serial port. However, even though I see the COM port g…

---

## [Arduino, Adafruit board help](https://discourse.processing.org/t/arduino-adafruit-board-help/4964)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [November 1, 2018, 1:16am UTC](https://discourse.processing.org/t/arduino-adafruit-board-help/4964 "2018-11-01T01:16:31Z")

</div>

Hello dear processors, so I have bought this pulse-room kit. I followed all the steps that appear here and when I verify the code an error appears that says : invalid conversion from ‘void ()(tc\_module)’ to ‘void (\*)()’ …

---

## [Using Serial data in real time?](https://discourse.processing.org/t/using-serial-data-in-real-time/5056)

<div class="topic-metadata">

**Author:** [@csanyipal](https://discourse.processing.org/u/csanyipal)\
**Replies:** 4\
**Last updated:** [October 31, 2018, 5:25pm UTC](https://discourse.processing.org/t/using-serial-data-in-real-time/5056 "2018-10-31T17:25:39Z")

</div>

Hi, I have a project which uses data from the Serial port. The sketch is the following: // Processing code for this example // Tweak the Arduino Logo // by Scott Fitzgerald // This example code is in the publi…

---

## [Arduino + Raspberry Pi - install IDE](https://discourse.processing.org/t/arduino-raspberry-pi-install-ide/5062)

<div class="topic-metadata">

**Author:** [@tgoode451](https://discourse.processing.org/u/tgoode451)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 4:50pm UTC](https://discourse.processing.org/t/arduino-raspberry-pi-install-ide/5062 "2018-10-31T16:50:23Z")

</div>

---

## [Advice to help Ambilight calculate Arduino](https://discourse.processing.org/t/advice-to-help-ambilight-calculate-arduino/5028)

<div class="topic-metadata">

**Author:** [@Mationdeed](https://discourse.processing.org/u/Mationdeed)\
**Replies:** 1\
**Last updated:** [October 30, 2018, 4:12pm UTC](https://discourse.processing.org/t/advice-to-help-ambilight-calculate-arduino/5028 "2018-10-30T16:12:12Z")

</div>

Well, this is Ambilight. I find it easier to use Arduino than to design your own hardware. There are also many Arduino users on the net

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

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