BeagleBone
Contents
Setup
- a lot of good setup stuff here: http://www.gigamegablog.com/2012/01/29/beaglebone-linux-101-configuring-angstrom-linux/
Debugging
TTL Cable
- Install USB drivers
- for os x - http://sourceforge.net/projects/osx-pl2303/
- Connect pins like so:
(RED IS NOT CONNECTED)
- From Terminal, start session:
screen /dev/cu.usbserial 115200
- http://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/test-and-configure
ssh not working
Hardware
Serial Communication
Ubuntu
- use wget to fetch setup tools:
- install setuptools:
sudo sh setuptools-0.6c11-py2.7.egg
- install pyserial:
sudo easy_install pyserial
Angstrom
- update opkg:
opkg update
- install pyserial:
opkg install python-pyserial
Pockesphinx
- https://groups.google.com/forum/?fromgroups=#!topic/beagleboard/aBznzq_bNuU
- Install libasound2, alsa-dev, and alsa-lib-dev. (libasound and alsa-lib-dev were already installed on my beaglebone black):
opkg install alsa-dev
- Get sphinxbase and pocketsphinx, preferrably putting them in a code directory:
- Unzip:
tar -xzf sphinxbase-0.8.tar.gz
tar -xzf pocketsphinx-0.8.tar.gz
- Generate configuration files. Configrue without python. In the sphinxbase-0.8 directory:
./autogen.sh --without-python
Audio
- purchase usb sound card.
- connect stereo microphone.
- arecord:
arecord -D sysdefault -t wav -c 2 -r 44100 -f S16_LE -v binaural2.wav
- play:
aplay binaural2.wav
- use the ALSA mixer to set recording levels, output levels, etc.
alsamixer
Debian
Installing Ubuntu
- The instructions below are written for linux. I installed from a Ubuntu live USB drive (Ubuntu 13) on my macbook pro (os x 10.8).
- Once you are booted in ubuntu on your non-beagleboard system, follow instructions here:
- there will probably be missing packages
- you may need to add universe to package repository to get those missing packages:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
- list disks:
diskutil list
Curses
- install python-curses:
opkg install python-curses
Other
- video on C++ programming with Beaglebone - http://www.youtube.com/watch?feature=endscreen&NR=1&v=vFv_-ykLppo
- Contest. Win 2 free beagleboards - http://elinux.org/BeagleBoard/contest