Skip to content

project1 team3

Hai Li edited this page Oct 26, 2015 · 6 revisions

Project 1 - Team 3

Sensing, Actuation, and Data Visualization

Members and Responsibilities

  • Hai Li - Data Visualization
  • Keaton Brown - Hardware
  • Thomas Branyon - Interfaces and Networking

Hardware

Interfaces and Networking

The NUC and Teensy are linked together over Bluetooth using the Serial Service Profile. Every 250ms, the NUC server sends a request for data ("1", or ASCII value 49) to the Teensy. When the Teensy sees this, it responds with the IR reading, the pump rate, the flow rate, and the solenoid state (1=on, 0=off), in one line, separated by spaces and ending with a newline. This data is read in by the NUC server and stored into an SQLite database along with the current Unix timestamp and IP of the NUC hosting the program.

Data Visualization

The data visualization is realized with the help of Qt customPlot. The program is written in Qt and implemented at the central server. The central server will get data from five NUCs of different teams. The program will get data from the central database. It will plot three curves and a solenoid switch status in the interface for each distinct device.

  • Graph 1: The flow rate v.s. time.
  • Graph 2: The pump rate v.s. time.
  • Graph 3: The distance from the IR sensor v.s time.
  • Status: The solenoid switch status(on/off).

The code for data visualization can be found here