processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.45k stars 3.29k forks source link

Interface with intel edison #1292

Closed rahul-thakoor closed 8 years ago

rahul-thakoor commented 8 years ago

Hello there. I want to pair the intel edision connected to some sensors and peripherals to a computer running p5.js script in browser via node.js/ websocket. Any sample code on how to easily acquire values from intel edison board and input directly in p5 script? Thanks

kadamwhite commented 8 years ago

@rahul2704 I'm not sure how you would do this directly from the browser, but what I would recommend would be to use Johnny Five (http://johnny-five.io/platform-support/#intel-edison-arduino) to communicate with the Edison, then stream those values from a small node server to the browser via a Web socket connection. There may be a way to cut out one of those levels of abstraction, devices aren't my area of expertise; but Johnny Five is your best bet for device communication!

Hope that helps somewhat

indefinit commented 8 years ago

Another option would be to look at p5.serial or p5.bots. You can find out more about these p5 specific libraries here:

http://p5js.org/libraries/

On Mar 6, 2016, at 9:51 AM, K.Adam White notifications@github.com wrote:

@rahul2704 I'm not sure how you would do this directly from the browser, but what I would recommend would be to use Johnny Five (http://johnny-five.io/platform-support/#intel-edison-arduino) to communicate with the Edison, then stream those values from a small node server to the browser via a Web socket connection. There may be a way to cut out one of those levels of abstraction, devices aren't my area of expertise; but Johnny Five is your best bet for device communication!

Hope that helps somewhat

— Reply to this email directly or view it on GitHub.

rahul-thakoor commented 8 years ago

thanks for the help. I will look into it.