Monday, September 15, 2014
On 9:42 AM by Richard St-Pierre
OverviewThis tutorial shows you how to run the IDE (Integrated Development Environment) on the BeagleBone and download your programs to your Arduino board. The program you create runs on your Arduino board (not the BeagleBone). You use the BeagleBone to run the Arduino software in order to develop your programs (as you would on a PC/laptop).
What you will need
- BeagleBone Black
- HDMI Cable to connect to your HDMI Display Monitor(optional)
- Mini Keyboard with Trackball Mouse (optional)
- AC adapter 5 Volts, 2 Amp (required)
- BeagleBone expandable case Orange or Black (recommended)
- Ethernet cable for internet connection (recommended)
- Arduino Board (example: UNO, MEGA...)
- Debian Linux
Step 1 - Download Arduino for BeagleBone
sudo apt-get arduino
Step 2 - Start Arduino IDE from Desktop VNC or Direct (Monitor+Keyboard)
You can start the Arduino IDE from the BeagleBone Desktop. You must have a monitor and keyboard attached or VNC into the BeagleBone to see the graphical desktop.
You can also just type arduino (at the Debian Desktop terminal).
Step 4 - Configure Arduino BoardNext, setup the Arduino software for the type of Arduino board you have.
(Arduino Uno in this example)
Step 5 - Configure Download InterfaceOnce you have the Arduino plugged-in and have powered up the BeagleBone, you should be able to see it loaded as a USB device.
You can now select the port to download to your Arduino program.
File -> Tools -> Serial Port : /dev/ttyACM0
Compile, Download your ProgramsLoad a program.
You can use one of the supplied examples to check out your new connections.
Complile the program using the (check) icon.
Transfer the program to your Arduino using the (right pointing) icon.
Your program is downloading to the Arduino and will start shortly.