Communication between a Beagleboard and an Arduino

Hello everybody,

Here is my purpose:
I would like to complete a project of robotics using a beagleboard xM
(specifically to video processing).
This is how I see it:
All my sensors and actuators will plug on the Arduino which will send
the informations to the beagleboard (by I2C or serial)
The beagleboard will calculate what to do and send it to the arduino
which will respond to the order.

My probleme is: I don't know how to make a program that allows me to
get back the informations from the Arduino.

If you know any softwares that allow me to program in C on the
beagleboard and get back the informations from the Arduino, let me
know.
If you have any examples of codes, they will be welcome.

Thanks in advance.
Gauthier Boidin

Hi,

I haven't done this with a C program on the Beagleboard (though it's
no doubt been done by others), but I'm running Python code on
Beagleboards (both XM and original) to communicate with Arduinos via
the serial port. In one case, the Arduino is directly connected to
the BB XM's USB host port. In other cases, remote Arduinos
communicate via XBee -- at the BB end, I use an XBee adapter to
connect to the BB's USB port.

The Python code is identical for both approaches -- to Python, it's
just a serial port. I wrote a blog post about one project that
includes the Python code -- http://www.gigamegablog.com/2011/08/03/netduino-meets-world/.
In that project, I was using a Netduino rather than an Arduino, but
the same Python code works for both devices.

Dan.

All my sensors and actuators will plug on the Arduino which will send
the informations to the beagleboard (by I2C or serial)
The beagleboard will calculate what to do and send it to the arduino
which will respond to the order.

If you know any softwares that allow me to program in C on the
beagleboard and get back the informations from the Arduino, let me
know. If you have any examples of codes, they will be welcome.

You might connect the serial port of the Arduino to one of the Beagleboard-XM serial ports. Install the "native development" package on the Beagleboard to provide yourself with a GNU development chain. Accessing the serial port from a C program is straight forward. Just open i it as file for reading and writing.

Christian

Hello everybody,

Here is my purpose:
I would like to complete a project of robotics using a beagleboard xM
(specifically to video processing).
This is how I see it:
All my sensors and actuators will plug on the Arduino which will send
the informations to the beagleboard (by I2C or serial)
The beagleboard will calculate what to do and send it to the arduino
which will respond to the order.

My probleme is: I don’t know how to make a program that allows me to
get back the informations from the Arduino.

If you know any softwares that allow me to program in C on the
beagleboard and get back the informations from the Arduino, let me
know.
If you have any examples of codes, they will be welcome.

I can’t help you program the Arduino, but there are many ways to access your Arduino from the BeagleBoard-xM (that google will find).

I2C: http://romillys-robots.blogspot.com/2011/11/i2c-links-arduino-and-beagleboard.html
Arduino IDE over USB-to-serial: Chaotic clamoring: Processing and Processing-JS on the BeagleBoard under Angstrom
Zigbee: http://coverclock.blogspot.com/2012/02/ardunino-to-android-on-beagleboard-via.html
Android for Android accessory development kit: http://arowboat.org

Hi,

Thanks for your fast replies.
I'll examine your links carefully and won't hesitate to post again if
I have any troubles.

Gauthier Boidin

I wrote a Howto on the serial communication between BeagleBoard/
Arduino using a Java program:

http://embeddedgeeks.wordpress.com/2012/02/26/arduino-beagleboard-serial-communication-using-java-rxtx/