When I saw what he could do a ESP8266, I wanted to build a small weather station.
This is the evolution of my weather clock.Set the ESP8266-01Connect the ESP
Connect the ESP to Arduino following the pattern in the figure, be sure to fuel the ESP with a voltage of 3.3 volts using a voltage regulator (I used an LM317) powered by an external source, because needs a lot of energy that Arduino can not give.Upload to Arduino
Upload to Arduino / Genuino the code: https://create.arduino.cc/editor/Tittiamo/7e4b0e1b-ffd9-4ab7-b007-8c24c063c152/preview, open the serial monitor and give the command "AT" followed by ENTER, if nothing appears you need to set the speed of the serial monitor, make several attempts until you see "OK".Search WiFi
Now type the command "AT+CWMODE=1" to set the ESP as "Client". Give the command "AT+CWLAP" to see which WiFi networks are nearby, with the command "AT+CWJAP="SSID","password" " you connect the ESP to your WiFi network. To check if it is well connected, type "AT+CIFSR". Now that the ESP8266 has been set, you can switch to connect other components.PrototypingMore Connections
Connect the rest of the components following the Fritzing scheme.
Record a "thingspeak" account and create a new channel, give it a name and description.
- Field 1: Temperature
- Field 2: Humidity
- Field 3: Pressure
Save and open the API Keys tab, and store the "api_key reading".
Load the code in Arduino, replace the line 35 with your api_key, in line 26, replace the altitude with that of your location, load the design, and enjoy the card's results: "Private View" into Thingspeak.
If you want to publish your channel, go to settings and give the flag to "make public".Arduino CodeAssemblingTesting
In order to replicate the work, I have attached the designs made in Excel. As container I used a metal box I had at home, the DHT sensor was put externally to box while the BMP inside.
To feed the weather station I used an old telephone charger.My Channel
Or visit my site in: