Den bør funke jahttp://www.ebay.com/itm/8-Channel-I...285913?hash=item33a575b199:g:KpkAAOSw-vlVm2hx
Hva med denne @msevland? Vil ikke den kunne gjøre IO'ene brukbare igjen? Den finnes også såklart i andre størrelser
Den bør funke jahttp://www.ebay.com/itm/8-Channel-I...285913?hash=item33a575b199:g:KpkAAOSw-vlVm2hx
Hva med denne @msevland? Vil ikke den kunne gjøre IO'ene brukbare igjen? Den finnes også såklart i andre størrelser
Har mottatt mine Wemoser nå, men ikke faen om jeg får dem opp å gå! Får feilmeldingene
"error: setattr stage 1 failed
error: espcomm_open failed
error: espcomm_upload_mem failed"
uansett hva jeg prøver av innstillinger. Har fulgt guiden her: http://www.wemos.cc/Tutorial/get_started_in_arduino.html til punkt og prikke til ingen nytte, og Google hjelper meg særs lite. Noen idé om hva som har gått galt?
Strålende. Da blir neste prosjekt styring av et forvokst BIAB-bryggeri.Testet WeMos mot en SSR-25 DA (3-32VDC), og den fungerer som bare det
Jeg vet selvfølgelig ikke om jeg er i grenselandet for hva den kan drive, men som videoen viser, går dette fin-fint...
http://sevland.no/TempLogger/WeMos-D1mini/WeMos-SSR.MOV
ps... videoen kjører opp/ned i Firefox, men riktig når jeg bruker IE....
/*
Created by Miles Burton
Created by Morten G. Sevland - Bjørnheim Bryggeri - Website: sevland.no
External libraries: https://github.com/milesburton/Arduino-Temperature-Control-Library
*/
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <OneWire.h>
#include <DallasTemperature.h>
// Cloud definitions / Thingspeak API key ******
String apiKey = "9UPOYHCTXGR961PI"; // Insert your Write API Key from ThingSpeak.com
#define REPORT_INTERVAL 60 // in sec
#define ThingSpeak_CLOUD_PORT 80
const char* ThingSpeak_CLOUD_ADDRESS = "api.thingspeak.com";
// ****** DS18B20 and Temperature settings ******
#define ONE_WIRE_BUS 4 // DS18B20 pin to D2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature DS18B20_Sensors(&oneWire);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
//WiFiManager
//Local intialization. Once its business is done, there is no need to keep it around
WiFiManager wifiManager;
//reset settings - for testing
//wifiManager.resetSettings();
//sets timeout until configuration portal gets turned off
//useful to make it all retry or go to sleep
//in seconds
wifiManager.setTimeout(180);
//fetches ssid and pass and tries to connect
//if it does not connect it starts an access point with the specified name
//here "AutoConnectAP"
//and goes into a blocking loop awaiting configuration
if(!wifiManager.autoConnect("AutoConnectAP")) {
Serial.println("failed to connect and hit timeout");
delay(3000);
//reset and try again, or maybe put it to deep sleep
ESP.reset();
delay(5000);
}
//if you get here you have connected to the WiFi
Serial.println("connected...yeey :)");
}
void loop() {
WiFiClient client;
DS18B20_Sensors.requestTemperatures();
delay(100);
float temp;
temp = DS18B20_Sensors.getTempCByIndex(0);
// First check if connected, then send sensordata for the right number of devices
if (client.connect(ThingSpeak_CLOUD_ADDRESS,ThingSpeak_CLOUD_PORT)) {
String postStr = apiKey;
postStr +="&field1=";
postStr += String(temp);
postStr += "\r\n\r\n";
client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: "+apiKey+"\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);
Serial.println("");
Serial.print("Temp: ");
Serial.println(temp);
Serial.print("Send to Thingspeak");
}
client.stop();
// *********** Countdown *************
int cnt = (REPORT_INTERVAL);
while(cnt--)
delay(100);
}