I wanted to design a small weather station and use it for tracking for long periods of time the outdoor weather variables automatically and recording into a spreadsheet. It was really just for fun, to understand how is the behavior of these weather factors in my county and at home. My county has very good condition for farmers and produce vegetables and others green food. In excess. To sell food for our main city.
Step 1Connect ESP8266 with Arduino and upload the code from IDE.
Using the serial port upload the code directly to the ESP8266 module. Remember that once you do this the original firmware is erased. If you want the original firmware again in your ESP8266 you will need a long process to do that. Check this video which can give you a shortcut about it.
Step 3Connect DHT22 sensor:
Check your communication with the Thingspeak channel you previously had configured:
These are mandatory code lines to communicate with your channel:
#include <ThingSpeak.h>
unsigned long myChannelNumber = 167x1x;
const char * myWriteAPIKey = "VXXXXV86RWRXX9Y";
ThingSpeak.writeField(myChannelNumber, 1, h, myWriteAPIKey);
delay(20000);
ThingSpeak.writeField(myChannelNumber, 2, t, myWriteAPIKey);
delay(20000);
Step 5Remember your ESP8266 needs a big amount of current, so a cause of failure is that you need to feed it from your PC USB port and from an external power source.
If you can record 8 fields in a channel please start to thinking what other weather sensors you can add to your station - barometric pressure? Maybe!
Comments