This is a am simple Weather station that is made of two pysical components:
I would want to assume you know how to add the board to your Arduino Board Manager. However, if that is not the case, kindly read through this wiki. To use these code the following, please do the follow.
- rename the config_.h to config.h
- fill in the content especially your wifi and password. You can leave the NTP parameter as is
- Install the following into your library if not already there(i.e. Sketch -> Include Libarary -> Manage Libraries).
- Seeed Arduino rpcWiFi (version: 1.0.5)
- Seeed Arduino rpcUnified (version: 2.1.3)
- Seeed Arduino RTC (version: 2.0.0)
- DHT sensor library (min version: 1.4.1)
The content of the code is well commented to carry you along. Take your time to go through it as this isn't the usual weather station. It tries to intoduce you to other simple functionality like interrupts, usage of the WiFi, Real time clock updating etc..
- When system comes on, it connects to your WiFi given the credentials are valid
- It updates time via a NTP server
- if successful, the RTC updates with the network time
- if unsuccessful, the RTC updates with the compile system time.
- An alarm is set for ticking the time every one minute
- It attaches an interrupt for the wake up button
- Displays the screen momentarily before turning it off.
To turn on the screen, Press Button_C (changeable) and same button to turn off the screen. The screen also turns period of 3mins. The system measures Temperature and Humidity every 5mins.
