I am new to vvvv and very excited to use it in an upcoming installation. My am is to change the direction of a video with a switch button connected to arduino. I have the patch (determining video movement) set to be activated by a toggle. I want to connect the toggle to arduino (ex. when switch on - (toggle on) video plays forward / when switch off - (toggle off) video plays backwards). I have the switch connected to Digital pin 4, yet I do not see any values changing when I trigger the switch. Any recommendations on how I can receive values of 0/1 from a button ?
Double check your hock up and make sure you have Standard Firmata uploaded on your Arduino.
So far its not vvvv related! at least without seeing your patch as sebescudie mentioned.
Then there are a few options for reversing a video depending on your context such as resolution/sound/etc… .
Thank you for your abrupt answer. I realized there were too many 'switch’es in my question…
I attached two screen shots next to each other. The one on the left will show you the video patch with arduino connection patch embedded. You can see that I have the ‘value on pin’ to be connected to the toggle at the top. (but the value is always 0)
The one on the right shows that I am trying to get the value from pin 4 with ‘get slice’ but still the value doesn’t change.
It seems to be working, but just recognizing the trigger in the beginning or in intervals (so the toggle flickers)
I need the toggle button triggered with arduino until the switch is off.
(in arduino, I can get a clear output data of 0s and 1s)
So can I boolean the output so that it either stays as 0 or 1, but not register once or every ‘1’ it receives ?
What I want to figure out is to convert the string data (output from arduino) into an integer/number/value.
In the patch, I can connect the string to asvalue. But when triggered it only outputs the first 1 followed by 0s. Perhaps I need to change that node, but can’t figure out how to use the string data as the value input.