如何在Ubuntu 15.04上运行johnny-five?

$ node hello.js 1436894483255 Device(s) /dev/ttyUSB0 1436894483279 Connected /dev/ttyUSB0 1436894493287 Device or Firmware Error A timeout occurred while connecting to the Board. Please check that you've properly flashed the board with the correct firmware. See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting events.js:87 throw Error('Uncaught, unspecified "error" event.'); ^ Error: Uncaught, unspecified "error" event. at Error (native) at Board.emit (events.js:87:13) at Board.log (/usr/lib/node_modules/johnny-five/lib/board.js:623:8) at Board.(anonymous function) [as error] (/usr/lib/node_modules/johnny-five/lib/board.js:634:14) at Board.<anonymous> (/usr/lib/node_modules/johnny-five/lib/board.js:407:12) at Timer.listOnTimeout (timers.js:119:15) 

我已经在Ubuntu上安装了节点和johnny-five,并连接了Arduino Nano。 但是它抛出了上面的错误。

在运行节点应用程序之前,尝试打开arduino:

$ arduino

去文件> Examples> Firmata,然后selectStandardFirmata

一旦它打开上传到你的arduino。

完成后,您应该能够运行您的节点应用程序没有任何问题

Arduino IDE可能会连接到电路板。 尝试closures它。