Skip to content

Instantly share code, notes, and snippets.

@phec
phec / EmonLib.cpp
Created December 30, 2015 16:13
Updated particle.io version of emonLib (photon compatible and with waveform saved)
/*
Emon.cpp - Library for openenergymonitor
Created by Trystan Lea, April 27 2010
GNU GPL
modified to use up to 12 bits ADC resolution (ex. Arduino Due)
by boredman@boredomprojects.net 26.12.2013
Low Pass filter for offset removal replaces HP filter 1/1/2015 - RW
Save waveform and adapt for Particle Core/Photon 6/9/15 PHEC
*/
@phec
phec / beeMonitorBlackuFL14.py
Last active August 29, 2015 14:05
Beehive Monitor
#!/usr/bin/python
# Beehive monitor v1.4BlackuFL
# host 192.168.105
# socket 5208
#save 16 spectra to average noise
#make time format excel compatible
#save raw and fft data in separate daily files v1.31
#save sample averages
#save backups as csv
#filter out spikes in raw data
@phec
phec / SemonLib20.cpp
Last active January 31, 2017 23:21
Port of Open Energy Monitor emonlib to Spark SemonLib.cpp
/*
Spark port of emonlib - Library for the open energy monitor
Original Created by Trystan Lea, April 27 2010
GNU GPL
Modified to suit Spark Core 10 Feb 2014 Peter Cowley
***********************
Changes made:
1) ADC range changed from 1023 to 4095
2) long EnergyMonitor::readVcc() deleted and calls replaced by 3300