[oshug] Arduino help needed
jeremy.bennett at embecosm.com
Mon Jul 8 15:34:48 UTC 2013
On 05/07/13 08:04, Paul Tanner wrote:
> Hi Guys,
> I cheated and used node.js with a module called node-serial. I
> discovered that you need to disconnect the serial port from the console
> before you can use it (edits to /etc/inittab and /boot/cmdline.txt). I
> imagine you'd need to do this in a python environment too. minicom was
> very useful for prodding the serial device to make sure it was working
> before I pointed my program at it.
> Regards, Paul
Hi Paul, Omer, Andrew,
Thanks for all the suggestions.
It was all much easier than I thought, once I realized that the USB
serial terminal is /dev/tty/ACM<n>, not /dev/tty/USB<n> when using
It is trivial to use stty to set the line parameters and implement a
simple C++ class to access the serial line on the host. Code on GitHub at:
I don't know if the face tracker works yet - the servos are lost in the
post. But at least the Uno is getting some sort of serial data.
> At 06:38 PM 7/4/2013, Omer Kilic wrote:
>> Hi Jeremy,
>> This is a good starting point:
>> pySerial documetation available here: http://pyserial.sourceforge.net/
>> On 4 July 2013 18:17, Jeremy Bennett <jeremy.bennett at embecosm.com> wrote:
>> > I need some help from one of you Arduino gurus.
>> > I want to talk to the Arduino serial interface from a Fedora Linux
>> system. I
>> > know how to do the Arduino side, using Serial.available, Serial.read,
>> > Serial.write etc.
>> > My problem is how to talk from the Linux end. All the examples I see
>> > Windows based and use Thierry Schneider's Serial C++ Library for
>> Win32. What
>> > do I use as the Linux equivalent?
>> > It's not as simple as just writing the the Linux device (in this case
>> > /dev/bus/usb/004/081). I suspect I need something rather cleverer,
>> but I
>> > don't know what it is.
>> > Any help much appreciated. I'm trying to help a youngster set up an
>> > based face tracker, driven by OpenCV face detection on the Linux box.
>> > Thanks,
>> > Jeremy
>> > --
>> > Tel: +44 (1590) 610184
>> > Cell: +44 (7970) 676050
>> > SkypeID: jeremybennett
>> > Twitter: @jeremypbennett
>> > Email: jeremy.bennett at embecosm.com
>> > Web: www.embecosm.com
>> > _______________________________________________
>> > oshug mailing list
>> > oshug at oshug.org
>> > http://oshug.org/cgi-bin/mailman/listinfo/oshug
>> oshug mailing list
>> oshug at oshug.org
> Paul Tanner - Virtual Technologies - http://www.virtual-techno.com
> Tel: +44 1494 581979 Mob: +44 7973 223239 mailto:paul at virtual-techno.com
> oshug mailing list
> oshug at oshug.org
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
Email: jeremy.bennett at embecosm.com
More information about the oshug