In this modern society building automation is very much important for every building such as
educational, commercial, residential and industrial buildings. Our Building Services laboratory is
an educational premises of the University College of Matara. It is consisted of many expensive
and valuable machines and equipment. We selected our lab for the project. When we were
planning our project, we aimed the security and energy consumption of the laboratory. The
Building Services Laboratory is located in second floor of the College.
1
1.2 Project Description
The project location is the Building Services Laboratory which is consisted of four sections,
1. Administrative Area
2. Plumbing, Waste Water Management, Hot Water and Boiler systems
3. HVAC System, Electrical and Electronics
4. Physics, Ancillary Services and Energy Management
Each sections are consisted of lights and fans with three phase power.
2
Switch on and off the lights by using an Arduino bluetooth app which is installed in smart
phones
1.5.2 Study the required technologies, technical parameters for the sensors and parameters.
There are many technologies with sensors and field devices. Before list out the equipment list,
the technologies should be used were decided. We selected the Arduino technology. Then
according to the Arduino technology, the required sensors and field devices were identified.
3
1.5.2.1 Field devices related to the Arduino
Ultra Sonic sensors
Flame sensors
Bluetooth module sensor
Arduino boards
Switches
Relays
Battery chargers
Jumper wires
Cables and insulations
4
1.6.1 Strengths
Better knowledge of building automation systems and Programmable Logic Controllers
under the subject of Building Automation System.
The best guidance with well experiences from our Lecturer, Mr. Naleen Karunasinghe.
Creative experiences and better knowledge of practical related to the subject with a good
team work and leadership.
The location where we do the project is another reason for the strength of the project. It is
the most applicable place for the project because of it is consisted of four sections such as
HVAC system / Electrical and Electronic, Physics / Ancillary Services and Energy
Management, Plumbing / Waste Water Management / Hot Water and Boiler systems and
Administrative area.
Financial resources for the project.
Cost advantages ; Low cost of required field devices and sensors.
The resources such as tools and equipment, personal protective equipment and electricity
are available for anytime when we are doing our project.
1.6.2 Weaknesses
Delay of starting works and less progress update is one of the main weaknesses that we
have seen in the project.
Less commitment for the project is the one of reason. The other reason is delay of buying
some controllers, sensors and other field devices which are related to the project.
The limited budget for the project.
When we were selecting equipment suppliers for the project, we couldn’t do a survey
analysis within a big range.
There was an issue when we were ordering our project components. There was a delay of
some required components such as sensors and circuit boards.
5
1.6.3 Opportunities
Our project has a big opportunity to expand our value of the Building Services
Technology to the world
It has a good opportunity to develop the Building Services Laboratory of the University
College, Matara as the best laboratory among other University Colleges.
Our project is helped to promote our course and the University College concept in Sri
Lanka.
It is a good demonstration unit for the external students such as schools, technical
colleges.
1.6.4 Threats
When we are selecting the equipment suppliers for the project, some suppliers didn’t
agree to supply their equipment only. The wanted to both supply and install their systems
and components.
In present, the Arduino technology is used for many project then there is a competition
for the technologies.
6
Chapter 02. The Project
2.1 Introduction
This chapter is expressed about the project and what we are doing in this project and how we
achieve that aim. As the first step, our achievements and what are the way that we achieved. This
means goals and objectives. In this effort what we passed steps, how we achieved and how
progress at last are the expectable things in this chapter. As same as, the budget allocation of the
project is mentioned in the next paragraph and it says what is the out expenses and additional
cost against allocated budgets.
Finally, the chapter describes cost analysis and benefits and Gantt chart analysis of the project.
Cost will tend to comparison between estimated expenses and the actual cost for the project. That
tends to how we operate the financial properties when we implementing the project, Then, in the
planning stage, entire project divides into few activities and sub activities as well that project
planning schedule will take a correct action in given time frame. Gantt chart analysis gives the
managerial concept practices of the team.
And also this chapter is expressed about the project planning stages.
2.2.1 Goals
1. Find out the where & what automation applications to be applied for the laboratory.
The project location was selected, it is the Building Services laboratory. When we designing the
automation application for the laboratory, the safety, security and how to reduce energy
consumption of the laboratory were considered.
Before drawing the plan, we got the measurements of the laboratory and draw the plan of the
laboratory.
3. Select the required controllers, sensors, detectors & field devices which related to
designed security system.
7
According to the drawing and requirements of the automation applications for the laboratory, we
selected the required sensors, controllers and field devices.
4. Prepare a complete design for selected automation systems for the laboratory.
This is the final stage for this design. This stage is helped for the project implementation
successfully.
2.2.2 Objectives
1. Gain a better knowledge in design stage of installing building automation applications.
As the building services students, we studied and get practical knowledge of building automation
system under the subject of Building Automation Systems in last semester. Even the building
automation systems has vast range, we should properly programme and installed the selected
building automation application, automatic lighting system and fire detection system. It is the
best opportunity to apply theoretical knowledge in real practical situation like our project and to
expand our knowledge in design stage of our project.
We will not get an opportunity of designing process at the initial stage of our carrier period but
this will be a great chance to expose building automation system. It will be more valuable for
further development of the projects that we participate in the field.
Normally we have not a chance to work of design stages with massive scale building. The high
rise buildings provide huge opportunities to upgrade our design knowledge. It describes about
the complicated building automation system will gives more opportunity to practice.
4. To develop the BST laboratory of UCM as the best laboratory for BST among other
University Colleges.
This is the best initial stage of opportunity to develop our Building Services Laboratory as the
best laboratory among other University Colleges. The other students can be further developed
our project and implement a large scale project than our project.
8
5. Complete the requirement of the final year project of HND in BST programme
successfully.
Finally we expect to great completion of our Higher National Diploma (NVQ VI)
programme even grabbing satisfactory knowledge about the building automation systems.
The hardware consists of a simple open source hardware board designed around an 8-bit Atmel
AVR microcontroller, or a 32-bit Atmel ARM. The software consists of a standard programming
language compiler and a boot loader that executes on the microcontroller.
Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter
message - and turn it into an output - activating a motor, turning on an LED, publishing
something online.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping,
aimed at students without a background in electronics and programming. As soon as it reached a
wider community, the Arduino board started changing to adapt to new needs and challenges,
differentiating its offer from simple 8-bit boards to products for IoT applications, wearable, 3D
printing, and embedded environments.
9
All Arduino boards are completely open-source, empowering users to build them independently
and eventually adapt them to their particular needs. The software, too, is open-source, and it is
growing through the contributions of users worldwide.
There are many other microcontrollers and microcontroller platforms available for physical
computing. Parallax Basic Stamp, Netmedia's BX-24, Phidgets, MIT's Handyboard, and many
others offer similar functionality. All of these tools take the messy details of microcontroller
programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of
working with microcontrollers, but it offers some advantage for teachers, students, and interested
amateurs over other systems:
10
Open source and extensible software - The Arduino software is published as open source
tools, available for extension by experienced programmers. The language can be
expanded through C++ libraries, and people wanting to understand the technical details
can make the leap from Arduino to the AVR C programming language on which it's
based. Similarly, you can add AVR-C code directly into your Arduino programs if you
want to.
Operating Voltage: 5V
Input Voltage (recommended):7-12V
Input Voltage (limits): 620V
Digital I/O Pins: 14 (of which 6 provide PWM output)
Analog Input Pins: 6
DC Current per I/O Pin: 40 mA
DC Current for 3.3V Pin: 50 mA
Flash Memory: 32 KB (ATmega328)
SRAM: 2 KB (ATmega328)
EEPROM: 1 KB (ATmega328)
Clock Speed: 16 MHz
11
2.3.5 Arduino Family
Figure 1 : Arduino Uno / Arduino Leonardo / Arduino Mega ADK and Arduino Ethernet
Figure 2 : Arduino Deo / Arduino Yun / Arduino Mega 2560 & Arduino Mini
12
2.3.5.1.1 Specifications
Microcontroller – Atmega 2560
Operating Voltage – 5V
Input Voltage (recommended) – 7 – 12V
Input Voltage (limits) – 6 – 20V
Digital I/O Pins – 54 (of which 14 provide PWM output)
Analog Input Pins – 16
DC Current per I/O pin – 40mA
DC Current for 3.3V Pin – 50mA
Flash Memory – 256 KB of which 8 KB used by bootloader
SRAM – 8 KB
EEPROM – 4KB
Clock Speed – 16 MHz
13
2.3.6.1 Ultrasonic Sensor Pin Configuration
14
2.3.6.3 Equivalent distance measuring Sensors
US transmitter Receiver pair
IR sensor module
IR sensor pair
IR analog distance sensor
The Ultrasonic transmitter transmits an ultrasonic wave, this wave ravels in air and when it gets
objected by any material it gets reflected back toward the sensor this reflected back towards the
sensor this reflected wave is observed by the Ultrasonic receiver module as shown in the picture
below
15
Now, to calculate the distance using the above formulae, we should know the seed and time.
Since we are using the Ultrasonic wave we know the Universal wave we know the universal
speed of US wave at room conditions which is 330 m/s. The circuitry inbuilt of the module will
calculate the time taken for the US wave to come back and turns on the echo in high for the US
wave to come back and turns on the echo pin high for that same particular amount of time, this
way we can also know the time taken. Now simple calculate the distance using a microcontroller
or microprocessor
Power the sensor using a regulated +5V through the Vcc ad Ground pins of the sensor. The cut
consumed by the sensor is less than 15A and hence can be directly powered by the on board 5V
pins (If available). The Trigger and the eco pins are both I/O pins and hence they can be
connected to I/O ins of the microcontroller. To start the measurement the trigger pin has to be
made high for 10us and then turned off. This action will trigger an ultrasonic wave at frequency
of 4H from the transmitter and the receiver will wait for the wave to return. Once the wave is
returned after it getting reflected by an object the echo pin goes high for a particular amount of
tie which will be equal to the time taken for the wave to return back to the sensor.
The amount of time during which the Echo pin stays high is measured by the MCU/MPU as it
gives the information about the time taken for the wave to return back to the Sensor. Using this
information the distance is measured as explained in the above heading.
16
2.3.7 HC-05-Bluetooth module
HC module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for
transparent wireless serial connection setup.
Serial port Bluetooth module is fully qualified Bluetooth V2.0 + EDR (Enhanced Data Rate)
3Mbps Modulation with complete 2.4 GHz radio transceiver and based. It uses CSR Bluecore
04-External single chip Bluetooth system with CMOS technology and with AFH(Adaptive
Frequency Hopping Feature). It has the footprint as small as 12.7mmx27mm. Hope it will
simplify your overall design/development cycle.
17
4 TX - Transmitter Transmits serial data.
Everything received via
Bluetooth will be given out y
this pin as serial data
5 RX- Receiver Receive serial data. Every
serial data given to this pin
will be broadcasted via
Bluetooth
6 State The state pin is connected to
on board LED, it can be used
as a feedback to check if
Bluetooth is working properly
7 LED Indicates the status of Module
Blink one in 2 seconds
Module has entered
command mode
Repeated Blinking:
Waiting for connection in
Data Mode
Blink twice in 1 second
connection successful in
Data Mode
8 Button Used to control the
Key/Enable pin to toggle
between Data and Command
Mode
18
2.3.7.2 HC 05 Default Settings
Default Bluetooth Name: HC – 05
Default password: 1234 or 0000
Default communication: Slave
Default mode: Data Mode
Default Mode Baud Rate: 9600,8,N,1
Command Mode Baud Rate: 38400,8,N,1
Default firmware: LINVOR
2.3.7.3 HC 05 Specifications
Serial Bluetooth module for Arduino and other microcontrollers
Operating Voltage: 4V to 6V(Typically +5V)
Operating Current: 30Ma
Range: less than 100m
Works with Serial communication (USART) and TTLcompatible
Follows IEEE 802.15.1 standardize protocol
Uses Frequency – Hopping Spread spectrum (FHSS)
Can operate in master, slave or master/ Slave mode
Can be easily interfaced with Laptop or Mobile phones with Bluetooth
Supported baud rate: 9600,19200,38400,57600,115200,230400
It is very easy to pair the HC-05 module with microcontrollers because it operates using the
Serial Port Protocol (SPP). Simply power the module with +5V and connect the Rx pin of the
module to the Tx of MCU and TX pin of module to Rx of MCU as shown in the figure.
19
Figure 6 : Bluetooth Module Pin Configuration
During power up the key in pin can be grounded to enter into Command mode, if left free it will
by default enter into the data ode. As soon as the module is powered should be able to discover
the Bluetooth device as “ HC-05 ” then connect with it using the default password 1234 and start
communicating with it.
The flame sensor is used to detect the presence of fire or other infrared source (Flame or a light
source of a wavelength in the range of 760 nm to 1100 nm can be detected). This module is
sensitive to the flame and radiation. It also can detect ordinary light source in the range of a
wavelength 760nm-1100 nm. The detection distance is up to 100 cm. The Flame sensor can
output digital or analog signal. It can be used as a flame alarm or in fire fighting robots
20
2.3.8.1 Flame Sensor Pin Configuration
1) VCC -- 3.3V-5V voltage
2) GND – GND
21
2.4 Budget Allocation
Table 3 : Preliminary Budget of the Project
Preliminary Budget
This budget allocation helps to get an idea about the preliminary cost of the project and it defines
how we allocate the many for implementation of the project.
The preliminary budget was prepared after the survey analysis through the internet. This
preliminary budget was important to prepare real budget for the project. After preparing this
budget, it was presented to our Lecturer and we discussed about the budget.
22
Table 4 : Actual Budget
Actual Budget
23
2.5 Project Plan (Project Implementation Stages)
Project Plan is very much important to implement a project successfully. It gives clear idea to
submit the project under project activities within given time period. Firstly we prepared the
project activity plan and then the project plan was prepared. It is included main tasks and sub
tasks of the project with specific time periods. We had to take more time period to submit some
tasks and also some tasks couldn’t complete scheduled time period in the project plan. The total
time period of our project is 171 days from 26.01.2018 to 02.08.2018. This activity scheduled
helpful to realize our project successfully.
24
Table 5 : Project Activity Schedule
25
26
Chapter 03. Project Implementation
3.1 Introduction
This chapter describes the project implementation and problem encountering at the designing
stage. Where, describes how we were programming the automation function, how we connected
the circuit and procedures.
Equipment Quantity
Arduino UNO 3
Arduino Mega 2560 1
HC- SR04 Ultrasonic Sensor 3
Flame Sensor 1
Bluetooth Module 1
USB Charger 3
Data Cable 3
Breadboard 1
5V Relay Single 2
5V Relay Dual 1
Two Way Switch 1
Buzzer 1
LED Bulbs 5
Jumper wire 64 pieces pack 1
27
3.2.2 Installing Procedure
1. Automatic lights and fans controlling by Bluetooth
Firstly, the programming was done by using Arduino Programming software and the
Bluetooth module sensor were testing by connection to the Arduino board.
Then whole circuit was prepared by connecting to the relay.
Wiring connection was done.
Whole Bluetooth sensor module system was installed.
28
Figure 8 HC- SR04 Ultrasonic Sensor circuit
29
Chapter 04. Project Outputs and Skill Developed
4.1 Introduction
This chapter will express above what kind of things that we gather from end of the project.
Specially design experiences, faced practical problem in the design stages, knowledge gap,
project planning and managerial skills, technical experiences and the outcomes are describe in
this chapter. And also we grabbed the skills of conceptual interpersonal and technical at the end
of the project. Those skills are also included in this chapter.
30
Conclusion
When we are planning the project, we selected our building services laboratory as the project
implemented location. We prioritized the basic requirements needed to be implemented in the
laboratory. According to our prioritized requirement list, firstly we decided to apply few of
building automation system for the laboratory. The second place of the priority requirement list
will take the specifications and regulations.
Before we are planning our project, there were no any building automation system in the
laboratory. We installed automatic lighting and fan controlling system via ultrasonic sensor and
Bluetooth module sensor and fire alarm system by using flame sensor. Building automation
system is a one of important category of ELV system. In here we used Arduino technology to
install sensors and other field devices in our project.
At the final stage of the project we gained the lot of both technical and practical knowledge and
skills regarding building automation system designing for the laboratory. Specially we realized
the knowledge of programming of system components of the project. And also the facts that we
realized conceptions of building automation systems, team work and leadership experiences,
interpersonal knowledge sharing, project planning and organizing and financial handling of the
project are the best experiences in our professional life. The experiences that we gained from the
project are the most valuable when we going to the job field. Finally we think our project is the
grateful and effective one for all.
31
References
https://www.my+hub.lk
https://www.arduino.cc/en/Guide/Introduction
http://www.theorycircuit.com
https://www.robotshop.com
http://rogerbit.com
32
Declaration
We certify that this project report does not incorporate without acknowledgement, any material
previously submitted for a degree and diploma in any university, and so the best of our
knowledge and belief it does not contain any material previously published or written by another
person, except where due reference is made in the text.
Date : …………….
Supervisor’s Recommendation
33