Skip to content

Instantly share code, notes, and snippets.

@mattiarossi
mattiarossi / emonTx_CT123_Voltage_pump_id11_i2c.ino
Created August 26, 2013 09:51
emonTx firmware, three CT sensors, one temperature, retrieves data from I2C and forwards it to emonBase
#include <DallasTemperature.h>
#include <OneWire.h>
#include <JeeLib.h>
#include <Ports.h>
#include <PortsBMP085.h>
#include <PortsLCD.h>
#include <PortsSHT11.h>
#include <RF12.h>
#include <RF12sio.h>
@mattiarossi
mattiarossi / rboard_01
Last active December 20, 2015 08:49
Arduino Rboard Code to drive two sump pumps
#include <Wire.h>
long pumpLatency = 5000;
long pump2Delay = 60000; // Time (in millis) to delay pump2 activation
long sw1Delay = 180000; // Time after which to enable pumps even if sw2 is not active
// Don't want water to rest there unnecessarily
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int R0 = 4;