<p>This project is my opinion on this popular weather station. </p><p>Mine is based on ESP8266,. </p><p>OLED display and BME280 <a href="https://www.rikasensor.com/ambient-sensor.html" rel="noopener noreferrer" target="_blank"><strong><u>environment sensor</u></strong></a> array. </p><p>The <a href="https://www.rikasensor.com/weather-station.html" rel="noopener noreferrer" target="_blank"><strong><u>weather station</u></strong></a> seems to be a very popular project. </p><p>Mine distinguishes itself from other sensors by using a BME280 sensor array instead of a popular DHT22 temperature and humidity sensor. </p><p>The BME280 has temperature, humidity and air pressure sensors. </p><p>It also uses the I2C interface. The . </p><p>The OLED display screen used is also I2C. </p><p>It can be purchased as I2C or SPI or both. </p><p>I used the I2C version to simplify wiring. </p><p>OLED display and BME280 using I2C and 3. </p><p>3V it is very easy to make a \"y\" cable to connect two devices to the esp8266. </p><p>When developing this project, I encountered multiple weather station projects using ESP8266, same OLED display and bme802 on the Internet. </p><p>So this is not an original idea, but an original realization. </p><p>The BME280 provides data on the internal environment. </p><p>Get external weather information from OpenWeatherMap. org. </p><p>You need to register with OpenWeatherMap. </p><p>Get the key for weather data. </p><p>I used the free service they provided. </p><p>For instructions on how to get the key, see the steps on how to get the OpenWeatherMap key. </p><p>NTP time server is used to get the time of day-of-the-week. </p><p>Weather, time, and environmental data are displayed on the OLED display. </p><p>Each message has its own formatting screen. </p><p>The screen will display for five seconds before switching to another screen. OpenWeatherMap. </p><p>Visit org every 15 minutes to refresh the weather information. </p><p>BME280 reads about every fifty minutes. five seconds. </p><p>Automatically adjust the font used on each screen to display all the information in the largest possible font. </p><p>The ESP8266 is also set as a web server. </p><p>All weather information is accessible via a browser on your phone, tablet. </p><p>One of the screens shown shows the IP address of the web server. </p><p>ESP8266 has a wide range of shapes and sizes. </p><p>I chose a GEEKCREIT DoIt ESP12E development kit v2. </p><p>This is fully compatible with the NodeMCU \"standard\" of the ESP8266 independent module. </p><p>It has an integrated 3. </p><p>3V regulator, methanol 40-as USB-to-</p><p>Serial Bridge and NodeMCU automaticreset circuit. </p><p>You are free to use any ESP8266-</p><p>You have 12 modules. </p><p>Please note that you may have to add 3. </p><p>3V regulator or other circuit to program. </p><p>I also built one with smart cloud esp8266. </p><p>It allows me to pack everything into a 1. 5 inch cube. </p><p>Disconnect the USB bridge board after programming. </p><p>I added a right angle head pin on 3. </p><p>There are 3v holes on the witty board. </p><p>The harness consists of two four pin shells, one two pin shells and two pin shells. </p><p>In the above photo, the plate inserted by the ESP8266 module is a board I developed for ESP8266 and esp32. </p><p>It will accept the narrow body ESP8266 board compatible with NodeMCU, the witty cloud ESP8266 board or ESP32 board of GEEKCREIT. </p><p>For ease of access, all available GPIO pins are broken down to the head. </p><p>I found that most boards do not have enough power and ground pins. </p><p>Every time you want to connect something, you need at least one ground pin and most of the time a pin is needed to power the device. </p><p>Each line of the GPIO pin is accompanied by 3. </p><p>3v supply pin and ground pin. </p><p>The layout I use is the same as the one used by the first robot, with power in the middle. </p><p>I love this layout because if you insert something back, you don\'t release the magic smoke. </p><p>The board has a few extra things, an infrared sensor, a button switch and a threecolor LED. </p><p>Jumpers can be used to connect to any of these features. </p><p>If you are interested in one of the ESPxx breakout boards, please contact me. </p><p>1-BME280 I2C Temperature, humidity and pressure sensor boardI purchased my product on Ebay for about $1 from China. </p><p>Free shipping 25. </p><p>Adafruit or Sparkfun1 is also available-. </p><p>96 \", 128x64, using SSD1306 driverI\'s I2C OLED display, purchased My from China for around $4 on Ebay. 00. Mine is white. </p><p>You can find the blue and white color of the yellow area on it. </p><p>Some are sold in the form of SPI and I2C. </p><p>You may need to move some resistors in order to select the I2C operation. </p><p>It is important that it uses the sd6306 driver chip. </p><p>Adafruit is also available. </p><p>1-NodeMCU ESP8266-</p><p>12 with methanol 40, you can use any ESP8266-</p><p>12 modules you want. </p><p>I prefer the one with methanol 40 USB-to-Serial bridge. </p><p>There was a bunch of not-real FTDI and SI bridge chips a few years ago, so I no longer trust anything but methanol 40. </p><p>2-DuPont 4 needles, 0. 1inch (2. 54mm)</p><p>Asphalt shell 2-DuPont 2 pin, 0. 1inch (2. 54mm)</p><p>22-DuPont female crimps</p><p>I bought mine on Ebay. </p><p>You can also use Molex or any brand you like. </p><p>You can choose the curl pin or IDC. </p><p>Be careful you bought the right pin for your shell. </p><p>They are not mashups. </p><p>You can also weld the wires to the board and eliminate the connectors. </p><p>You need a curl pin if you use a curl pin. </p><p>Don\'t try to curl with pliers. </p><p>It does not work. </p><p>1-5 V, 1A minimum wall power supply group. </p><p>These are cheap on Ebay. </p><p>Get one with any teammate using a micro USB connector or ESP8266 board. </p><p>You need eight more. </p><p>Connect everything together. </p><p>Or you can attach everything to a perf board. </p><p>It depends on you. </p><p>I have included a photo of building a weather station with a witty cloud esp8266. </p><p>A picture details where the right-angle head pin can be added to pick 3. 3V. </p><p>One of the two pin shells is replaced by two pin shells. Ground and 3. </p><p>A 3v wire is stuffed in a pin shell. </p><p>Follow this link to get the source code file from GitHub repository; ESP8266-Weather-Station. </p><p>The Zip folder or clone folder will have the WeatherStation folder containing the WeatherStation. ino and BME280. h. </p><p>These are source code files. </p><p>There are also several PDF files. </p><p>The information of the PDF file is basically the same as this structure. </p><p>Tried a lot of brand curlers and found Japanese engineer PA-21 or PA-</p><p>09 Best for DuPont male and female crimps. </p><p>On Ebay or Amazon. </p><p>Both methods are suitable for DuPont pins. The PA-</p><p>09 will also make pins for JST connectors commonly used on LiPo batteries. </p><p>Here is a link to the video of how to use the engineer crimpers of DuPont crimps; How to use PA-</p><p>21 tutorial tool SN recently used by weeerli crimpersinconstructors-</p><p>28B curlers with DuPont pins and housing. </p><p>You can watch it here. </p><p>Make a good DuPont sale</p><p>Curl every time! </p><p>Wiring harness is the key to this project. </p><p>It is a basic four wire cable. </p><p>Above is the picture of the harness I made. </p><p>The OLED display and the BME280 sensor array have the same pin output. </p><p>This means that the two four pin shells are the same after inserting the curled wire. </p><p>I made my harness with double curly wires in two pin shells attached to the ESP8266 board. </p><p>Instead, you can choose to fill the double-curled wire into one of the four pin shells to make it a daisy chain connection. </p><p>Either work. </p><p>I have found that when I use 28 ad hoc workgroup wires with a pinch pin, they tend to fall off. </p><p>To prevent this, what I did was to peel the end of the wire twice the normal length. </p><p>Twist the exposed wires together. </p><p>Then fold the twisted wire to double the thickness. </p><p>Now when I curl it, the wire is thick enough to hold it tightly. </p><p>Check your connection carefully. </p><p>If everything looks good then you can power on the ESP8266 board. </p><p>You need an API key to access OpenWeatherMap. </p><p>A website for getting current weather information. </p><p>The next few steps detail how to register using OpenWeatherMap. </p><p>Get the API key. </p><p>Please click on the link to OpenWeatherMap. org. </p><p>Click on the API near the top of the web page. </p><p>On the left, under current weather data, click the Subscribe button. </p><p>Click get API key and start in the free column. </p><p>Click the registration button under how to get the API key (APPID). </p><p>Fill in all the fields. </p><p>Upon completion, check the \"I agree to the terms of service and privacy policy\" checkbox. </p><p>Then click the Create Account button. </p><p>Check your email for messages from openweatermap. org. </p><p>The email will have your API key. </p><p>In order to get the current weather, you need to copy the API key to the source code of the weather station. </p><p>This OpenWeatherMap. </p><p>There are some restrictions on Org\'s free service. </p><p>Most importantly, you can\'t visit every ten minutes. </p><p>This should not be a problem because the weather will not change very quickly. </p><p>Other restrictions are related to the information available. </p><p>More detailed weather information will be provided for any paid subscription. </p><p>Program development is done using Arduino IDE Version 1. 8. 0. </p><p>You can download the latest Arduino IDE here; Arduino IDE. </p><p>The Arduino website has great guidance on how to install and use the IDE. </p><p>You can follow the instructions given in this link to install support for ESP8266 in the Arduino IDE: ESP8266 Addon to Arduino. </p><p>On the web page, click the clone or download button and select download Zip \". The ReadMe. </p><p>Md file has instructions on how to add ESP8266 support to the Arduino IDE. </p><p>This is a plain text file that you can open with any text editor. </p><p>The ESP8266 board has a variety of sizes, shapes and uses different USB-to-</p><p>Serial bridge chip. </p><p>I prefer the board using the methanol 40 bridge chip. </p><p>A few years ago, FTDI, SI and others were tired of cheap clones claiming to be part of them. </p><p>Chip makers have changed their driver code to use only their own real parts. </p><p>This caused a lot of frustration because people found USB-to-</p><p>The serial bridge no longer works. </p><p>Now, one day, I only stick to the USB based on methanol 40-to-</p><p>Avoid buying serial bridges for boards that may or may not work. </p><p>In any case, you need to find and install the correct driver for the bridge chip used on the motherboard. </p><p>This is a link to the official website of the methanol 40 driver; CH341SER_EXE. </p><p>The ESP8266 does not have dedicated I2C hardware. </p><p>All I2C drivers for ESP8266 are bit-basedbanging. </p><p>One of the better ESP8266 I2C libraries is the brzo _ I2C Library. </p><p>It was written in language for ESP8266 to make it as fast as possible. </p><p>The OLED display library I use uses the brzo _ i2c Library. </p><p>I added the code to access the BME280 sensor array using the brzo_i2c Library. </p><p>You can get the OLED library here: ESP8288-OLED-Library. </p><p>You can get the brzo_I2C library here: Brzo_I2C Library. </p><p>Both libraries need to be installed in the Arduino IDE. </p><p>Arduino website has instructions on how to install zip Library in IDE: how to install Zip Library. </p><p>Tip: after installing the ESP8266 motherboard package and library, turn off the Arduino IDE and re-open it. </p><p>This will ensure that ESP8266 boards and libraries are displayed in the IDE. </p><p>Open the Arduino IDE. </p><p>If you have not installed the ESP8266 plug-in, brzo _ i2c library, and OLED driver Library, install it now. </p><p>Click Tools on the menu bar at the top \". </p><p>Scroll down the drop-down menu to the location of Board. </p><p>Slide to the board manager drop-down menu and scroll down; \"NodeMCU 1. 0 (ESP-12E Module)\". </p><p>Click on it to select it. </p><p>Leave all other settings as default. </p><p>Click Tools on the menu bar at the top \". </p><p>Scroll down the drop-down menu to the location where the \"port\" is displayed. </p><p>Select the port that suits your computer. </p><p>If your port doesn\'t show up, either your motherboard isn\'t plugged in, or you don\'t have the driver to load the bridge chip, or the motherboard isn\'t plugged in when you open the Arduino IDE. </p><p>The easy fix is to turn off the Arduino IDE, plug in the motherboard, load any missing drivers and reinstall</p><p>Open the Arduino IDE. </p><p>You can use the download button above, or you can get the source code according to the link of GitHub; ESP8266-Weather-Station. </p><p>Document weather forecast. ino and BME280. </p><p>H needs to be in the same folder. </p><p>The folder name must match the name. ino file (without the . ino extension). </p><p>This is the requirement of Arduino. </p><p>Click \"file\" on the menu bar at the top \". </p><p>Click open \". </p><p>In the file open dialog box, find the weather station folder and select it. </p><p>You should see two labels, one for the weather station and one for the bme80. h. </p><p>If these two tabs are not available, the wrong folder is opened, or the two files are not downloaded, or they are not saved in the correct folder. Try again. </p><p>You need to edit the weather forecast station. </p><p>The Ino file adds the SSID and password for the WiFi network. </p><p>Look at the 62 lines below; </p><p>Replace \"your SSID\" with the SSID of the WiFi network \". </p><p>Replace \"password\" with the key of the WiFi network \". </p><p>You will also need to add your OpenWeatherMap key and the zip code of the place where you live. </p><p>Look at the following contents of line 66; </p><p>Replace \"your key\" with the key obtained from OpenWeatherMap \". org. </p><p>Replace \"your zip code, country\" with your zip code and country \". </p><p>The comma and your country should be behind your zip code (\"10001, us\"). </p><p>Next, you must set the time zone and enable/disable daylight (DST). </p><p>Look at the 85 lines below; </p><p>There is a set of definition statements that define the time offset for various time zones. </p><p>If your time zone is there, replace \"tz_east\" in the \"time zone\" definition \". </p><p>If your time zone is not listed, a time zone needs to be created. </p><p>The NTP server gives the time at Greenwich Mean Time. </p><p>You have to increase or decrease the number of hours (in seconds)</p><p>Arrive at local time. </p><p>Just copy one of the \"define TZ_XXX\" statements and change the name and number of seconds. </p><p>Then change \"tz_east\" to the new time zone. </p><p>You also have to decide whether to use Daylight or not. </p><p>To disable DST, replace \"1\" with \"0\" in the following line \"; </p><p>When enabled, DST will automatically advance or delay the time by one hour when appropriate. </p><p>Click on the circular right arrow icon below \"edit\" in the menu bar at the top. </p><p>This will compile the code and upload it to your motherboard. </p><p>If everything is compiled correctly and uploaded, the OLED display should light up after a few seconds and a connection message will appear. </p><p>The picture above is a web page provided by the weather station. </p><p>You can access it using a PC, mobile phone or tablet. </p><p>Just open the browser and enter the IP address of the weather station as the URL. </p><p>The IP address of the weather station is displayed on a screen of the weather station. </p><p>Click refresh page to update information. That is it. </p><p>You should have a working weather station now. </p><p>Your next step may be to design and make a case to accommodate your weather station. </p><p>Or you want to add a few more screens to show the cold, dew point, sunrise or sunset time, or a chart of the change in air pressure, or predict the weather with air pressure. </p><p>Enjoy yourself.</p>
products