This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Logs processor temperature to Blynk | |
coretemp=$(vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*') | |
# echo $temp | |
curl -f http://blynk-cloud.com/AUTH-TOKEN/update/VPIN?value=$coretemp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space | |
#include <BlynkSimpleEsp8266.h> | |
const char* auth = "fromBlynkApp"; | |
const char* ssid = "ssid"; | |
const char* pw = "pw"; | |
#define IN1 5 // Motor board brown to WeMos pin D1 | |
#define IN2 4 // Motor board red to WeMos pin D2 | |
#define IN3 14 // Motor board orange to WeMos pin D5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SimpleTimer.h> | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
extern "C" { | |
uint16 readvdd33(void); | |
} | |
const char* ssid = "ssid"; | |
const char* password = "pw"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SimpleTimer.h> | |
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space | |
#include <BlynkSimpleEsp8266.h> | |
extern "C" { | |
uint16 readvdd33(void); | |
} | |
char auth[] = "fromBlynkApp"; | |
const char* ssid = "ssid"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SimpleTimer.h> | |
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space | |
#include <BlynkSimpleEsp8266.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 2 // This is the ESP8266 pin | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SimpleTimer.h> // Allows us to call functions without putting them in loop() | |
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space | |
#include <BlynkSimpleEsp8266.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 2 // Your ESP8266 pin (ESP8266 GPIO 2 = WeMos D1 Mini pin D4) | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// FILE: oneWireSearch.ino | |
// AUTHOR: Rob Tillaart | |
// VERSION: 0.1.02 | |
// PURPOSE: scan for 1-Wire devices + code snippet generator | |
// DATE: 2015-june-30 | |
// URL: http://forum.arduino.cc/index.php?topic=333923 | |
// | |
// inspired by http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html | |
// |