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 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.
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.
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).