Call A handphone using Microcontroller PIC16F877A

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Call A handphone using Microcontroller PIC16F877A

Postby E11022 » Tue Nov 29, 2011 8:17 pm

Hi,

i am having a big problem which need to be solved within a week.
First, i am doing a simple alarm system. When the sensor detects break in, the speaker will sounds and at the same time, the handphone that is connected to the PIC will call 999 or pre-determined number.

I am done with the Sensor- PIC- Alarm(Buzzer).

Now, i dont know how to do the programming and connections for PIC-Handphone.
I plan to use R2R to generate DTMF tones like below:
untitled.GIF
Project


I am not sure of the circuit for PIC and R2R. Now, i am just connecting R2R input D0-D7 into my PIC Port D. Is this correct? Then the Output pin and GND pin of the R2R circuit will connect to my Handphone.
1.GIF
R2R
1.GIF (5.68 KiB) Viewed 6958 times

P/S: I am using PIC16F877A and i planned to use NOKIA 3310 as the handphone(recycle the phone).

I research online for some time and i am blur now. I saw examples using RS323, MAX ic, Tone generator, Amplifier, GSM modem, SMS, AT command, Hyperterminal. All this making me becoming more and more confused.

Please advice me on how to do the circuit connection from PIC to R2R and Handphone
AND also please teach me how to write programming for the DTMF tones in order for my handphone to auto-dial a number while break in happens?



Thanks.
From,
Alice
E11022
Novice
 
Posts: 27
Joined: Tue Nov 15, 2011 10:13 pm

Re: Call A handphone using Microcontroller PIC16F877A

Postby Brian Griffin » Tue Nov 29, 2011 9:24 pm

Do you have a GSM modem? If you have it, connect it through the serial interface, send commands to the modem by using the microcontroller.

If you need to connect the thing to the land-line, you may need to use the DAC and to generate the tones. Note that tone-generation can be very difficult for staters.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: Call A handphone using Microcontroller PIC16F877A

Postby E11022 » Tue Nov 29, 2011 9:29 pm

Brian Griffin WROTE:Do you have a GSM modem? If you have it, connect it through the serial interface, send commands to the modem by using the microcontroller.

If you need to connect the thing to the land-line, you may need to use the DAC and to generate the tones. Note that tone-generation can be very difficult for staters.


No, i do not have a GSM modem, but i saw samples online where they used Handphone as the GSM modem, but i am not sure about the connections.

I am not connecting the PIC to land-line but to a HANDPHONE, but i am not sure of how to make the PIC send commands to my handphone( call 999).
E11022
Novice
 
Posts: 27
Joined: Tue Nov 15, 2011 10:13 pm

Re: Call A handphone using Microcontroller PIC16F877A

Postby low5545 » Tue Nov 29, 2011 9:36 pm

To dial a number/send a SMS, we don't use DTMF tones to communicate, we use AT Commands. It's better to use a GSM modem instead of a handphone although they are more expensive. We couldn't know if they are compatible with AT Commands. Its difficult to calling a number but we can still send SMS (you can always SMS the police's SMS line - 32728) We communicate to the GSM Modem through UART. You'll need a RS232 to TTL converter circuit (MAX232...) as the GSM Modem uses a RS232 interface while the MCU TTL (5V). To know more about AT Commands, try these links:


Hope this helps.
low5545
Discoverer
 
Posts: 70
Joined: Wed Jul 27, 2011 5:55 pm
Location: Kuala Lumpur

Re: Call A handphone using Microcontroller PIC16F877A

Postby E11022 » Tue Nov 29, 2011 10:01 pm

low5545 WROTE:To dial a number/send a SMS, we don't use DTMF tones to communicate, we use AT Commands. It's better to use a GSM modem instead of a handphone although they are more expensive. We couldn't know if they are compatible with AT Commands. Its difficult to calling a number but we can still send SMS (you can always SMS the police's SMS line - 32728) We communicate to the GSM Modem through UART. You'll need a RS232 to TTL converter circuit (MAX232...) as the GSM Modem uses a RS232 interface while the MCU TTL (5V). To know more about AT Commands, try these links:


Hope this helps.


Oh, i thought DTMF can be used too.. >.<
Just 1 question, if i use a GSM modem communicate through UART, it is definitely connected to PC??cause i need an individual circuit.
E11022
Novice
 
Posts: 27
Joined: Tue Nov 15, 2011 10:13 pm

Re: Call A handphone using Microcontroller PIC16F877A

Postby low5545 » Tue Nov 29, 2011 10:06 pm

No. can also use PIC, Arduino.....
low5545
Discoverer
 
Posts: 70
Joined: Wed Jul 27, 2011 5:55 pm
Location: Kuala Lumpur

Re: Call A handphone using Microcontroller PIC16F877A

Postby E11022 » Tue Nov 29, 2011 10:21 pm

Okay, thanks Low. Let me do further research on it. Thanks lot :)
Btw, why handphone cnt use DTMF tones?
E11022
Novice
 
Posts: 27
Joined: Tue Nov 15, 2011 10:13 pm

Re: Call A handphone using Microcontroller PIC16F877A

Postby low5545 » Tue Nov 29, 2011 10:40 pm

Never seen one, but it may just do it. Better stick to a GSM Modem.
low5545
Discoverer
 
Posts: 70
Joined: Wed Jul 27, 2011 5:55 pm
Location: Kuala Lumpur

Re: Call A handphone using Microcontroller PIC16F877A

Postby E11022 » Tue Nov 29, 2011 10:52 pm

Thanks LOW..i gonna start fighting for it..left few days to settle it.. Thanks lot. Ur advice really help me :)
E11022
Novice
 
Posts: 27
Joined: Tue Nov 15, 2011 10:13 pm

Re: Call A handphone using Microcontroller PIC16F877A

Postby low5545 » Tue Nov 29, 2011 11:01 pm

:D
low5545
Discoverer
 
Posts: 70
Joined: Wed Jul 27, 2011 5:55 pm
Location: Kuala Lumpur

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest