This is a tutorial to get you started with sending and receiving the data, to and from the Arduberry, directly from the ease of your C programs.
Step 1: Setting up the Raspberry Pi
Follow the Getting Started to Arduberry guide and run the install script to set up the libraries for the Arduberry.
Step 2: Upload the sketch to Arduberry
Choose the programmer as Raspberry Pi GPIO and the board as Arduino Uno and use “Upload as a Programmer” or press “Ctrl+Shift+U” to upload the sketch to the Arduberry.
We have created a sample C program which sends a command to the Arduberry and reads a string and an analog value back from the Arduberry.
Compile the C program:
gcc ser.c -l wiringPi
and run the C program and the data should start coming on the terminal:
Questions? Ask on the forums and we’ll help you out.