In this example, we are going to display the time, date and temperature readings on OLED display. We need to setup the timezone first. By using herokuapp.com, we are able to get the current zone of WiFi module. Once we get the timezone, we need to call timeapi.org to get the current time and date. Once we get the data, we are ready to display it on OLED display.Temp:
We are using the LM35 temperature sensor to monitor the temperature. The idIoTware shield has a built in, on board lm35 sensor; we will post the data over the ThingSpeak website.
- The sensor has a sensitivity of 10mV/oC.
- We use a reciprocal conversion factor, that is 100 oC/V.
- The output voltage varies linearly with temperature.
- The general equation used to convert output analog voltage (Vout) to temperature is: Temperature (oC) = Vout * (100 oC/V)
- So if Vout is 0.5V, then Temperature = 50oC
However, on the idIoTware shield, the LM35, temperature sensor is wired such that with a higher temperature we get a higher Analog Voltage on PIn A0.Esp8266-01 Configuration
You will need to upload esp link firmware to ESP8266-01 module to configure WiFi SSID and password. Visit this link for more information.
Upload the code and you will be able to see the clock on the display with the current time, date and temperature readings.
With no prior experience in software and hardware, you were able to make your own clock. Go ahead and inspire others to make clock. With the idIoTware shield the sky's the limit.