SlideShare una empresa de Scribd logo
1 de 42
GSM 1308 MODEM CONTROL
USING
PIC-16F877A MICROCONTROLLER
Presented by
Supervised By
Dr. A.K.M Fazlul Haque
Associate Professor
Department of ETE
Daffodil International
University
Sk.Mustafizur Rahman
ID: 082-19-930
Md. Moktarul Islam
ID: 082-19-938
Md.Emam-ul-Uddin
ID: 082-19-939
Aim of the Project:
Controlling the GSM 1308 modem using PIC16F877A by
improving the existing flowcode microcontroller program that
the modem can work as a more general mobile phone.
Content
 PIC16F877A Microcontroller
E-Blocks
GSM Modem Compiling Procedure
Flowcode Software
Main Programs
Result
Conclusion
PIC16F877A Microcontroller
The name PIC refers to a group of microcontrollers
This is a flexible 40 pin device. The
operating voltage of the microcontroller is
5V
Memory of 16F877A
Flash or EPROM: It is the memory where
the written program is stored.
RAM: It is the memory where the declared
'variables are stored.
EEPROM: It is the memory where the
variables can be permanently stored.
I/O Ports of 16F877A
PORT A : It is connected with Multiprogrammer
board
PORT C: It is Connected with RS232
Communicator
PORT D : It is connected with Keypad
PORT B: It is connected with LCD
E-blocks are small circuit boards each of which consists of a block of electronics that can be snapped
together to form an electronic system. There are two kinds of E-block
E-block
Upstream boards
Downstream boards
Used Components of E-Blocks
EB005 LCD board
EB014 Keypad RS232
Jumper Setting of E-Blocks
Board PORT Settings
Keypad D No settings
LCD B Jumpers on DEFAULT
Sensor A Jumpers on DEFAULT
RS232 C
C
Jumpers:
R& TX SELECTION
CTS & RTS SELECTION
1
Patch System wire links:
SPI/DAC C
Jumpers:
SDO, SDI & SCK SELECTION
A HIP EN SELECTION
1
Patch System wire links:
None
C
Setting up the GSM modem
It can operates between 6vdc to 40vdc
RS232 is used to connect the modem with E-Blocks.
Need a active SIM card with sufficient credit.
Need to connect an Antenna with it to get network connection.
Testing GSM Modem
Before using the GSM modem with E-Block system it needs to be test by
HyperTerminal using different AT Command
•AT+CREG?
•AT%CGREG?
•ATD
•ATH
Checking of GSM, GPRS Setting, Outgoing & Incoming Call
Compiling Procedure
Running the simulation
Project Software
To complete this project there are two software has been used. Their names are given below:
•Flowcode
•PPP
Steps of Flowcode
Clock setting of Microcontroller
•Crystal clock
•RC clock
Clock signal control the speed of operation.
Selection and Editing of Components
RS232 setting
RS232 is the communicator, which Tx and Rx data modem and PIC micro.
Call Macro icon properties
Call to another Macro. Macro means small programs which used many
time.
Call Component Macro
loop icon properties
Loop while:1 means loop forever.
Loop until: until the condition is true.
Loop count: How many time loop are running.
Decision properties
Calculation icon properties
Provide the logical function
String Manipulation
AT+CREG
AT%CGREG?
AT+CLIP=1,1 to see caller ID
ATD
ATA
ATH
Delay
Programmed is running too fast, So Add the delay function
Open the HEX file Send the program
:020000001C2DB5
:08000800FF00030EFC000A0ECC
:0C001000FD00040EFE008A110A12452DAE
:1000200000000000C10B10280800C308031D192898
:10003000080009300000FF3E031D1A2800000000E0
:10004000C30B1928080083160313DA010230DB0002
:100050001030DC006F30DD00E001DD08031908001E
:100060005C08DE00DF015B18DE17DB185F1483130A
:100070005F1883175E0884000008E100E11B742804
Developed Program
Program for calling system:
It has three state:
Idle
Ringing
Connected
When the modem detects an incoming call it transmits the message “RING” at regular
intervals (approximately 2 seconds).
Steps to Write Program:
LCD Initializing
Sending AT+CLIP
Checking incoming call
Taking Number from Keypad
Speed Dialing
Sending ATA
Sending ATH
Main Program for calling
Taking Number from Keypad
Speed dialing
Receiving a Call Call termination
Main Program’s Tx Macro Main Program’s Rx Macro
Program for sending sms
Steps to Write Program:
Taking Number from Keypad
The AT command required to configure
this option is Message Format
command:
AT+CMGF=1
The AT command to send a text
message is:
AT+CMGS=<”number”>
Writing message
<CTRL-Z> to finish sending
Sending Number Sending Message
Program for receiving sms
The AT command required to achieve this is the New Message Indication
command:
AT+CNMI=2,2
Simulation and Result
Software Output
Speed dialling (out going call):
Hardware Output
Speed dialling call termination
If we press ‘*’ Key it will terminate by sending ATH command
Taking and Dialing a Number from Keypad
If we press the ‘5’ key on keypad a option will be appeared showing “Enter No” on Software LCD .than we have
to enter a mobile number which will be saved in a variable named “K_Buffer”.
if we press the ‘#’ Key on keypad, the entered number will be dialled By a AT command that is
“ATD01710036458;”
Incoming Call
Hardware output
Now if we press the ‘#’ key on the keypad the incoming call will be received by sending a AT command to
modem as “ATA”
If we press ‘*’ Key it will terminate.
Sending of sms: When we will press the ‘#’ key a AT command that is “AT+CMGS=<”01717405762”>
” is sent to the modem
Software Output Hardware output
Receiving of sms
The figure is showing received message from a remote mobile phone
Conclusion
There are three existing program has been modified separately for
calling, sending and receiving sms which is necessary to developed a
general phone.
But it works slowly because of during the execution of large program the
device faces some delay as its fixed clock speed and also for limitation of
LCD display and KEYPAD
For Your Time

Más contenido relacionado

La actualidad más candente

Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
Tearsome Llantada
 
Introduction to microcontrollers
Introduction to microcontrollersIntroduction to microcontrollers
Introduction to microcontrollers
Corrado Santoro
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
ASHISH RANJAN
 

La actualidad más candente (20)

PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
PIC microcontroller review
PIC microcontroller reviewPIC microcontroller review
PIC microcontroller review
 
Pic full note
Pic full notePic full note
Pic full note
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
PIC_ARM_AVR
PIC_ARM_AVRPIC_ARM_AVR
PIC_ARM_AVR
 
Microcontroller lec 2
Microcontroller  lec 2Microcontroller  lec 2
Microcontroller lec 2
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
 
Introduction to microcontrollers
Introduction to microcontrollersIntroduction to microcontrollers
Introduction to microcontrollers
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
Pic 18 microcontroller
Pic 18 microcontrollerPic 18 microcontroller
Pic 18 microcontroller
 
Pic16cxx instruction set
Pic16cxx instruction setPic16cxx instruction set
Pic16cxx instruction set
 
AVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfacesAVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfaces
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUs
 

Destacado

TRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECHTRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECH
Pranay Raj
 
Density based traffic light control
Density based traffic light controlDensity based traffic light control
Density based traffic light control
Rohit Nair
 
MY PROJECT-automatic load sharing of transformer by using GSM tecnique.
MY PROJECT-automatic load sharing of transformer by using GSM tecnique.MY PROJECT-automatic load sharing of transformer by using GSM tecnique.
MY PROJECT-automatic load sharing of transformer by using GSM tecnique.
nikhilhiware
 
Density based trafiic control
Density based trafiic controlDensity based trafiic control
Density based trafiic control
nskprasad
 
2743557 dossier-ppe-robot-suiveur-de-ligne
2743557 dossier-ppe-robot-suiveur-de-ligne2743557 dossier-ppe-robot-suiveur-de-ligne
2743557 dossier-ppe-robot-suiveur-de-ligne
Aziz ShadowStokes
 

Destacado (13)

PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Mikroc gps
Mikroc gpsMikroc gps
Mikroc gps
 
Design and Construction of Automatic Three Phase Power System Selector
Design and Construction of Automatic Three Phase Power System SelectorDesign and Construction of Automatic Three Phase Power System Selector
Design and Construction of Automatic Three Phase Power System Selector
 
Density based traffic signal system
Density based traffic signal systemDensity based traffic signal system
Density based traffic signal system
 
Density based-traffic-light-control-system project-2 (3)
Density based-traffic-light-control-system project-2 (3)Density based-traffic-light-control-system project-2 (3)
Density based-traffic-light-control-system project-2 (3)
 
TRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECHTRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECH
 
wireless traffic density control using sensor
wireless traffic density control using sensorwireless traffic density control using sensor
wireless traffic density control using sensor
 
Density based traffic light control
Density based traffic light controlDensity based traffic light control
Density based traffic light control
 
MY PROJECT-automatic load sharing of transformer by using GSM tecnique.
MY PROJECT-automatic load sharing of transformer by using GSM tecnique.MY PROJECT-automatic load sharing of transformer by using GSM tecnique.
MY PROJECT-automatic load sharing of transformer by using GSM tecnique.
 
Density based trafiic control
Density based trafiic controlDensity based trafiic control
Density based trafiic control
 
Smart Traffic Light Controller
Smart Traffic Light ControllerSmart Traffic Light Controller
Smart Traffic Light Controller
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 
2743557 dossier-ppe-robot-suiveur-de-ligne
2743557 dossier-ppe-robot-suiveur-de-ligne2743557 dossier-ppe-robot-suiveur-de-ligne
2743557 dossier-ppe-robot-suiveur-de-ligne
 

Similar a GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER

IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD Editor
 
DTMF BASED MOBILE CONTROLL ROBOT SYSTEM
DTMF BASED MOBILE CONTROLL ROBOT SYSTEMDTMF BASED MOBILE CONTROLL ROBOT SYSTEM
DTMF BASED MOBILE CONTROLL ROBOT SYSTEM
iindranilsarkar
 
Gsm anti theft
Gsm anti theftGsm anti theft
Gsm anti theft
Ashu0711
 
Rajitha priya(wk 413)
Rajitha priya(wk 413)Rajitha priya(wk 413)
Rajitha priya(wk 413)
ammu59
 

Similar a GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER (20)

Himanth_Resume
Himanth_ResumeHimanth_Resume
Himanth_Resume
 
G3602050055
G3602050055G3602050055
G3602050055
 
Home automation and securty using wireless networks
Home automation and securty using wireless networksHome automation and securty using wireless networks
Home automation and securty using wireless networks
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
F0463842
F0463842F0463842
F0463842
 
U50202126129
U50202126129U50202126129
U50202126129
 
U50202126129
U50202126129U50202126129
U50202126129
 
Electronic Control of Unguided Airborne Vehicle (UAV)
Electronic Control of Unguided Airborne Vehicle (UAV)Electronic Control of Unguided Airborne Vehicle (UAV)
Electronic Control of Unguided Airborne Vehicle (UAV)
 
home autimation using GSM
home autimation using GSMhome autimation using GSM
home autimation using GSM
 
Project report on dtmf based door opening system
Project report on  dtmf based door opening systemProject report on  dtmf based door opening system
Project report on dtmf based door opening system
 
DTMF BASED MOBILE CONTROLL ROBOT SYSTEM
DTMF BASED MOBILE CONTROLL ROBOT SYSTEMDTMF BASED MOBILE CONTROLL ROBOT SYSTEM
DTMF BASED MOBILE CONTROLL ROBOT SYSTEM
 
Advanced Automation System in Industrial Applications Using PIC Microcontrol...
Advanced Automation System in Industrial Applications Using  PIC Microcontrol...Advanced Automation System in Industrial Applications Using  PIC Microcontrol...
Advanced Automation System in Industrial Applications Using PIC Microcontrol...
 
Gsm anti theft
Gsm anti theftGsm anti theft
Gsm anti theft
 
GSM Report_2013
GSM Report_2013GSM Report_2013
GSM Report_2013
 
GSM Report_2013
GSM Report_2013GSM Report_2013
GSM Report_2013
 
Rajitha priya(wk 413)
Rajitha priya(wk 413)Rajitha priya(wk 413)
Rajitha priya(wk 413)
 
Microcontroller remote controlling project
Microcontroller remote controlling projectMicrocontroller remote controlling project
Microcontroller remote controlling project
 
Home automation control system using dtmf technology
Home automation control system using dtmf technologyHome automation control system using dtmf technology
Home automation control system using dtmf technology
 
Home automation and security using wireless network
Home automation and security using wireless networkHome automation and security using wireless network
Home automation and security using wireless network
 
Gsm based-automatic-motor-control-and-protection-system(1)
Gsm based-automatic-motor-control-and-protection-system(1)Gsm based-automatic-motor-control-and-protection-system(1)
Gsm based-automatic-motor-control-and-protection-system(1)
 

GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER

  • 1. GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
  • 2. Presented by Supervised By Dr. A.K.M Fazlul Haque Associate Professor Department of ETE Daffodil International University Sk.Mustafizur Rahman ID: 082-19-930 Md. Moktarul Islam ID: 082-19-938 Md.Emam-ul-Uddin ID: 082-19-939
  • 3. Aim of the Project: Controlling the GSM 1308 modem using PIC16F877A by improving the existing flowcode microcontroller program that the modem can work as a more general mobile phone.
  • 4. Content  PIC16F877A Microcontroller E-Blocks GSM Modem Compiling Procedure Flowcode Software Main Programs Result Conclusion
  • 5. PIC16F877A Microcontroller The name PIC refers to a group of microcontrollers This is a flexible 40 pin device. The operating voltage of the microcontroller is 5V
  • 6. Memory of 16F877A Flash or EPROM: It is the memory where the written program is stored. RAM: It is the memory where the declared 'variables are stored. EEPROM: It is the memory where the variables can be permanently stored.
  • 7. I/O Ports of 16F877A PORT A : It is connected with Multiprogrammer board PORT C: It is Connected with RS232 Communicator PORT D : It is connected with Keypad PORT B: It is connected with LCD
  • 8. E-blocks are small circuit boards each of which consists of a block of electronics that can be snapped together to form an electronic system. There are two kinds of E-block E-block Upstream boards Downstream boards
  • 9. Used Components of E-Blocks EB005 LCD board EB014 Keypad RS232
  • 10. Jumper Setting of E-Blocks Board PORT Settings Keypad D No settings LCD B Jumpers on DEFAULT Sensor A Jumpers on DEFAULT RS232 C C Jumpers: R& TX SELECTION CTS & RTS SELECTION 1 Patch System wire links: SPI/DAC C Jumpers: SDO, SDI & SCK SELECTION A HIP EN SELECTION 1 Patch System wire links: None C
  • 11. Setting up the GSM modem It can operates between 6vdc to 40vdc RS232 is used to connect the modem with E-Blocks. Need a active SIM card with sufficient credit. Need to connect an Antenna with it to get network connection.
  • 12. Testing GSM Modem Before using the GSM modem with E-Block system it needs to be test by HyperTerminal using different AT Command •AT+CREG? •AT%CGREG? •ATD •ATH Checking of GSM, GPRS Setting, Outgoing & Incoming Call
  • 14. Project Software To complete this project there are two software has been used. Their names are given below: •Flowcode •PPP Steps of Flowcode
  • 15. Clock setting of Microcontroller •Crystal clock •RC clock Clock signal control the speed of operation.
  • 16. Selection and Editing of Components
  • 17. RS232 setting RS232 is the communicator, which Tx and Rx data modem and PIC micro.
  • 18. Call Macro icon properties Call to another Macro. Macro means small programs which used many time.
  • 20. loop icon properties Loop while:1 means loop forever. Loop until: until the condition is true. Loop count: How many time loop are running.
  • 22. Calculation icon properties Provide the logical function
  • 24. Delay Programmed is running too fast, So Add the delay function
  • 25. Open the HEX file Send the program :020000001C2DB5 :08000800FF00030EFC000A0ECC :0C001000FD00040EFE008A110A12452DAE :1000200000000000C10B10280800C308031D192898 :10003000080009300000FF3E031D1A2800000000E0 :10004000C30B1928080083160313DA010230DB0002 :100050001030DC006F30DD00E001DD08031908001E :100060005C08DE00DF015B18DE17DB185F1483130A :100070005F1883175E0884000008E100E11B742804
  • 26. Developed Program Program for calling system: It has three state: Idle Ringing Connected When the modem detects an incoming call it transmits the message “RING” at regular intervals (approximately 2 seconds). Steps to Write Program: LCD Initializing Sending AT+CLIP Checking incoming call Taking Number from Keypad Speed Dialing Sending ATA Sending ATH
  • 27. Main Program for calling
  • 30. Receiving a Call Call termination
  • 31. Main Program’s Tx Macro Main Program’s Rx Macro
  • 32. Program for sending sms Steps to Write Program: Taking Number from Keypad The AT command required to configure this option is Message Format command: AT+CMGF=1 The AT command to send a text message is: AT+CMGS=<”number”> Writing message <CTRL-Z> to finish sending
  • 34. Program for receiving sms The AT command required to achieve this is the New Message Indication command: AT+CNMI=2,2
  • 35. Simulation and Result Software Output Speed dialling (out going call): Hardware Output
  • 36. Speed dialling call termination If we press ‘*’ Key it will terminate by sending ATH command
  • 37. Taking and Dialing a Number from Keypad If we press the ‘5’ key on keypad a option will be appeared showing “Enter No” on Software LCD .than we have to enter a mobile number which will be saved in a variable named “K_Buffer”. if we press the ‘#’ Key on keypad, the entered number will be dialled By a AT command that is “ATD01710036458;”
  • 38. Incoming Call Hardware output Now if we press the ‘#’ key on the keypad the incoming call will be received by sending a AT command to modem as “ATA” If we press ‘*’ Key it will terminate.
  • 39. Sending of sms: When we will press the ‘#’ key a AT command that is “AT+CMGS=<”01717405762”> ” is sent to the modem Software Output Hardware output
  • 40. Receiving of sms The figure is showing received message from a remote mobile phone
  • 41. Conclusion There are three existing program has been modified separately for calling, sending and receiving sms which is necessary to developed a general phone. But it works slowly because of during the execution of large program the device faces some delay as its fixed clock speed and also for limitation of LCD display and KEYPAD

Notas del editor

  1. -