Applications

This is where I am posting code with a variety of applications using the code from the libraries. These range from reading a sensor to communicating to the cloud, and are meant as demonstrations to help people learn to use the library functions with specific sensors. Each application will have a basic description as well as information regarding how to connect the sensors. Then there will be link to the code to build the project. Simply download or svn the code to your board, run make, and run the code. If there are any other dependencies or notes they will be under each application.

CLOUD Applications
This applications reads in a NTC thermistor and converts the resistance measurement to a temperature value. Then a buffer is packed with a timestamp in a form that automatically is received in python as a dictionary type. This packet is then sent using TCP sockets to a VM residing on the Cloud. This is an example of character streaming sensor data to the cloud.  The files are Cloud_TempApp.tar or Cloud_TempApp.zip.

CODE:  TAR ZIP

GPS Application
This applications reads in the data from a GPS module through a UART connection at 4800 Baud. Once it collects an entire NEMA string, it checks the checksum for valid data. If that passes the string gets sent to the parsing function which strips the values of interest and fills the GPSDATA structure. This process continues until it receives the RMC, GGA, GSV, and GSA strings are received. From the main application, it continually reads the GPSDATA structure and displays it on the console.

CODE:  TAR ZIP

LCD Application
This application demonstrates the 4-bit LCD interface and controller. It emulates a terminal console by allowing you to type characters and when you press enter they are displayed on the screen. Some number keys have also been mapped to other controller functions like backspace, move cursor, clear screen, and home.

CODE: TAR ZIP

PANORAMIC Application
This application is a work in progress still…check back because this one will be cool!

RTC Application
This application read an I2C Real Time Clock module. Specifically the part number is JeeLabs RP1. I have had problems with the backup battery not making a good connection and it resets the time and date information so fair warning before you buy this module. Basically the program reads in all the information and converts it from BCD to a string format. The string can then be used to timestamp data or set the time on the BeagleBone Black.

CODE: TAR ZIP

TEMPERATURE Application
This application is similar to the cloud application…minus the cloud. It reads the value of a thermistor into the onboard ADC and then displays the voltage and the converted temperature in Celsius and Fahrenheit.

CODE: TAR ZIP