You are on page 1of 14

www.idosr.

org Nabiryo and Itodo


©IDOSR Publication
International Digital Organization for Scientific Research ISSN: 2579-079X
IDOSR JOURNAL OF SCIENCE AND TECHNOLOGY 7(1):53-66, 2022.

Design and Implementation of Base Station Temperature Monitoring


System Using Raspberry Pi
Nabiryo Patience and Itodo Anthony Ejeh
Department of Electrical, Telecommunications and Computer Engineering, School
of Engineering and Applied Sciences

ABSTRACT
This project describes a telecom base station site temperature monitoring system
using Raspberry Pi, utilizing a set of pi boards. It utilizes a raspberry Pi board-
central processor and sensor boards. Sensor board is in turn interfaced to the
DHT-111 humidity & temperature sensor. It is also linked to a Wi-Fi adapter
(802.11 b/g/n) connected to the centralized processor through Internet. A
centralized data station is set up and all other sensor pi boards relay their data to
this centralized station, which organizes the data and logs them into tables or
graphs based on user requirements. This data is also connected to through
Ethernet hence this data log can be accessed remotely and the entire data can be
controlled from a remote server. The data logged is also uploaded to a cloud
server so that it can be accessed anywhere at any time.
Keywords: Design, Implementation, Base Station and Temperature
INTRODUCTION
IoT is used for connecting the analysis anywhere in the globe via the
electronic devices with the internet. internet [3]. In order to cut down on
The devices may vary from the human effort and involvement, of late
temperature measuring equipment people increasingly depend on
and vehicles SOS system to other embedded systems to control and
electronic devices such as sensors, monitor the factors affecting the
soft wares, and network connectivity ecosystem. Temperature and
facilities, which sanction collecting humidity are vital in observing and
and exchanging data. The twenty-first understanding nature. IoT comes into
century has witnessed a massive the picture here by significantly
paradigm shift to and focusing on enhancing the efficiency of the
global attention onto IoT as a mechanism and systematically
burgeoning discipline with multiple cutting down on human involvement,
possibilities and diverse and thereby overall expenditure [4].
opportunities for growth and Practically, every part of exercise
development [1]. Internet connection contains controlled schedules of
facilitates the smooth functioning of temperature as well as humidity.
the devices that have become However, the exact value of
indispensable parts of our day-to-day temperature with its significant
lives and existence. The Internet feature in any field is essential in
offers the provision to link and monitoring [5]. Constant perception
network different kinds of devices in temperature is utilized in various
like sensors and fitness devices. industries like the pharmaceutical
All these devices that enable them to industry as the driving force behind
upload input as well as output to the these monitoring systems,
Internet using cloud provisioning. computerized and straightforward
The information thus gathered is temperature sensors can use [6].
accessible for monitoring and Resistors,semiconductors,

53
www.idosr.org Nabiryo and Itodo
thermistors estimate temperatures IoT technology and Raspberry Pi
values. These components are microcontroller is used. Humidity
present inside the sensor to retrieve and temperature monitoring using
the temperature in consonance with IoT technology and Raspberry Pi is an
the circumstances. The primary goal exciting and secure process.
of our system is to supervise the live Objective
temperature and humidity within a To design and implement a user
low cost [7]. Raspberry Pi is the friendly, low-cost temperature
observational system or controller monitoring equipment to help avoid
which is used for the cloud saving. heat build-up at telecom base station
Python is the programming language locations, like huts and other network
which is utilized in Raspberry Pi. HTU nodes, to continuously monitor the
211D sensors is a temperature sensor site. A central temperature
which is used here for the sensing monitoring system will enable us to
purpose [8]. This comprises of keep track of critical temperatures at
temperature ascertaining capacity all telecom base station sites.
and favourable fundamental position Specific Objectives
of utilizing HTU 211D sensors, which To interface DHT11 temperature and
boasts of less weight and ease of use. humidity sensor, LCD, Wi-Fi module
The sensor is associated with with Raspberry Pi Microcontroller
Raspberry Pi utilizing connecting unit to read temperature and
wires. Temperature sensor HTU 211D humidity data from the base station
sensors is utilizing is perused put environment and feed data to the
away, and shown in the Raspberry Pi Raspberry Pi control unit for
unit [9]. IoT based devices in homes processing. To program the
and industries are used for Raspberry Pi based temperature
controlling all the electrical or monitoring system to continuously
electronic devices which are present. transmit/relay the current captured
Additionally, the saved information environment and equipment
of the IoT devices can be controlled temperature and humidity data to a
from anywhere [10,11,12,]. The central Network operation centre
sensor analyses the graphical location for monitoring purposes
representation of the observed data To test and implement the designed
in every user defined format Raspberry Pi based base station
wherever in the world. In this work, temperature monitoring system.
METHODOLOGY
System Design and Implementation
System Design monitor temperature and humidity at
In this project an attempt has been various telecommunication sites,
made to develop a base station capture the data and relay to a central
temperature monitoring system to Network Operation Center.

Figure 1: Telecommunication base station site

54
www.idosr.org Nabiryo and Itodo

Temperature and humidity important communication gear. The


monitoring of the telecommunication Central Processing Unit for this
base stations will help avoid heat system is developed using the
build-up at telecom locations, like Raspberry Pi microcontroller which is
huts and other network nodes, by a low cost and efficient controller
continuously monitoring the site. A used in many applications. The
central temperature monitoring embedded system technology here is
system will enable to keep track of combined with the wireless sensor
critical temperatures at all telecom technology.
base stations sites that contain

Temperature and humidity sensors collect environment data and data is fed to the
raspberry Pi microcontroller for processing. A 16X2 LCD display is interfaced with the
Raspberry to display current temperature and humidity readings. Wi-Fi module
embedded with Raspberry helps to transfer the collected data to a centralised location
Network operation centre for monitoring purposes.

Figure 2: Model diagram

System Setup and Software Design Elevated Meaning Blu-Ray Quality


All the sensors required for the Video,512Mb SDRAM, The free,
particular base station are set up flexible and exceedingly builder
according to the circuit. A python approachable Debian
script is written to initialize the GNU/Linux(RASPBIAN)Operating
GPIO’s of the Raspberry Pi for each System, 2 x USB Ports, HDMI Video
sensor. Output, RCA Video Output,3.5mm
Devices interfaced Audio Output Jack,10/100Mb
Raspberry pi. The Raspberry Pi is a Ethernet Port for Internet Access, 5V
low cost, credit-card sized computer Micro USB Domination Input Jack,
which plugs into a computer monitor Micro SDHC card, MMC,40 gpio pins.
or TV, and requires a standard It has capability of a little device that
keyboard and mouse. Raspberry Pi is allows people of all ages to explore
a dynamic microcontroller and runs computing. It’s capable of doing
with the Python programming everything you would expect a
language. Raspberry Pi 2 includes a desktop/computer to do, from
quad-core Cortex A7 processor CPU browsing the internet and playing
running at 900 MHz and 1 GB RAM, high-definition video to making
Integrated Video core 4 Graphics spreadsheets, word processing, and
Processing Constituent (GPU) capable playing games. The Raspberry Pi has
of frolicking Maximum 1080p the ability to interact with the outside

55
www.idosr.org Nabiryo and Itodo
world, and has been used in a wide sensor activated light and many
array projects like smart home more.
monitoring system, wireless motion

Figure 3: Raspberry pi 2 model b

DHT11 Humidity & temperature displays the ambient temperature


sensor for sensing the temperature and humidity through an LCD
The Celsius scale Thermometer and display
percentage scale Humidity meter

Figure 4: DHT11 Humidity & temperature sensor

56
www.idosr.org Nabiryo and Itodo

Circuit diagram

Figure 5: Circuit diagram

Flow chart of Circuit system

Figure 6: Flow chart of system diagram

57
www.idosr.org Nabiryo and Itodo
Working and Thing Speak setup Graph form. A LCD is also
 Firstly, DHT11 sensor senses used to display these values
the Humidity & Temperature locally.
Data. Raspberry Pi Configuration
 Secondly, Raspberry Pi reads and Python Program:
the DHT11 sensor module’s The GPS system is set up so as to
output by using single wire obtain the coordinates of the system.
protocol and extracts sensor The board is further programmed to
values into a suitable number log the data and store it locally in a
in percentage (humidity), and file at low sample rate to avoid
Celsius scale (temperature). excessive usage of system memory.
 Thirdly, these values are sent This file is transmitted at the end of
to Thing Speak server by using each day to the central server. It
inbuilt Wi-Fi of Raspberry Pi should be noted that the central
for live monitoring from server still has complete access to
anywhere in the world over the base station at any given time
internet. provided it is within the Wi-Fi
 Finally, ThingSpeak analyses network.
the data and shows it in a

Figure 7: Workflow for System Design

 Adafruit Python DHT Sensor Library is installed to run this project on


Raspberry Pi using the below commands

58
www.idosr.org Nabiryo and Itodo

59
www.idosr.org Nabiryo and Itodo
 Enable Raspberry Pi I2C in RPi Software Configuration:

60
www.idosr.org Nabiryo and Itodo
Programming
All required libraries are included, initiaze variables and define pins for LCD and
DHT11.

def main(): function, below code is being used for sending the data to the server
and display it over the LCD, continuously in while loop.

For LCD, def lcd_init() function is lcdstring(Str) function is used to send


used to initialize LCD in four bit data string to LCD. You can check all
mode, def lcdcmd(ch) function is these functions in Code given
used for sending command to afterwards. Given
LCD, def lcddata(ch) function is used def readDHT() function is used for
for sending data to LCD and def reading DHT11 Sensor:

61
www.idosr.org Nabiryo and Itodo

Network Setup The user name of the user who is


For communication between base logging in.
station and the central station, SSH The password of the user who is
server client protocol is set up on the logging in.
Raspberry Pi. For an SSH connection Logging into the super user mode, the
to be initiated, 4 pieces of data are hostname and password of the
needed: Raspberry Pi can be set up by
The address (IP address or domain modifying the configuration file by
name) of the target machine. the following command in terminal –
The port number of the target “nano /etc/dhcp/dhclient.conf"
machine on which the SSH server is
listening.

62
www.idosr.org Nabiryo and Itodo
PuTTY Configuration data previously set up, or can be
Window on PC accessed through SSH client
The base station can be accessed by application such as PuTTY for large
calling the Linux SSH client from file transfers.
command line using the 4 pieces of
RESULTS
Tests
The base station temperature monitoring system was designed and tested to
evaluate its functionality and efficiency. The system is installed at multiple
telecom base station sites to capture temperature and humidity readings of the
site environment with the help of DHT11 Temperature & Humidity Sensor and the
captured data is fed to Raspberry Pi microcontroller for further processing. The
processed data is displayed on an LCD screen and relayed to a central server
Network operation centre for monitoring.
Tests were carried out at 3 multiple telecommunication base stations to evaluate
the working of the system.
The results of the 3 tests carried out were as discussed below
1. Base Station Site A

Figure 8: Working system design

At base station A, the system relayed temperature reading of 34 degrees Celsius


and humidity 40%

2. Base Station Site B

Figure 9: Test at Base station A

63
www.idosr.org Nabiryo and Itodo
At base station B, the system relayed temperature reading of 30 degrees Celsius
and humidity 51%

Figure 10: Test at Base station B

Base Station Site C

Figure11: Test at base station C


At base station C, the system relayed temperature reading of 47 degrees Celsius
and humidity 17%
CONCLUSION
Temperature and humidity possible to keep track of critical
monitoring of the telecommunication temperatures at telecom base stations
base stations helps avoid heat build- sites that contain important
up at telecom locations, like hubs and communication gear. This prevents
other network nodes, by continuously sites from going down due to very
monitoring the site from a central high critical temperatures. The
Network operation centre making it system design in this project proved

64
www.idosr.org Nabiryo and Itodo
to be effective in the monitoring of cases when you're setting up an
temperatures and humidity at remote environmental monitoring system.
telecommunication base station sites. Analog sensors offer the ability to
Limitation check the precise temperature at any
The system design has some time. The only real value of a digital
limitations which include: The first sensor is the ability to send alerts
consideration in evaluating when a specific threshold is crossed.
temperature monitoring systems is If cost is a big factor in your decision,
the type of sensor to use to track however, a digital temperature sensor
room temperature. An analog sensor is 100% more useful than nothing at
is superior to digital sensors because all. To get the threshold temp alert
it tracks temperature in real-time capability, you need to select the
across a continuous range. Digital right alarm remote to link your
temperature monitoring systems, by sensors from your remote site to your
contrast, will only tell you if the central office. Network-based
temperature is above or below a temperature monitoring bridges the
predetermined value. There's no way gap between your sensors, which
to know how much the temperature communicate with analog or discrete
has risen (or fallen) beyond the contact closures, and your central
temperature you specify. Analog office.
sensors are recommended in most
REFERENCES
1. Satyanarayana, G. V. and Sensor Node for Wireless
Mazaruddin, S. D. (2013). Sensor Networks. Journal of
Wireless Sensor Based Remote Computer and
Monitoring System for Communications, 2, 90-98.
Agriculture Using ZigBee and 6. Jorge, P., Angel, C., Eduardo,
GPS Conference on Advances T. and Teresa, R. (2006). A
in Communication and Control Modular Architecture for
Systems” (CAC2S 2013). Nodes in Wireless Sensor
2. Iswanto, H. M. (2012). Weather Networks. Journal of Universal
monitoring Station with Computer Science, vol. 12, no.
Remote Radio Frequency 3, 328-339.
Wireless Communications, 7. Pranita, B. and Dixit, V. V.
International Journal of (2012). Agricon Weather
Embedded Systems and Monitoring System and
Applications (IJESA) Vol.2, Irrigation Controller, IOSR
No.3. Journal of Electronics and
3. Rathod, R. B. (2014). Design Communication Engineering
and Implementation of Remote (IOSRJECE), Vol. 1, Issue 6.
Terminal Unit for Monitoring 8. Nhivekar, G. S. and Mudholker,
Weather using Raspberry Pi R. R. (2016). Data logger and
and RS485 Standard Interface. remote monitoring system for
IJSRD -International Journal multiple parameter
for Scientific Research & measurement applications, e -
Development| Vol. 2, Issue 03, Journal of Science &
2014. Technology (e-JST), 2(3):19-25.
4. John Barton, Kieran Delaney, 9. Kamarul, A. N., Chow, C. O.
Cian O’ Mathuna, Joseph A. and Mohamad, F. I. (2006). A
Paradiso “Miniaturised Low-Cost Microcontroller-
Modular Wireless Sensor based Weather Monitoring
Networks”. System. CMU Journal, Vol. 5
5. Ömer, Ö. and Mesut, G. (2014). (1) Nagisetty, S., Monica, P. S.
Investigation and (2014). ARM microcontroller
Implementation of a PIC-Based based Wireless Industrial

65
www.idosr.org Nabiryo and Itodo
Automation System. IJAREEIE of the Smart Grid.
IDOSR
Vol. 3, Special Issue 4. Journal Of Applied Sciences
10. Masisani William Mufana and
7(1) 102-112.
Adabara Ibrahim (2022).
12. Masisani William Mufana and
Overview of Smart Grid: A
Adabara Ibrahim (2022).
Review. IDOSR Journal Of
Implementation of Smart Grid
Computer and Applied Sciences
Decision Support Systems.
7(1):33-44.
IDOSR Journal of Scientific
11. Masisani William Mufana and
Research 7(1) 50-57.
Adabara Ibrahim (2022).
Monitoring with
Communication Technologies

66

You might also like