Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am wisewolf on github.
* I am wisewolf (https://keybase.io/wisewolf) on keybase.
* I have a public key ASDSnYzVo9OUUGkbUtElW0zgZ_M3gmNQ1JT5IEeVJS746Qo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am wisewolf on github.
  • I am wisewolf (https://keybase.io/wisewolf) on keybase.
  • I have a public key ASD0bW74L5NTkqQdKDOTKJxYO4jFz9twdYruAi17gwy_QAo

To claim this, I am signing this object:

@wisewolf
wisewolf / DHT11-to-Emoncms.ino
Created June 15, 2016 20:34
DHT11 to EmonCMS
#include <Arduino.h>
#include <ESP8266WiFi.h>
extern "C" {
#include "user_interface.h"
}
#include <WiFiClientSecure.h>
#include "DHT.h"
// Display LCD 16x2 e modulo I2C
// I2C Address: 0x27 or 0x3F
// SDA -> A4
// SCL -> A5
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Inicializa o display no endereco 0x27
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE);
@wisewolf
wisewolf / max471.ino
Last active June 9, 2016 09:17
Max471 Voltage/Current Sensor
/*
MAX471
*/
long milisec = millis(); // calculate time in milliseconds
long time = milisec/1000; // convert milliseconds to seconds
const int max471VT = A0;
const int max471AT = A1;
/*
Example code to get a MCP3*08 running with an ESP8266
for DiY energy monitoring solutions
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include "MCP3208.h"
const char* ssid = "...";
const char* host = "...";