-
Chris Warburton posted an update in the group
ShackNet: 11 months, 4 weeks ago ago · updated 11 months, 1 week ago ago Just found this Javascript Arduino Uno interface. Not played with it yet though, will have to wait until I get home http://www.schillmania.com/projects/arduino-js/
Actually, scratch that it also uses Flash, which I don’t allow on my machines
HI, I’ve been looking for something like this as well and so looked at that site and found this mentioned at the top https://github.com/voodootikigod/node-arduino
that is a library for the Node.js javascript webserver for talking to arduino.
Ooo very nice, thanks for this
For my current project I’ve been trying to send JSON back and forth over serial, eg. send ’{”digitalread”:5, ”digitalread”:2, ”analoguewrite”: {”pin”:3, ”value”:512}}’, get back ’{”digitalvalue”:{”pin”:5, ”value”:1}, ”digitalvalue”:{”pin”:2, ”value”:0}}’. This quite a high-level thing to be doing though, which means I’m getting caught up in annoyances like dynamic memory management (we don’t know how long the input will be as we read it in, so we need to keep realloc’ing as our pointers run out of space). I think I’ve been vastly overcomplicating things this way, as the simple const defining and switching done by node-arduino seems to be exactly what I’m after (although I’m working with C++, but it’s simple enough to port). Cheers!