BeagleBoard Setup


	Installing OS (I used Ubuntu):
	 	
	 	https://learn.adafruit.com/beaglebone-black-installing-operating-systems/flashing-the-beaglebone-black

	Internet through USB:

		BOARD:
		/sbin/route add default gw 192.168.7.1
		echo "nameserver 8.8.8.8" >> /etc/resolv.conf
		ntpdate pool.ntp.org

		HOST:
		sudo iptables -A POSTROUTING -t nat -j MASQUERADE
		echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null

	Load Capes:

		The IO ports aren't all enabled by default

		download ttyON_armhf.com from http://www.armhf.com/beaglebone-black-serial-uart-device-tree-overlays-for-ubuntu-and-debian-wheezy-tty01-tty02-tty04-tty05-dtbo-files/
		copy using an ftp client, i used gftp
		sudo su -c "echo ttyO1_armhf.com > /sys/devices/bone_capemgr*/slots"

	Disable HDMI in order to use UART5:

		add to /boot/uEnv.txt -> optargs=quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN


	Make Init script:

		nano init.sh
		copy internet through usb code and cape load code into it
		make runnable with chmod a+x init.sh
		run everytime you start up the board ( i didnt dig into figuring out how to make this a "true" initialization script, i.e. that runs automatically on boot, but that would be preferred to the current setup)

	Install Adafruit Python IO library:

		https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/overview
		This tutorial should shed enough light on how to connect the sensors through serial and interface with them from the Beagle Bone Black