EBC Mini Project 04

From eLinux.org
Revision as of 19:18, 9 October 2012 by Popenhjc (Talk | contribs)

Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder

Due: 22-Oct-2012

This mini project is a follow up on the sensor mini project. The goal here is to add a web-based graphical display to your sensor. In exercises/node.js/realtime you will find two examples of node.js servers that display realtime data from the beagle.

buttonBox.js, buttonBox.html
This is a bone-based example that reads a gpio port, analog in and an i2c device and displays the output in a web browser.
realtimeDemo.js, realtimeDemo.html
This is an xM-based example that reads realtime audio and displays it.

Modify one of these to work with your sensor. If you interfaced a display, modify to control your display. I'll leave it open to how you will do it.

My buttonBox.js uses a very crude approach to i2c. I just call i2cget every time I want a value. There is lots of overhead in running i2cget each time. If you are using an i2c device, modify myi2cget.c (in exercises/i2c) to return the current value from your device every time the user hits return. Use this with your version of buttonBox.js to read your i2c device.

thumb‎ Embedded Linux Class by Mark A. Yoder