node.js - cylon.js & arduino uno: execute program without cable connection to PC -


i new field, might odd question. can write code(say blinking lights) in aduino ide , upload arduino , can disconnect pc , program run. (blinking happen). when using cylon.js , write program , execute say

$ node blinking.js 

then long arduino connected pc(or laptop) blinking happens , when kill node js or disconnect arduino pc blinking stops. (this how suppose happen, right?)

so question is, if have arduino temperature sensor outdoor , have cylon.js program use sensor data , things (say print them), how can achieve ? have have 2 arduinos connected via wireless or gsm shields (one outdor , 1 connected pc cylon.js running)?

or there simple way of doing this? insight on appreciated.

thank you

then long arduino connected pc(or laptop) blinking happens , when kill node js or disconnect arduino pc blinking stops. (this how suppose happen, right?)

correct. true node.js program controlling arduino, whether cylon.js or johnny-five.

if have arduino temperature sensor outdoor , have cylon.js program use sensor data , things (say print them), how can achieve ?

it's not possible just arduino board. can use pair of xbee modules, allow arduino communicate host machine, or use board has wifi or bluetooth capabilities, such as:

  • spark core
  • electric imp
  • intel galileo
  • intel edison
  • raspberry pi
  • beaglebone
  • pcduino

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -