sbstjn / noduino

JavaScript and Node.js Framework for controlling Arduino with HTML and WebSockets
http://sbstjn.github.io/noduino/
1.23k stars 232 forks source link

Cannot connect to arduino #13

Open shashankmehta opened 11 years ago

shashankmehta commented 11 years ago

Set up: Ubuntu 12.04, node v0.8.1, arduino uno It tries to connect to /dev/usbmon0 where as uno is on /dev/ttyACM0

aaroncarlucci commented 11 years ago

I'm on the same setup -- maybe that's why I have failed to connect so far.

creatorrr commented 11 years ago

Quick & Dirty fix:

duino loops through all usb devices, searching for an arduino using ls /dev | grep usb.

To fix this, edit board.js vim duino/lib/board.js

On line 80, change 'ls /dev | grep usb' to 'ls /dev | grep ACM'.

Note: Not recommended but works for now. Hope @ecto fixes https://github.com/ecto/duino/issues/2 soon!

josx commented 11 years ago

A better way to do this without loosing results is:

'ls /dev | grep -e usb -e USB -ACM'

armacali commented 10 years ago

thans very much, work