Difference between revisions of "Micro Weather Station"

From LVL1
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 34: Line 34:
 
= Instructions =
 
= Instructions =
 
== Setup the Wemos D1 mini for the Arduino ==
 
== Setup the Wemos D1 mini for the Arduino ==
** good tutorial here https://averagemaker.com/2018/03/wemos-d1-mini-setup.html
+
* good tutorial here https://averagemaker.com/2018/03/wemos-d1-mini-setup.html
** overview
+
* overview
*** install ch340 serial usb drivers
+
** install ch340 serial usb drivers
*** install Arduino IDE - not the web version
+
** install Arduino IDE - not the web version
*** Add the json string to the board manager URLs in file->preferences http://arduino.esp8266.com/stable/package_esp8266com_index.json
+
** Add the json string to the board manager URLs in file->preferences http://arduino.esp8266.com/stable/package_esp8266com_index.json
*** Set the board in Arduino
+
** Set the board in Arduino
*** Get the blink example working
+
** Get the blink example working
  
 
== hook up the screen ==
 
== hook up the screen ==
 
* Solder dupont headers to 5V, Gnd, D3 and D4 on the Wemos D1 Mini
 
* Solder dupont headers to 5V, Gnd, D3 and D4 on the Wemos D1 Mini
 
* connect the other end of dupont headers to oled screen
 
* connect the other end of dupont headers to oled screen
 +
* see the below pics to see where the wires are soldered.
 +
 +
https://photos.google.com/photo/AF1QipOGQOS6dypO040hpkg5JxpgiVx4hfn3O9EkiXW5
 +
 +
https://photos.google.com/photo/AF1QipNhJHZNDAGd6mUlpzu_d7v162e096tIUPb5aiYb
  
 
== Load Weather Station software ==
 
== Load Weather Station software ==
First download and install these two libraries
 
  
https://github.com/ThingPulse/esp8266-oled-ssd1306
+
20889a71fc890355a9adf0d7d0c0d611
 +
 
 +
 
 +
1. First download and install these two libraries
  
https://github.com/ThingPulse/esp8266-weather-station
+
* https://github.com/ThingPulse/esp8266-oled-ssd1306
 +
 
 +
* https://github.com/ThingPulse/esp8266-weather-station
  
 
You do this by clicking the green button on the above web pages and click the GREEN 'Clone or Download' button and download the zip files for both.
 
You do this by clicking the green button on the above web pages and click the GREEN 'Clone or Download' button and download the zip files for both.
  
Next install these libraries into the Arduino Software
+
2. Next install these libraries into the Arduino Software
Sketch->Include Library->Add .Zip library... then choose the zip file you previously downloaded and install.
 
 
 
Now open the Weather Station Demo code...
 
File->Examples->ESP8266 Weather Station->Weather Station Demo
 
  
Now you will see the Weather Station Demo code and you will need to replace it with the code here [[WeatherStationDemoCode]] . Copy and paste all of it.
+
* Sketch->Include Library->Add .Zip library... then choose the zip file you previously downloaded and install.
  
Modify the WIFI settings needed for home and work
+
3. Now open the Weather Station Demo code...
  
At this point you should be able to upload your code to the D1 Mini board and enjoy the weather
+
* File->Examples->ESP8266 Weather Station->Weather Station Demo
  
= Resources and Links =
+
4. Now you will see the Weather Station Demo code and you will need to replace it with the code here [[WeatherStationDemoCode]] . Copy and paste all of it.
  
 +
* Modify the WIFI settings needed for home and work
  
 +
* Follow this link to get an OpenWeatherMap API key: https://docs.thingpulse.com/how-tos/openweathermap-key/
  
 +
* Copy and paste code into the weatherstation code
  
= Code =
+
5. At this point you should be able to upload your code to the D1 Mini board and enjoy the weather

Latest revision as of 13:44, 29 February 2020

Micro Weather Station

  • Hosts: Brian and Andy
  • 2/29/20
  • Build a Micro Weather Station using a Wemos D1 Mini, 1.3" OLED display, 3D Printed enclosure

Materials

  • Wemos D1 Mini 4M (Not the lite version with 1M)

Instructions

Setup the Wemos D1 mini for the Arduino

hook up the screen

  • Solder dupont headers to 5V, Gnd, D3 and D4 on the Wemos D1 Mini
  • connect the other end of dupont headers to oled screen
  • see the below pics to see where the wires are soldered.

https://photos.google.com/photo/AF1QipOGQOS6dypO040hpkg5JxpgiVx4hfn3O9EkiXW5

https://photos.google.com/photo/AF1QipNhJHZNDAGd6mUlpzu_d7v162e096tIUPb5aiYb

Load Weather Station software

20889a71fc890355a9adf0d7d0c0d611


1. First download and install these two libraries

You do this by clicking the green button on the above web pages and click the GREEN 'Clone or Download' button and download the zip files for both.

2. Next install these libraries into the Arduino Software

  • Sketch->Include Library->Add .Zip library... then choose the zip file you previously downloaded and install.

3. Now open the Weather Station Demo code...

  • File->Examples->ESP8266 Weather Station->Weather Station Demo

4. Now you will see the Weather Station Demo code and you will need to replace it with the code here WeatherStationDemoCode . Copy and paste all of it.

  • Modify the WIFI settings needed for home and work
  • Copy and paste code into the weatherstation code

5. At this point you should be able to upload your code to the D1 Mini board and enjoy the weather