Professional Documents
Culture Documents
May 1, 2016
Software
espIOT code for PIC16F887 MCU is written in C language. It is compiled using MPLAB IDE
version 8.91 and HI-TECH C compiler version 9.83.0.10920. The generated hex code is burnt
into the MCU chip using MPLAB ICD 2 programmer board.
https://electronicsforu.com/electronics-projects/hardware-diy/pic-iot-wi-fi-temperature-logging-system/2 1/5
12/25/2019 Temperature Logging System using Wi-Fi | Detailed Project Available
Fig. 6: PCB layout of the Wi-Fi temperature logging system
If there is any display problem on the LCD, check voltages at various points as listed in the
test point table. If the LCD is showing a proper message, go to www.thingspeak.com
https://electronicsforu.com/electronics-projects/hardware-diy/pic-iot-wi-fi-temperature-logging-system/2 2/5
12/25/2019 Temperature Logging System using Wi-Fi | Detailed Project Available
After saving the channel, you will receive channel ID and two
API keys—a write API key (it is to be used in our C code) and a
read API key (it is used to check the data from website on your
Fig. 9: Temperature data plotted graph
smartphone or PC). Make a note of these keys as you will need on www.thingspeak.com
these later.
Before using the system, ensure that Esp8266 module baud rate is changed to 9600 as most
of these have 115200. Also, a Wi-Fi modem with an Internet connection should be kept near
your circuit board.
https://electronicsforu.com/electronics-projects/hardware-diy/pic-iot-wi-fi-temperature-logging-system/2 3/5
12/25/2019 Temperature Logging System using Wi-Fi | Detailed Project Available
ESP8266 works on basic AT commands similar to the ones used in any GSM module
interfacing project. It can be easily checked and tested from HyperTerminal of Windows. The
link to AT commands is www.pridopia.co.uk/pi-doc/ESP8266ATCommandsSet.pdf
In the latest version of ESP8266 rmware, baud rate setting command AT+CIOBAUD is no
longer supported. You can replace this command by AT+IPR. The detail of this command can
be found on www.esp8266.com/viewtopic.php?f=13&t=718
When you open your channel under Data IMPORT/EXPORT section, you will get your API key.
Call this link www.api.thingspeak.com/update?key=[THINGSPEAK_KEY]& eld1=0 by changing
the eld value and give any number you want to upload. In Private View section, you will see
a graph of the data as shown in Fig. 9.
For checking the results on a smartphone or PC, a link is provided in the respective channel. It
would be something like http://api.thingspeak.com/channels/channel_id/feed.json?
key=api_key
In this link, API key is replaced by Read API key and channel id is replaced by the user’s
channel ID. Copy and paste this link in search bar of the browser in your smartphone or PC.
You will get the recorded temperature data information.
If temperature data has been uploaded, you will be able to see the graph here. Temperature
data on www.thingspeak.com is shown in Fig. 9. You are now ready to go with your rst IoT
project.
Applications
This project can be used as a guide for various other related projects for your home systems;
not just temperature but also energy consumption and many other interfaces that can be
easily checked on your smartphone.
Osho Gera is a second-year B.Tech student, studying at Bharati Vidyapeeth’s College of Engineering,
New Delhi
https://electronicsforu.com/electronics-projects/hardware-diy/pic-iot-wi-fi-temperature-logging-system/2 4/5
12/25/2019 Temperature Logging System using Wi-Fi | Detailed Project Available
1 2
https://electronicsforu.com/electronics-projects/hardware-diy/pic-iot-wi-fi-temperature-logging-system/2 5/5