Re: [beagleboard] BeagleBone Black with Arduino

719 views
Skip to first unread message

Gerald Coley

unread,
Jun 1, 2013, 6:06:49 PM6/1/13
to beagl...@googlegroups.com
I would start by finding a Linux driver for the unnamed Arduino board.

Gerald



On Sat, Jun 1, 2013 at 12:40 AM, <b...@delarre.net> wrote:
Hi all,

Real beaglebone newbie here but in desperate need of some help.

I want to get an Arduino Micro hooked up to my BBB usb host port and the communicate between the two using serial libraries at both ends. This obviously is possible, but I'm completely clueless as to how to get started.

The serial communication itself isn't so much of an issue, getting the BBB to recognise that the Arduino is connected and to get the serial port setup correctly is the hard bit.

Any suggestions on where to start?

Thanks

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Gerald
 

David Goodenough

unread,
Jun 2, 2013, 5:52:40 AM6/2/13
to beagl...@googlegroups.com
On Saturday 01 Jun 2013, b...@delarre.net wrote:
> Hi all,
>
> Real beaglebone newbie here but in desperate need of some help.
>
> I want to get an Arduino Micro hooked up to my BBB usb host port and the
> communicate between the two using serial libraries at both ends. This
> obviously is possible, but I'm completely clueless as to how to get
> started.
>
> The serial communication itself isn't so much of an issue, getting the BBB
> to recognise that the Arduino is connected and to get the serial port setup
> correctly is the hard bit.
>
> Any suggestions on where to start?
>
> Thanks
The difficulty with serial ports (tty) is that there is only a way of telling
that there is something at the other end, no standard way of telling what it
at the other end. This problem is nothing to do with either Linux, Arduino
or BBB, it is a general serial comms problem.

If you have only connected three wires (the minimum needed) RX, TX and GND
even detecting that there is something there is difficult. You need some
more pins, if necessary use a GPIO pin (remember level conversion) so that
you can detect that the other end is present. The traditional pins for
such things is to listen to the other end's RTS (request to send) pin, or
to the CD (carrier detect) pin which is the one used by a modem to say that
there is a link.

I would suggest putting what amounts to a ping function into the arduino
script, so if you send a particular string to the arduino it will respond
in a way you can check. Then you can have the linux end notice the connection
and then send out the ping and check the reply.

David

John McClaire

unread,
Jun 20, 2014, 8:35:46 AM6/20/14
to beagl...@googlegroups.com, b...@delarre.net, tarz...@yahoo.com
Correct me if I'm wrong, but something like this can be used to communicate with BBB's USB to Arduino's I2C pins. Correct?

I'm looking to do the same sorta thing.

- John

Jerry Davis

unread,
Jun 20, 2014, 9:11:22 AM6/20/14
to beagleboard
I have used the RPi to do simple serial to the arduino. But I also own a BBB [ not the newest one with 4GB flash! :-( ]

But I found a few links to what is going on. By far the easiest is the adafruit python library found in the first link. The other two links are there FYI, to give you information on the device tree overlay that is used. I am a python programmer (first and foremost) so the adafruit library interests me most.



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



--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

There are 10 kinds of people in the world:
Those who can read binary and those who can't.

John McClaire

unread,
Jun 20, 2014, 9:26:31 AM6/20/14
to beagl...@googlegroups.com
Thanks for the info, Jerry. Those resources will definitely come in handy. Is it possible though to use the BBB's USB port instead of the GPIO pins? I don't have any GPIO pins available because I'm using an Octoscroller cape (image link below).

http://bit.ly/1plKtpc

Thanks again!

- John


You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/-bR1NFln6_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
John McClaire | Creative Technologist 

John McClaire

unread,
Jun 20, 2014, 9:36:11 AM6/20/14
to beagl...@googlegroups.com

Jerry Davis

unread,
Jun 20, 2014, 9:36:28 AM6/20/14
to beagleboard
I googled for this, and found this:


happy trails, 
jerry

John McClaire

unread,
Jun 20, 2014, 9:47:34 AM6/20/14
to beagl...@googlegroups.com
How did I miss that?! Thanks!
Reply all
Reply to author
Forward
0 new messages