Hiho,
I have issues fading an LED on my Arduino board using the rs232 - node.
I´m not able to realize a smooth fading of the brightness of the LED when I´m moving the faders in vvvv. The LED just stutters irregularly.
See the screenshot and the attached sketch. I also added the Arduino sketch which receives the Serial data coming from vvvv.
I have already tried to send serial data from Javascript to Arduino using the same Arduino sketch. This works without problems. Inside Javascript, I used the setInterval() - function which only wrote the data 10 times a second to the serial port.
Maybe vvvv is sending too often serial data to the Serial port??
Can I define a setInterval() are something similar in vvvv, too?
Has anyone an idea how I can fade my LED smoothly in vvvv?
In my patch I tried to set a kind of interval to the R - channel, but this does not prevent the rs232 node from writing serial data to the serial port as often as before.
Well, I know the way with Firmata (which is indeed able to realise a smooth fading), but unfortunately I can´t use it, because I´ve got a lot more things to specify in my Arduino sketch, as I´m going to distribute the incoming value over an i2c network to several slaves.
Who has an idea?
SendSerialWithIntervals.v4p (22.6 kB)
HexToArduino.ino_.txt (2.8 kB)