PLEASE NOTE: This site is no longer being actively maintained. For frequently updated BeagleBone resources please visit Beaglebone.org.

Monday, September 15, 2014

On 9:42 AM by Anonymous
BeagleBone runs Arduino IDE Logic Supply Tutorial


Overview

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


Step 4 - Configure Arduino Board

Next, setup the Arduino software for the type of Arduino board you have.
(Arduino Uno in this example)


Step 5 - Configure Download Interface

Once you have the Arduino plugged-in and have powered up the BeagleBone, you should be able to see it loaded as a USB device.
lsusb


You can now select the port to download to your Arduino program.
File -> Tools -> Serial Port : /dev/ttyACM0


Compile, Download your Programs

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


Additional Notes

Note: Arduino "*.ino" files can be run in Cloud9 IDE as well (Starting with BeagleBone rev C / Debian)