The GIST Hub

  • Home
  • Activity
  • Blogs
  • Calendar
  • Forums
  • Get In Touch
  • Groups
  • Members
  • The GIST
  • Profile picture of Chris Warburton

    Chris Warburton posted an update in the group Group logo of ShackNetShackNet:   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/

    • Profile picture of Chris Warburton
      Chris Warburton replied 11 months, 4 weeks ago

      Actually, scratch that it also uses Flash, which I don’t allow on my machines :(

    • Profile picture of Martyn Eggleton
      Martyn Eggleton replied 11 months, 1 week ago

      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.

    • Profile picture of Chris Warburton
      Chris Warburton replied 11 months, 1 week ago

      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!

Proudly powered by WordPress and BuddyPress.

The GIST Hub
  • Log In
  • Sign Up
  • Visit
    • Random Member
    • Random Group
    • Random Site