multi-series.html

A basic graphing function in D3.js. There are many paths in here to change: the path to D3.js, the path too the csv log file, and the path to a notes file, which is a CSV file in format of "time,note", such as:

20:21:12 11 8 2016,end 48 hour burn-in
17:28:54 12 8 2016,mystery power outage

D3 will overlay a dashed vertical line accompanied by the note text for each time where we have a note.

One may also adjust the width/height of the overall image.

HyperText Markup Language (HTML) - 4.58 kB - 03/24/2017 at 15:07

Download

csver

This is a basic shell script that accepts a single argument (your logged serial session) and converts it to CSV. I like to have logs stored in a format that is produced by the sketch (since it contains all the information), and then convert to CSV only when necessary for further operations.

csver - 428.00 bytes - 03/24/2017 at 15:05

Download

sketch.ino

The sketch running on the Arduino Nano for polling the 8 sensors. This sketch prints something like:

0:11:48 15 1 2017: A0: 159, A1: 204, A2: 193, A3: 346, A4: 365, A5: 336, A6: 179, A7: 194, Temp: 21.88, DBTemp: 22.00

every 30 seconds. To keep a log of this output, I'll make a serial connection to the Nano and keep a log of that via `screen -L /dev/ttyUSB0` or something similar.

ino - 3.44 kB - 03/24/2017 at 15:02

Download