Design automatic temperature balancing circuit and control device via SMS - 1

ACKNOWLEDGEMENTS

I would like to sincerely thank the teachers of the Vietnam - Korea Friendship Information Technology College, who directly taught and imparted useful knowledge to me, which are the basic foundations, the extremely valuable provisions, the first step for me to enter my future career. Especially Ms. Tran Thi Tra Vinh has wholeheartedly helped me throughout the internship until the completion of the graduation project, answering questions during the implementation process. Thanks to that, I was able to complete this graduation project.

During the project, due to limited time, the graduation report will inevitably have errors. I sincerely hope to receive comments from teachers and friends so that my knowledge can be increasingly improved and I can draw useful experiences that can be effectively applied in practice in the future.

I wish you always happy, healthy and successful in your work.

Thank you very much.


Da Nang, May 2016


Le Tan Vang

INDEX

THANK YOU i

TABLE OF CONTENTS ii

LIST OF ABBREVIATIONS v

LIST OF DRAWINGS vii

LIST OF TABLES ix

INTRODUCTION 1

CHAPTER 1 OVERVIEW OF GSM NETWORK AND SMS MESSAGING SERVICE 2

1.1. OVERVIEW OF GSM MOBILE INFORMATION SYSTEM 2

1.1.1. Introduction to GSM mobile communication system 2

1.1.2 Characteristics of GSM mobile communication system 2

1.1.3 Structure of GSM mobile communication system 3

1.1.3.1 General structure 3

1.1.3.2 Components of GSM mobile communication system 3

1.1.4 Development of mobile information systems in Vietnam 4

1.2. OVERVIEW OF SMS MESSAGES 4

1.2.1 Introduction to SMS 4

1.2.2 Structure of an SMS message 6

1.2.3 SMS Message Sequence 7

1.2.4 SMS CENTER/SMSC 7

1.2.5 International SMS Messaging 8

CHAPTER 2 PIC16F887 MICROCONTROLLER 9

2.1. INTRODUCTION TO PIC (Programmable Intelligent Computer) 9

2.1.1. Introduction to PIC 9 microcontroller

2.1.2. Advantages and disadvantages of PIC 10

2.2 GENERAL INTRODUCTION TO PIC16F887 10

2.2.1 Introduction to PIC16F887 10

2.2.2 Block diagram of PIC16F887 12

2.3 SURVEY OF PIN DIAGRAM, FUNCTION OF EACH PIN 13

2.3.1 PIC16F887 microcontroller pin diagram 13

2.3.2 Memory organization 15

2.3.2.1 Program memory 15

2.3.2.2 Data memory 17

2.3.3 I/O ports of PIC16F887 17

2.4 ANALOG-DIGITAL CONVERTER (ADC) 19

2.4.1 AD 20 conversion result

2.4.2 Analog-to-digital conversion steps 21

2.4.3 ADC registers 22

2.5 COMPARATOR 22

2.6 EUART 24 SERIAL COMMUNICATION

2.6.1 The EUSART operates in asynchronous mode 24

2.6.1.1 EUSART 25 Asynchronous Transmitter

2.6.1.2 EUSART 26 Asynchronous Receiver

2.6.1.3 Clock accuracy with asynchronous operation 28

2.6.2 The EUSART operates in synchronous mode 30

2.7 TIMER 30 OPERATION

2.7.1 TIMER0 30 timer

2.7.2 TIMER1 32

2.7.3 TIMER2 34

2.8 INTERRUPT 35

CHAPTER 3 DESIGNING A CIRCUIT TO AUTOMATICALLY BALANCE TEMPERATURE AND CONTROL DEVICES VIA SMS MESSAGES 37

3.1 INTRODUCTION TO SIM900A MODULE, AT COMMAND SET. 37

3.1.1 Introduction to SIM900A module 37

3.1.2 Features of SIM900A module 37

3.1.3 Examine the pin diagram and function of each pin 40

3.1.4 Survey of AT command set of SIM900A module 42

3.2 SYSTEM BUILDING 44

3.2.1 Automatic temperature balance section 44

3.2.2 SMS control section 45

3.3 HARDWARE DESIGN 46

3.3.1 Circuit diagram 46

3.3.1.1 Source 46

3.3.1.2 Thermal balance circuit 46

3.3.1.3 Control circuit 47

3.3.1.4 Relay 47

3.3.3 Layout circuit 48

CHAPTER 4. RESULTS ACHIEVED BY THE SYSTEM 50

4.1 RESULTS ACHIEVED 50

4.2 PRODUCT OPERATION PROCESS 50

CONCLUSION 53

REFERENCES x

APPENDIX xi

LIST OF ABBREVIATIONS


Written Words

turn off

English Terminology

Vietnamese terminology

3GPP

Third Generation Partnership Project

Third-party collaboration projects

ADC

Analog Digital Converter

Signal converter from

analog to digital

AUC

Authentication Center

Authentication Center

BSS

Base Station Subsystem

Sub-base station system

BTS

Base Transceiver Station

Base Transceiver Station.

CDMA

Code Division Multiple Access

Code division multiple access

CSPDN

Circuit Switched Public Data Network

Public data network

channel circuit

EDGE

Enhanced Data Rates for Global

Evolution

Increase data transmission speed

EIR

Equipment Identity Register

Device identification logger.

ETSI

European Telecommunications

Standards Institute

Telecommunications Standards Institute

Europe

GPRS

General Packet Radio Service

General Packet Radio Service

GSM

Global System for Mobile

Communications

Digital Mobile Information System

global

HLR

Home Location Register

Place of permanent registration

ISDN

Integrated Services Digital network

Integrated Services Digital Network.

MS

Mobile Station

Mobile station

MSC

Mobile-services Switching Centerr

Switching center

network service

NSS

Network Switching Subsystem

System switching network

child

OMC

Operation and Maintenance Center

Exploitation and maintenance center

nourish

OSS

Operation Subsystem

Subsystem operations

PIC

Programmable Interface Controller

Programming control interface

Maybe you are interested!

Design automatic temperature balancing circuit and control device via SMS - 1

Public Land Mobile Network

Terrestrial mobile network.

PSP

Parallel Slave Port

Parallel Sub Port

PSPDN

Packet Switch Public Data Network

Data switching network

public

PSTN

Public Switch Telephone Network

Public switched telephone network.

PWM

Pulse Width Modulation

Voltage regulation method

SIM

Subscriber Identity Module

Subscriber identification module

SMS

Short Message Service

Short Message Service

SMSC

Short message Service Center

Short Message Service Center

SPI

Serial Peripheral Interface

Serial peripheral communication

TDM

Time Division Multiplexing

Time division modulationspace

TDMA

Time Division Multiple Access

Time division multiple access

USB

Universal Serial Bus

Common serial port

VLR

Visitor Location Register

Registration address

WAP

Wireless Application Protocol

Application Protocol No

wire

PLMN

LIST OF DRAWINGS


Number

effect


Image name


Page

1.1

Structure of GSM mobile communication system

3

1.2

GSM system components

3

1.3

Structure of an SMS message

6

2.1

PIC16F887 microcontroller block diagram

12

2.2

PIC16F887 microcontroller pin diagram

13

2.3

PIC16F887 program memory

16

2.4

Register address of PIC16F887

17

2.5

Block diagram of AD

20

2.6

Clock cycle and operating frequency of ADC

20

2.7

Ways to save 10 bit A/D conversion results

21

2.8

Registers related to the A/D controller

22

2.9

Working principle of a simple comparator

23

2.10

Simple block diagram of Comparator

23

2.11

Registers related to the comparator

24

2.12

Block diagram of asynchronous EUSART data transmitter

26

2.13

Registers involved in asynchronous transmission

26

2.14

Block diagram of asynchronous EUSART data receiver

27

2.15

Registers involved in asynchronous data reception

28

2.16

TXSTA register structure

28

2.17

RCSTA register structure

29

2.18

Timer 0 timer block diagram

31

2.19

Registers related to Timer0

32

2.20

T1CON: Timer1 control register

33

2.21

Timer1 block diagram

33

2.22

Registers related to Timer1

34

2.23

T2CON: Timer2 control register

35

2.24

Block diagram of Timer2 timer

35

Registers related to Timer2

35

3.1

SIM900A Module

39

3.2

SIM900A Module Pinout

40

3.2

Block diagram of self-balancing thermal system

44

3.3

Block diagram of device control system using SMS

45

3.4

Power circuit

46

3.5

Thermal balance circuit

47

3.6

Main control circuit

47

3.7

Relay

48

3.8

Temperature balance circuit

48

3.9

Main control circuit

49

4.1

Complete circuit

50

4.2

Turn on device 1

50

4.3

Device 1 enabled notification

50

4.4

turn off device 1

51

4.5

Device 1 turned off notification

51

4.6

Turn on device 2

51

4.7

Device 2 enabled notification

51

4.8

Turn off device 2

51

4.9

Device 2 turned off notification

51

4.10

Turn on device 3

51

4.11

Device 3 enabled notification

51

4.12

Turn off device 3

52

4.14

Turn on device 4

52

4.15

Device 4 enabled notification

52

4.16

Turn off device 4

52

4.17

Device 4 turned off notification

52

4.18

Check room temperature

52

4.19

Room temperature notification

52

2.25

Comment


Agree Privacy Policy *