Difference between revisions of "Open Source WIFI Weather Station System.(ESP8266 connected to Blynk)"
From Microduino Wiki
(→Principle of the Experiment) |
|||
Line 29: | Line 29: | ||
|[[Microduino-Sensorhub]] ||1||Sensor pin board | |[[Microduino-Sensorhub]] ||1||Sensor pin board | ||
|- | |- | ||
− | |[[Microduino- | + | |[[Microduino-Duo-h]] ||1||Extension board |
|- | |- | ||
|[[Microduino-OLED]] ||1||Display | |[[Microduino-OLED]] ||1||Display | ||
Line 74: | Line 74: | ||
*Adopt [[Microduino-Core+]] to analyze and process sensor data. | *Adopt [[Microduino-Core+]] to analyze and process sensor data. | ||
*Display on [[Microduino-OLED]] | *Display on [[Microduino-OLED]] | ||
− | *Connect the Weather Station with Blynk via [[Microduino- WIFI(ESP)]] | + | *Connect the Weather Station with Blynk via [[Microduino-WIFI(ESP)]] |
*Each sensor connects with [[Microduino-Sensorhub]] | *Each sensor connects with [[Microduino-Sensorhub]] | ||
[[File:Wifistationtheory.jpg||600px|center]] | [[File:Wifistationtheory.jpg||600px|center]] | ||
Line 173: | Line 173: | ||
*Step3 | *Step3 | ||
− | **Fixate [[Microduino-Duo- | + | **Fixate [[Microduino-Duo-h]] on '''Structure-A2''' with screws and nuts. |
− | **Stack the following modules on [[Microduino-Duo- | + | **Stack the following modules on [[Microduino-Duo-h]]. |
***[[Microduino-Core+]] | ***[[Microduino-Core+]] | ||
***[[Microduino-USBTTL]] | ***[[Microduino-USBTTL]] |
Revision as of 08:35, 28 March 2016
ContentsOutline
Instroduction:
Bill of MaterialMicroduino Equipment
Other Equipment
Principle of the ExperimentThis Weather Station can detect data including:
Get and Configure BlynkNext, we'll learn how Microduino interacts with Blynk through the configuration process of the Weather Station. Get Blynk Phone Client
Add Configuration Items
The corresponding code at the Microduino Client is: void senTempHumi() {
am2321.read();
float sensor_tem = am2321.temperature / 10.0;
float sensor_hum = am2321.humidity / 10.0;
Blynk.virtualWrite(V2, sensor_tem);
Blynk.virtualWrite(V3, sensor_hum);
oled(sensor_tem, sensor_hum, sensor_light, sensorPM25, Sensor_etoh);
}
The frequency of the timer can be achieved by codes below: void senTempHumi() {
SimpleTimer temHumtimer;
temHumtimer.setInterval(2000L, senTempHumi);
}
The corresponding code at the Microduino Client is: BLYNK_READ(V6) {
Blynk.virtualWrite(V6, sensorPM25);
}
The corresponding code at the Microduino Client is: BLYNK_READ(V4) {
sensor_light = map(analogRead(A0), 0, 1023, 0, 255);
Blynk.virtualWrite(V4, sensor_light);
}
The corresponding code at the Microduino Client is: BLYNK_READ(V5) {
Sensor_etoh= map(analogRead(A2), 0, 1023, 0, 30);
Blynk.virtualWrite(V5, Sensor_etoh);
}
Program DownloadWeather Station Code: ESP8266BlynkWeatherStation Programming
Hardware Buildup
Notes
|