Difference between revisions of "Micro Weather Station"
Jump to navigation
Jump to search
Line 47: | Line 47: | ||
== Load Weather Station software == | == Load Weather Station software == | ||
+ | First download and install these two libraries | ||
+ | |||
+ | 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. | ||
+ | |||
+ | 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. | ||
= Resources and Links = | = Resources and Links = |
Revision as of 21:42, 25 February 2020
Contents
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)
- https://docs.wemos.cc/en/latest/d1/index.html
- You can buy them on Ali Express (takes about 3 weeks) or Amazon (2 days)
- programmable with Arduino or microPython. We will be using Arduino
- OLED Display 1.3"
- very common display that can be found on Amazon, eBay or Ali Express
- uses SH1106 chip so you have to use SH1106 library in your code
- I2C serial connection
- pinout is VCC, GND, SCL, SDA
- example but you can get cheaper: https://www.amazon.com/HiLetgo-Serial-SSH1106-Display-Arduino/dp/B01MRR4LVE/ref=pd_sbs_147_t_0/139-4905825-1461144
- you can also use a 0.96" screen but that one uses a different chip for the driver so you have to set your code to use the SSD1306. If your screen lights up but screen is garbled then this is the case.
- 3d Printed Enclosure
- search for "D1 Mini 1.3" on Thingiverse
- https://www.thingiverse.com/thing:2934049
- https://www.thingiverse.com/thing:3044478
- Misc
- Dupont wires - these push onto the header pins.
- Solder
- assorted 2mm self taping screws
- hot glue
- donuts and coffee
Instructions
Setup the Wemos D1 mini for the Arduino
- good tutorial here https://averagemaker.com/2018/03/wemos-d1-mini-setup.html
- overview
- install ch340 serial usb drivers
- 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
- Set the board in Arduino
- Get the blink example working
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
Load Weather Station software
First download and install these two libraries
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.
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.