You are on page 1of 26

LOW POWER CONSUMING AIR

CONDITION USING RS MODULE


ECE-442B: CAPSTONE PROJECT-II
Submitted in partial fulfilment of the requirement

Under the guidance of

Dr. SHAKTI RAJ CHOPRA SIR


BACHELOR OF TECHNOLOGY IN
(ELECTRONICS AND COMMUNICATION
ENGINEERING)
By
H.K. THARUN - 11607454
P. SREEKANTH -11601840
B. VENKATA KRISHNA-11602590

SCHOOL OF ELECTRONICS AND COMMUNICATION


ENGINEERING
Lovely Professional University, Punjab.

1
2
TABLE OF CONTENTS
1. ACKNOWELGEMENT

2. ABSTRACT

3. INTRODUCTION

4. INTERNET OF THINGS
5. DIFFERENT MODULES

6.CC2640r2f
7. CODE COMPOSER STUDIO
8. SMART RF STUDIO
9. DESIGN METHEDOLOGIES WITH PICTURES
10. CODE

11. FUTURE SCOPE

12. CONCLUSION

13. REFERENCES

3
Acknowledgment
We are sincerely thankful to all those people who have been giving us assistance in the making of
the project.
We would like to acknowledge with thanks the kind of patronage, loving inspiration and timely
guidance given by mentor Mr. Shakti Raj Chopra Sir
And we would also like to express our sincere thanks to all the faculties whose teachings gave us
conceptual understanding and clarity of comprehension, which ultimately made the work of the
project easier.
Last but not the least we pay a deep sense of gratitude to our friends who have been constant source of
inspiration and support and their valuable advice for the preparation of this project

4
Declaration
We, HK Tharun , P Sreekanth, and Venkata Krishna,students of Bachelor of Technology under
Department of Electronics and Communications department of Lovely Professional University,
Punjab, hereby declare that all the information furnished in this project report is based on our own
intensive research and is genuine. This project is done to the best of our knowledge, contain part
of our work which has been submitted for the award of our degree either of this university or any
other university without proper citation.

5
ABSTRACT
Power saving had become one of the biggest factors of saving that the world faces irrespective of
the case of developed or developing country. If a person entering to the monitored area, the PIR
sensors activates and sense the person, gives to the micro controller. The Infrared energy emitted
from the living body is focused by a Fresnel lens segment. Then only the PIR sensor activates.
After sensing the person LDR checks the light intensity of the monitored area, whether it is bright
or dark. Depending on the LDR output, the lamp may be ON / OFF by using Dimmer circuit. By
using this system, we can adjust the speed of Fan according to the room temperature measuredby
Thermostat, which is connected to the micro controller. To display the room temperature of PIR
mode operation we are using the LCD display.

This is not only the way of power or Energy management there are more other ways of power
saving in those one of the ways is discussed in our project. In our project CC2640 I.e. Launching
pad plays a Vitol role and we can say it is the only heart component of our Project. The biggest
failure in above mentioned method is the communication of AC or Fan. This can be achieved by
our project by using CC2640 with software named Code composer studio and Smart RF Studio.
Mostly in Government offices and many other institutions huge wastage of power takes place
which leads to huge wastage of money.

6
INTRODUCTION
Let's take an example of power consumption of 36 block of Lovely Professional University .There is
a loss of Rs.36000 due to lack of communication between the Air conditioner and the door. This is
only for one block of our university, then imagine the wastage of all blocks of our university and
Wastages of many institutes, offices and Industries. These Wastages cannot be repeated by
following our method. Many ATM centers also affected by these problems only

The CC26x0 is a Simple Link ultra-low power wireless MCU platform provide solutions for a
wide range of applications. To help the user develop these applications, this user's guide focuses
on the use of the different building blocks of the devices. For detailed device descriptions,
complete feature lists, and performance numbers, see the data sheet for the specific device. The
following subsections provide easy access to relevant information and guide the reader to the
different chapters in this document. The CC26x0 is a Simple Link ultra-low power wireless MCU
platform system-on-chips are optimized for ultra-low power, while providing fast and capable
MCU systems to enable short processing times and high integration. The combination of an ARM
Cortex-M3 processing core of up to 48 MHz, flash memory, and a wide selection of peripherals
makes the CC26x0 device families ideal for single-chip implementation or network processor
implementations of lower power RF nodes.

Code composer Studio is a software in which already all the files were inbuilt and we can use it as
we want in our customized manner. By this software a Designer need not be a good programmer
as other Software, as we were using a wireless communication this can be furthered used for
various purposes. Smart Rf Studio is a tool for RF devices to which we can send a prescribed value of
data or information

7
INTERNET OF THINGS
Internet of Things is the most important technology that is increasing tremendously. The term IoT
stands for Internet of Things that consists of all the devices are connecting to the internet, but itis
continuously being used for the objects that "converses" with each other. Essentially the basic
sensors used in the smart mobile phones and wearable devices are also connected to the Internet
of Things. By combining all the related devices with the automatic systems, it is imaginable to
"accumulate data, inspections it and then creating an activity" for helping somebody in a specific
project, or how to handle the project can be learnt. Internet of things are used for allowing the
devices on some websites on the internet and then can be used to communicating with the all other
devices and all the systems are bringing together by using the Internet of Things at one place. And
also, we can make the devices or the sensors that will talk to each other on their own by the use of
Internet of Things.

Future of Internet of Things:

As we know that the internet of things is increasing rapidly and it is already in full form in the
foreign countries and now it’s time in India to adopt for the Internet of Things. It is believed that
by the end of 2020, there will be nearly 22 billion devices may connect to the internet and as a
result the internet usage will also increase rapidly. In our project the communication between the
door and the Air conditioner plays an important role in the whole project, and sending the
information I.e. is sending the commands to switch on or switch off the Air conditioner. This
commands variation can be determined by different numbers of packets sending from the Radio
transmitter to Radio receiver, this is the most advanced way of the communication and different
mode of technique to achieve the goal of our power saving.

8
MODULES

1. DSD TECH HC-05 BLUETOOTH MODULE

This is an industrial serial port Bluetooth module for Arduino. It comes with a drop-in replacement
for wired serial connections and transparent usage. You can use it simply for a serial port
replacement to establish a connection between MCU and GPS. It can be paired with a BT dongle
and master module. This Bluetooth module allows you to both send or receive the TTL data via
Bluetooth technology without connecting your computer to a serial cable.

2. HC-05 6 Pin Wireless Bluetooth Modules

9
This Bluetooth module for Arduino comes with a factory setting of slave mode, but you can set this module to
master mode to connect it to other Bluetooth 2.0 devices. You can quickly add a Bluetooth feature to your
project with this HC 05 Bluetooth module. Its working voltage is 3.6V to 6V, and the default baud rate is
9600.

3. TECH HC-05 Bluetooth Module

This Bluetooth module for Arduino is an HC-05 Master and slave Two in one module. It uses the
CSR BC417 mainstream Bluetooth chip and Bluetooth V2.0 SPP protocol standards. It works at
a voltage of 3.6 V to 6V. You can switch it between master or slave mode via AT command.

4. KEDSUM HC-06 Serial Bluetooth Module

10
This is an industrial serial port Bluetooth with a drop-in replacement for wired serial connections
and transparent usage. It has a GPS receiver industrial control for MCU projects. You can run it in
slave role by pairing with BT dongle and master module. In the coupled mode, to modules can
establish communication automatically when powered. It also features a PC hosted mode by
pairing the module with a Bluetooth dongle directly as virtual serial.

5. ATMEGA 328

ATMEGA 328P is the Microcontroller which was designed by Atmel corporation in 1998.these
all above are the different modules which can be used for the achievement of our projects in various
manner. We can achieve our project with the help of these modules with the combination of
Arduino.

To communicate the door with Air conditioner these all above modules are required but by using
launch pad CC2640 r2f any external module is needed because all the modules which were needed
are already in built in the Launching pad.

11
6.CC2640R2F:
The CC2640R2F device is a wireless microcontroller (MCU) targeting Bluetooth 4.2 and
Bluetooth 5 low energy applications. The device is a member of the Simple Link ultra-low power
CC26xx family of cost-effective, 2.4-GHz RF devices. Very low active RF and MCU currentand
low-power mode current consumption provide excellent battery lifetime and allow for operation
on small coin cell batteries and in energy-harvesting applications. The Simple Link Bluetooth low
energy CC2640R2F device contains a 32-bit ARM Cortex -M3 core that runs at 48 MHz as the
main processor and a rich peripheral feature set that includes a unique ultra-low power sensor
controller.

This sensor controller is ideal for interfacing external sensors and/or collecting analog and digital
data autonomously while the rest of the system is in sleep mode. Thus, the CC2640R2F device is
great for a wide range of applications where long battery lifetime, small form factor, and ease of
use is important. The power and clock management and radio systems of the CC2640R2F wireless
MCU require specific configuration and handling by software to operate correctly, which has been
implemented in the TI-RTOS. TI recommends using this software frame work for all application
development on the device. Bluetooth low energy controller and host libraries are embedded in
ROM and run partly on an ARM Cortex -M0 processor. This architecture improves overall system
performance and power consumption and frees up significant amounts of flash memory for the
application.

CC2640R2F comes with PHY support of Bluetooth low energy (Normal, high speed, long range),
flash memory of 128 KB, RAM with 20 KB, GPIO with 31,15,14,10 and having different packages
such as RGZ, RHB, YFU, RSM.

The CC2640R2 Launchpad kit is supported by the Simple Link Starter app for iOS and Android.
This app connects your Launchpad to a smartphone using Bluetooth. The Starter app supports
reading the Launchpad buttons, controlling LEDs and all I/O signals on the Booster Pack
connectors. It also supports setting up cloud connectivity to the IBM QuickStart server or to any
cloud service via MQTT. This enables a cloud view where you can control your Launchpad from
any web browser in minutes after setting it up.

12
FEATURES:

1. Microcontroller

2. Ultra –Low Power Sensor Controller

3. External System

4.Low power

5.Rf Section

6.Peripheral

APPLICATIONS:

1. Home Applications:

. Lighting

. Locks

. Connected applications

2. INDUSTRALS:

. Logistics

. Access Control

3. Retail:

. Beacons& ESL and Price Tags

. Advertising

4. Health and Medical:

13
. Thermometers

14
. Spo2

. Blood Glucose and Pressure Meters

. Weight Scale

5. Sports and Fitness:

. Activity Monitors and Fitness Trackers

. Heart Rate Monitors

. Running and Biking Sensors

6. HID

. Voice Remote Controls

. Gaming

. Keyboards and Mice

7. Smart RF Studio:
Smart RF studio is a tool for evaluating TI Low Power RF ICs and for generating device register
values. The program can also be used to test RF performance and to test and tune customer Specific
hardware solution. Smart RF Studio is a PC application that can be used in combination with
several development kits for Texas Instruments’ CC xxxx and CC430 RF-ICs. It runs on Windows
XP, Windows Vista and Windows 7 (32 and 64 bit) and uses USB (or parallel port for legacy
boards) to communicate with the evaluation board (EB) which has an evaluation module (EM)
with the RF chip mounted. A radio on a custom board can also be tested with Smart RF Studio by
wiring it to an EB board or a CC Debugger. Smart RF Studio helps designers of radio systems to
easily evaluate the RF-IC at an early stage in the design process. The program provides an easy-to
operate PC interface to all of the chip’s radio configuration registers, and it is very helpful for
functional testing and for finding the appropriate radio settings. Smart RF Studio can also be used
without any hardware, but then only to generate, edit and export radio register values.

Smar RF Studio Features:

15
• Quick and Simple Performance testing

- continuous TX for antenna testing and RF spectrum analysis

- continuous RX for radiation testing

• Generate and export register values from common RF parameters


• Frequency, data rate, modulation, output power, etc.
• Easy to export register values for use in SW
• Read and write individual registers
• For full control from the operator

8. Code Composer Studio:

Code Composer Studio is an integrated development environment (IDE) that supports the TI
microcontroller and embedded processors portfolio. Code Composer Studio comprises a suite of
tools used to develop and debug embedded applications. It includes an optimizing C, C++
compiler, source code editor, project build environment, debugger, profiler, and many other
features. The intuitive IDE provides a single user interface taking users through each step of the
application development flow. Familiar tools and interfaces allow users to get started faster than
ever before. Code Composer Studio combines the advantages of the Eclipse software framework
with advanced embedded debugging capabilities from TI, resulting in a compelling feature-rich
development environment for embedded developers.

Embedded Coder connects MATLAB, Simulink, and Simulink Coder™ with Code Composer
Studio. These products enable integrated algorithm development, analysis, simulation, and code
generation. Users include algorithm developers, system designers, embedded engineers, and DSP
software developers. For specific processor family support, refer to details on the hardware support
pages linked below.

16
9. Design methodology with pictures:

The Transmitter Part:

17
The Receiver Part:

10. Code:
#include <unistd.h>

/* Driver Header files */

#include <ti/drivers/Power.h>

#include <ti/drivers/power/PowerCC26XX.h>

#include <ti/drivers/PIN.h>

#include <ti/drivers/pin/PINCC26XX.h>

/* Example/Board Header files */

#include "Board.h"

/* Pin driver handles */

static PIN_Handle buttonPinHandle;

static PIN_Handle ledPinHandle;

18
/* Global memory storage for a PIN_Config table */

static PIN_State buttonPinState;

static PIN_State ledPinState;

int i,delay,off;

/*

* Initial LED pin configuration table

* - LEDs Board_PIN_LED0 is on.

* - LEDs Board_PIN_LED1 is off.

*/

PIN_Config ledPinTable[] = {

//Board_PIN_LED0 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |


PIN_DRVSTR_MAX,

// Board_PIN_LED1 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL |


PIN_DRVSTR_MAX,

Board_DIO22| PIN_GPIO_OUTPUT_EN,

Board_DIO21|

PIN_GPIO_OUTPUT_EN,

PIN_TERMINATE

};

/*

* Application button pin configuration table:

* - Buttons interrupts are configured to trigger on falling edge.


19
*/

PIN_Config buttonPinTable[] = {

// Board_PIN_BUTTON0 | PIN_INPUT_EN | PIN_PULLUP |PIN_IRQ_NEGEDGE,

// Board_PIN_BUTTON1 | PIN_INPUT_EN | PIN_PULLUP |PIN_IRQ_NEGEDGE,

Board_DIO15| PIN_INPUT_EN ,

PIN_TERMINATE

};

/*

* ======== buttonCallbackFxn ========

* Pin interrupt Callback function board buttons configured in the pinTable.

* If Board_PIN_LED3 and Board_PIN_LED4 are defined, then we'll add them to the PIN

* callback function.

*/

/*

void buttonCallbackFxn(PIN_Handle handle, PIN_Id pinId) {

uint32_t currVal = 0;

//Debounce logic, only toggle if the button is still pushed (low)

// CPUdelay(8000*50);

// if (!PIN_getInputValue(pinId)) {

// Toggle LED based on the button pressed

// switch (pinId) {

20
// case Board_PIN_BUTTON0:

// currVal = PIN_getOutputValue(Board_PIN_LED0);

// PIN_setOutputValue(ledPinHandle, Board_PIN_LED0, !currVal);

//PIN_setOutputValue(ledPinHandle,Board_DIO15,0);

// break;

//case Board_PIN_BUTTON1:

// currVal = PIN_getOutputValue(Board_PIN_LED1);

//PIN_setOutputValue(ledPinHandle, Board_PIN_LED1, !currVal);

// PIN_setOutputValue(ledPinHandle,Board_DIO15,1);

// break;

/* case Board_DI012:

PIN_setOutputValue(ledPinHandle,Board_DIO15,1);

for(i=0;i<15;i++)

PIN_setOutputValue(ledPinHandle,Board_DIO15,0);

for(delay=0;delay<100;delay++);

PIN_setOutputValue(ledPinHandle,Board_DIO15,1)

; for(delay=0;delay<100;delay++);

break;*/

// default:

/* Do nothing */

21
// break;

// }

//}

//}

/*

* ======== mainThread ========

*/

void *mainThread(void *arg0)

ledPinHandle = PIN_open(&ledPinState, ledPinTable);

buttonPinHandle = PIN_open(&buttonPinState, buttonPinTable);

while(1){

/* Open LED pins */

//ledPinHandle = PIN_open(&ledPinState, ledPinTable);

// if(!ledPinHandle) {

/* Error initializing board LED pins */

// while(1);

22
//}

// buttonPinHandle = PIN_open(&buttonPinState, buttonPinTable);

while(PIN_getInputValue(Board_DIO15))

PIN_setOutputValue(ledPinHandle,Board_DIO22,0);

PIN_setOutputValue(ledPinHandle,Board_DIO21,1);

PIN_setOutputValue(ledPinHandle,Board_DIO21,0);

PIN_setOutputValue(ledPinHandle,Board_DIO22,1);

// off=PIN_getInputValue(Board_DIO22);

// if(off==0)

//PIN_setOutputValue(ledPinHandle,Board_DIO12,0);

// PIN_setOutputValue(ledPinHandle,Board_DIO22,1);

// PIN_setOutputValue(ledPinHandle,Board_DIO22,1);

// for(i=0;i<4000;i++);

//if(!buttonPinHandle) {

23
// /* Error initializing button pins */

// while(1);

//}

//PIN_setOutputValue(ledPinHandle,Board_DIO15,1);

/* Setup callback for button pins */

//(PIN_registerIntCb(buttonPinHandle, &buttonCallbackFxn)); //!= 0) //{

/* Error registering button callback function */

//}

// PIN_setOutputValue(ledPinHandle,Board_DIO15,1);

//PIN_setOutputValue(ledPinHandle,Board_DIO21,0);

//for(i=0;i<4000;i++);

// }

/* Loop forever */

//while (1) {

// sleep (1000);

//}

24
FUTURE SCOPE

IoT is going to be a big boon to India in upcoming days and as we know that the internet of things is
increasing rapidly and it is already in full form in the foreign countries and now it’s time in India to
adopt for the Internet of Things. It is assumed that by the end of the year 2021, there will be nearly
22 billion devices that may connect to the internet and as a result the internet usage will also
increases rapidly and our project will be having a great demand especially we can make the
automatic electricity consumption view by the use of energy meter connected to the internet and
now we can call this energy meter as the “Smart Meter”. And this smart meter can made as a
commercial product so that everyone can buy and the cost is also very cheaper and even a common
man can afford the smart meter so that everyone can buy the product and can be implemented in
their own home. The smart dustbins also can be placed at different parts of the city so that making
the living smarter. as the smart meters are already available in the foreign countries and the India
also move towards the Smart Meter and also, we can also prevent that by passing of the energy
meter for the using of the electricity meter, so that we can save the lot of electricity in theiworld.

CONCLUSION

This is not only the way of power or Energy management there are more other ways of power
saving in those one of the ways is discussed in our project. In our project CC2640 I.e. Launching
pad plays a Vitol role and we can say it is the only heart component of our Project. The biggest
failure in above mentioned method is the communication of AC or Fan. This can be achieved by
our project by using CC2640 with software named Code composer studio and Smart RF Studio.
Mostly in Government offices and many other institutions huge wastage of power takes place
which leads to huge wastage of money. power consumption of 36 block of Lovely Professional
University .There is a loss of Rs.36000 due to lack of communication between the Air conditioner
and the door. This is only for one block of our university, then imagine the wastage of all blocks

25
of our university and Wastages of many institutes, offices and Industries. These Wastages cannot
be repeated by following our method. Many ATM centers also affected by these problems only

References:
• https://mercomindia.com/solar-power-generation-india/
• https://www.weforum.org/agenda/2016/12/going-cashless-is-india-ready-for-digital
• https://www.tomsguide.com/us/smart-air-conditioner-buying-guide,review-5615.html
• http://www.ti.com/tool/msp-exp430g2et#1
• https://www.reddit.com/r/india/comments/58f8nt/showerthought_a_small_atm_room_is_
equipped_with/

THE END

26

You might also like