okee, after 2 days of trying to get vvvv to send a string (just a changing value) to my arduino I discoverd the arduino/firmata node!
wich saved me!
but now I still have some questions.
When I enable the node, nothing flickers, I got the comport right and am working in the helpfile… something is wrong, but what?
then I want to be able to read the value on the arduino IDE and use it to program my project what should I upload to the arduino? the patches that are in the arduino IDE are all firmata based, can I just use Serial.println to make the value appear on the serialwindow?
thanx for making this node btw, I always used PD for my communication with arduino, this is much easier!
If I got you right, you want to send values from vvvv to Arduino in order to make it react on those values?
I recently had to do the same thing - the RS232 Node was of much use in my case. Just send any String to Arduino and check for it using Serial.read().
If you need any help, let me know and I will provide you a basic patch+sketch.
edit: Pardon me, didn’t read your post carefully. I suppose you tried this already - what caused the problems?
regarding your firmata problem, i’m not sure if i understand you right. the firmata arduino code + plugin turns the arduino hardware into an interface board.
therefore, once you uploaded the firmata 2.0b3 arduino code to the board, the plugin should work. (you might need to do this with an older version of the IDE e.g. 16) make sure you don’t just upload the standard firmata coming with the IDE.
once this is working and vvvv has access to the IO’s, you dont need the IDE anymore, unless you want something specific which is not implemented in this firmata release.
note to myself: i need to test which IDE still works with firmata2.0
note to everyone: use phidgets because arduino is chaos ;)
Iam trying to send a string (changing value between 90 and 180) to arduino and read it with the serial window, using Serial.read and Serial.println, based on the programming that readme send me, but the only value I get on my serialwindow is -1… why? anyone knows that?
the patch and arduino react well on the rs232blinkpatch from readme, but I still dont see anything happening on the outputpin of the rs232 node
Thanx u7angel. Too late to dig in, but firmata vvvv plugin source will be fun when I wake up hungover and need distraction=coffee*code;
And yeah its been answered but flash arduino board with firmata firmware and no need for arduino(java meets avrdude) ide. Use firmata node and pins can be assigned…
Are you sure you want to send an entire string to avr chip… those are 8bit registers. It would be faster to build a case and pass it an int rather than a bunch of ascii over serial bits… bigger faster newer chips created mem register types that can hold byte sequences like those to represent strings, but 8bit micro no has fancy registers(other than 16bit Z).
Drunken dreamz: firmata(like(similar)) for ARM gpio interface into linux kernel. While I’m dreaming why not throw in SPI and I2C as well. Interupts are tricky stack jumps:( sorry if I OT. Luvvvv you and luvvvv arduino
String type is like vector of chars… container has logic to rearrange mem to resize/reorder… use single char’s or u_int, save cycles
@artvt: if you are stuck with the limitation of pwms, until someone recompile the plug-in with a Max IO, Max Analogic, Max PWM user editable, you may usewithout plugin, in artnet, this sketch: art-net-set-for-arduino
i will add soon art-net client, that would enable to receive data coded by you as you wish (need a little couple of hours )