• Increase font size
  • Default font size
  • Decrease font size
Home
Home Starter Kit
Starter Kit

BeagleBone Black Getting Started

The BeagleBone Black at $45 is one the of the more exciting things I have picked up in that price range.  Every cool new feature is like a present all in itself.  Adafruit included a nice Quick start insert that worked perfectly and got me going in mere minutes.  It is even better than the online getting started guide (http://beagleboard.org/Getting+Started)... odd, but it is much simpler.  Since I could not find it on the web, I am reproducing here:

Tethered to a PC:

 

  1. Connect the USB min cable (B) to BeagleBone Black (cable included with purchase from Adafruit)
  2. Connect the other end of the USB cable to the PC (in my case Ubuntu Linux PC)
  3. Look for a new mass storage drive to appear on the PC
  4. Open the drive and click on START.htm (I did open with chrome)
  5. Follow the instructions on the PC ( this was a really nice feature bringing up the html docs - kudos) 

 

This worked great, the only odd thing was when I tried to use the GateOne ssh client in the browser.  It gave me nothing, but a black screen.  No big deal.  I then just brought up a terminal on my PC and ssh into the machine via root with empty password

$ ssh This e-mail address is being protected from spambots. You need JavaScript enabled to view it .7.2 

 and bam we have a terminal - just beautiful.

Standalone with a keyboard, mouse and monitor

My only quibble here was the hdmi port is way to close to the USB port which made it difficult to use some usb hubs.
*  Ok one more - those blue lights are BRIGHT!!!! 

  1. Connect a keyboard and mouse to the USB host port 
  2. Connect an HDMI cable to the board
  3. Connect the HDMI cable to an HDMI monitor (sadly I only have 1)
  4. Plug in a 5V 1A DC power supply (The 2A adafruit one worked great and recommend if you want wifi)
  5. Board will boot.  No need to enter any passwords (wait 10 seconds or so if switching input on monitor)
  6. Desktop will appear on the monitor
The only odd issue was when I plugged in the wifi module it crashed the usb port and I had to reboot the board.  Just make sure it is plugged in first before booting the beaglebone black.
 
First Steps
 
I really want to be wireless, but the instructions have you doing updates first.  Follow here,  http://learn.adafruit.com/beaglebone/ethernet
 
Next I plugged in ethernet cable and checking a ping to google.  Sweet packets returned.
 
Wifi Setup
 
Now we follow the wifi setup here, http://learn.adafruit.com/beaglebone/wifi
 
1)  opkg update
2)  mkdir /home/root/tmp
3) opkg -t /home/root/tmp upgrade  
4) 
opkg list 'linux-firmware-rt*'

* This prevented me from booting the BBB so something went wrong and I had to reload the image through the SD card - about 45 minutes :(  Anyway will try again later.

AX-12 Dynamixel motors 

This was surprisingly easy as the Linux kernel detected the usb2ax and we tested the Dynamixel Linux sdk and using the given example we were off and running moving the motor and reading the positions!  The usb2ax is really nice since it is soooo small.

http://www.youtube.com/watch?v=O_EMc5umdDw&feature=youtu.be

 

 

 

Random lego mindstorm install for nqc-3.1.r6.  

 So nqc needed a small modification to build from source, edit  compiler/lexer.cpp and add this to top of file

 #include <unistd.h>

 this fixes the error about:   undefined reference to `isatty(int)'

Interfacing with Hardware, GPIO, PWM, etc.

http://www.phys-x.org/rbots/index.php?option=com_content&view=category&id=46:beaglebone-black&layout=blog&Itemid=81&layout=default 

 

Lesson 5 - Play Melody with Piezo

For lesson 5 we delve into making sound using the cheap and easy piezo speaker.  This one is the easiest circuit of them all, however you need to be up on musical theory to unlock the full potential.  Follow the Arduino example here:

http://www.arduino.cc/en/Tutorial/PlayMelody

we modified this example to play the star wars theme song (just uncomment the melody in the code you want to play)

http://code.google.com/p/rbots/source/browse/trunk/StarterKit/Lesson5_PiezoPlayMelody/Lesson5_PiezoPlayMelody.pde

 

starwarsthemepiezo.mp4 


JavaScript is disabled!
To display this content, you need a JavaScript capable browser.



Super Mario theme

 

supermariothemepiezo.mp4

JavaScript is disabled!
To display this content, you need a JavaScript capable browser.

 

Find your own melodies and experiment, some melodies can be found here

http://www.musipedia.org

the note frequencies/periods can be found here

http://www.zytrax.com/tech/audio/audio.html

 Finally, you can turn the piezo into a not so great knock sensor

 http://www.arduino.cc/en/Tutorial/Knock

 

knocksensorpiezo.mp4 


JavaScript is disabled!
To display this content, you need a JavaScript capable browser.

 

Parts List:

piezo

 

 

 

Lesson 4 - Potentiometer A2D

This lesson is to get you using the analog to digital converter on the ATMega328.  A must read for background information is a guide from parallax (page 41)

http://www.parallax.com/dl/docs/books/edu/BAADv1.3.pdf

The code for this example can be found here

http://www.arduino.cc/en/Tutorial/Potentiometer

If you just finished lesson 3, you can improvise and change the speed of the cylon eyes based on the potentiometer reading.  Ion executed this example nicely, code can be found on our google code page here

 http://code.google.com/p/rbots/source/browse/trunk/StarterKit/Lesson4_Potentiometer2CylonEyes/Lesson4_Potentiometer2CylonEyes.pde

 

pota2dcyloneyes.mp4


JavaScript is disabled!
To display this content, you need a JavaScript capable browser.
   

 

Parts List:

10k potentiometer

 

 

Lesson 3 - Cylon Eyes

In lesson 2 we setup the ATMega328 on the breadboard and blinked a single LED using a digital pin.  For lesson 3 we will hook up 5 LEDs to 5 digital pins to learn about using a for loop in software.  Connect the LEDs to digital pins 2,3,4,5,6 like they do in this example.

Parts List:

LED (x5)
220 ohm resistor (x5)

 

 

Lesson 2 - ATMega328

The R-TEAM Robotics club chose the ATMega328 as its standard mostly because of the great open source tools and community built around the Arduino, which utilizes this microcontroller.   An added bonus is the freely available AVR Studio from Atmel.  The goal of this lesson is to give you a functioning breadboarded ATMega328 that you can load Arduino code onto and then blink an LED.

It is important for you to get some background reading done on microcontrollers, especially if you have never used one before.  I would recommend the following  articles and then make liberal use of google to fill in the rest.

Sparkfun Embedded Electronics tutorials 
What is a Microcontroller?
Arduino Examples
Introduction to Microcontrollers 

Cable Info:

FTDI Cable 5V - USB - Sparkfun
RS232 to TTL - Serial - Acroname
FTDI Basic Breakout - 5V - USB - Sparkfun

Circuit:

It is the same schematic as in lesson 1. 

ATMega328 Minimal breadboard

 

Handouts:

circuit diagram
LED information
ATMega168/328 pin mapping
7805 datasheet
burning the bootloader for Arduino

Parts List:

Atmega 328
16 Mhz Crystal
220 ohm resistor
10 K resistor
22 pF capacitor (x2)
reset button
0.1 uF capacitor (optional for auto reset)

 

 

 

 

 

 

 
More Articles...
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »


Page 1 of 2

Newsflash

The one thing about a website, it always changes! Joomla! makes it easy to add article, content, images, videos and more. Site administrators can edit and manage content 'in-context' by clicking the 'edit' link. Webmasters can also edit content though a graphical administration panel that give you complete control over your site.