henry pai
  • home
  • interests
  • publications
  • links
  • sandbox

arduino data logger + vaisala + some code

5/16/2017

1 Comment

 
so, in search of a small, cheap mobile data logger, i came across the arduino-based logger (Mayfly by the Stroud Water Center engineers).  At about $60 when available, this is a little pricier than normal arduino builds (Cave Pearl project, Adafruit logger shield + controller, Seeeduino Stalker- weird name) or roughly comparable (Sodaq MBilli).  But with the hope of less soldering, real time clock with low drift, SDI-12 communications capability, LiPo single cell charge controller, and expandable/replaceable memory (via SD card), the specs were nice.  Compared with Campbell CR300 price point ($600'ish) and unknown snow/enclosure crushing conditions, the Mayfly logger board becomes a good test platform for rugged conditions without destroying more robust logging platforms.  And due to its size, it can be placed in a smaller enclosure higher up so it doesn't become quite the wind mast.

Attached is code for a Vaisala WXT 530 series weather station (user-defined composite SDI-12 message).  This code, logger, and sensor ran about a week logging @ 5 min intervals in office conditions.

To be done: set up radio/cellular telemetry, but currently the site is a bit power-constrained.
vaisala_mayfly_sleep.ino
File Size: 8 kb
File Type: ino
Download File

1 Comment

arduino CO2 logger

4/10/2015

0 Comments

 
Oi, took a bit.  We need a better soldering iron ;-).  Many thanks to Dr. Diego Dierick for the specs, diagrams, and code.
Picture
0 Comments

updating btsync on rpi

2/19/2015

0 Comments

 
Quick update (2017-Mar)-Thing have gotten a lot easier for btsync (now resilio sync) on rpi (raspbian OS version: jessie): https://www.resilio.com/blog/official-linux-packages-for-sync-now-available

Additional info:
  • I had some issues with old rpi (1 i believe).  The Raspbian cpu architecture, default OS, and the sync installation had compatibility issues.  Resolved by upgrading to rpi3.
  • Added feature to boot to and run OS from external (still needs SD card initially, but perhaps less possibility of SD card corruption).  Instructions: https://learn.adafruit.com/external-drive-as-raspberry-pi-root?view=all. 
    • Install order: Raspbian Lite, change keyboard assignment to US, Pixel desktop environment, Adafruit (install Adafruit helper outside of desktop environment), Chromium browser, Resilio Sync.
0 Comments

blog test... and changing CE-QUALW2 output to table form

2/14/2015

0 Comments

 
Not sure if posting code is better in blog or just a normal page form.

Python (2.7.8) script
User vars: gaging station identifier, pool depth, output parameter (U, W, T, etc.)
Input data: CE-QUALW2 model output file, snp1.opt, that is non-tabular
Output data: csv of output parameter data similar to spr1.opt

snp_output_parser01.py
File Size: 12 kb
File Type: py
Download File

0 Comments

    small projects...

    that may be useful to folks other than just myself.

    Archives

    May 2017
    April 2015
    February 2015

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.