Arduino and raspberry pi

144 views
Skip to first unread message

Artem Pastukhov

unread,
Nov 7, 2014, 2:57:49 AM11/7/14
to node...@googlegroups.com
Hello!

I have raspberry pi with ninja pi crust that actualy ATmega328.

I have uploaded StandardFirmata scetch to arduino and samples from firmata/examples is working well.
But! When i try to load the flow from http://nodered.org/docs/hardware/arduino.html i'm getting
7 Nov 10:44:14 - [warn] [arduino-board:d7663aaf.47194] Device /dev/ttyAMA0 not found

Can anyone advice where is the problem?

Luis Montes

unread,
Nov 7, 2014, 12:40:49 PM11/7/14
to node...@googlegroups.com
I don't know anything about the ninja board, but I've used a few arduino unos on a pi. I'd probably start being ssh'd to pi and looking for the ninja's serial port in /dev. 

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave C-J

unread,
Nov 7, 2014, 1:48:42 PM11/7/14
to node...@googlegroups.com

Hi,

Does /dev/ttyAMA0 exist ? (It should)
Is something else already using it ? (Did you close the Arduino IDE ?)
In theory it should just try and use it (like the idea does) but by default it is also used as a console... Eg see http://www.hobbytronics.co.uk/raspberry-pi-serial-port.  And this may be interfering (though I'll admit I haven't had that as a problem.)

Artem Pastukhov

unread,
Nov 7, 2014, 3:12:06 PM11/7/14
to node...@googlegroups.com

Yes, it exist and  samples from firmata/examples is working perfect.
No one other using this port( according to lsof).
An same behavior when i run node-red with root privileges.

пятница, 7 ноября 2014 г., 21:48:42 UTC+3 пользователь Dave C-J написал:

mike.s...@gmail.com

unread,
Nov 7, 2014, 4:47:46 PM11/7/14
to node...@googlegroups.com
try to use /dev/ttyACM0

Claudiu O

unread,
Nov 8, 2014, 11:00:04 AM11/8/14
to node...@googlegroups.com
I don't know about the ninja board either but a couple days ago I ran into a similar issue and it turns out I was using an older Duemilanove compatible Arduino that not only is seen on the Pi as dev/ttyUSB0 (more details in the accepted answer to this stackoverflow issue: http://raspberrypi.stackexchange.com/questions/1505/how-to-attach-an-arduino) but it simply doesn't work with node.js or node-red (sometimes it did work on node-red but not consistently, I kept getting device not found as you do. I ended up using a Uno compatible board and it worked from the first try.

Maybe you don't have the same issue, hope it helps though.

   claudiu

Artem Pastukhov

unread,
Nov 11, 2014, 2:59:54 AM11/11/14
to node...@googlegroups.com
I found an issue!
Node-serialport is not detecting /dev/ttyAMA0 as a serial port because /dev/serial/by-path link is missing.

https://groups.google.com/forum/#!topic/node-red/eW7R-7IsWR0

пятница, 7 ноября 2014 г., 10:57:49 UTC+3 пользователь Artem Pastukhov написал:
Reply all
Reply to author
Forward
0 new messages