I have some issues with the Arduino-Node in the VVVV-Addon-Pack:
I used the Arduino - Help-Patch from Jens-A. Ewald (see the left side of the attached image).
Then I edited it as you can see on the right side.
The help-patch of the Arduino - Node can control a servo and an led at the same time by fading one slider.
On the right side of the image I added a potentiometer instead of the slider to control the LED. This works.
Now I would like to use a potentiometer to control a completely different LED (not the one on pint 6 as in the hall-patch).
This other LED (e.g. at Pin 9) should be controlled independent from each other device connected to the Arduino-board, but i want to use only one Arduino-board. The new LED at Pin 9 should not depend from the preferences made for the LED at Pin 6.
However, I can only connect one set-slice - Node to the Arduino - Node. I would need two of them.
How can I manage this?
Is there maybe something like a Group - Node?
exactl as u7angle stated. know how to use spreads and you are good to go.
the arduino node takes a spread of max. 20 slices. slice numbers indexes correspond to the according arduino pin index. note, that on the standard arduinos pin 0 nad 1 are not usable, because they are handling the serial data communication. plus: one can also control the analog pins (e.g. use them as default digital IOs) – they start at index 14 (so it is analog 0).
u7angel´s solution works.
I tried it out in the patch below. I chained two set-slice - nodes.
I put a servo to pin 6 and an LED to pin 11 of my Arduino UNO (Both pins are PWM-outputs).
Now, servo and LED can be controlled independently from each other.
Well, not completely independently… When I move the fader for the servo, the LED flickers weirdly as well :-(
Meanwhile I also saw dannielmach´s solution with the Stallone - node.
A bit more complicated but it works.
Now we have the choice.
Thankx for your help!
Now I put a spread with 20 entries (all of them are 0) to the input of the first setSlice - node, according to my recent image above: Same result.
The slider for the LED acts independently, but the fader for the servo influences the LED.
Then I put a select - node between the first two spreads (in the patch I added below) and the two select - nodes. I wanted to avoid a chain of spreads. Do they probably influence each other?
But how do I get more than 1 input into the Arduino - node without chaining them? The Stallone - solution doesn´t work fine either.
You see, I´m a bit puzzled…
Can you take the sketch below and demonstrate what you mean?