Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 23rd December 2003, 06:57 AM   (permalink)
Default Remote Control by cellphone...

Hello!


I am a 5th Yr. Computer Engineering student. As a 5th Yr. Computer Engineering student we are required to have a senior project in order for us to graduate. My senior project is entitled "Remote control using cellphone".

The object of my project is to send remote control commands using a cellphone (SMS). The usser sends command using the a cell phone. The device to be controlled is to be connected to another cellphone via an interfacing box. The cellphone connected to the device that is to be controlled will extract the SMS recieved by the cell phone and determine if this is a valid command. If it is a valid command it will output a cooresponding control signal to the device being controlled.

I have learned that the cellphone communicates with external devices via its port serially, using the RS232 format at 9600 baud rate. The problem is the voltage level of the pin. I dont know what voltage level will be considred high logic and what voltage level will be considered low logic. Another problem is the microcontroller to be used in this project. The only microcontroller I am familiar with are the Microchip PIC series microcontroller, specifically the PIC16F84A. Can I use the PIC16F84A for this purpose? If yes, how am I to program that pic? Do you have any source codes?

Hope somebody could help me (anything as long as it is related to my project)....


Thank you... and Merry Christmas to ALL!!!!!!!!!
KaJuan is offline   Reply With Quote
Old 23rd December 2003, 07:58 AM   (permalink)
Default Re: Remote Control by cellphone...

Quote:
Originally Posted by KaJuan
Hello!


I am a 5th Yr. Computer Engineering student. As a 5th Yr. Computer Engineering student we are required to have a senior project in order for us to graduate. My senior project is entitled "Remote control using cellphone".

The object of my project is to send remote control commands using a cellphone (SMS). The usser sends command using the a cell phone. The device to be controlled is to be connected to another cellphone via an interfacing box. The cellphone connected to the device that is to be controlled will extract the SMS recieved by the cell phone and determine if this is a valid command. If it is a valid command it will output a cooresponding control signal to the device being controlled.

I have learned that the cellphone communicates with external devices via its port serially, using the RS232 format at 9600 baud rate. The problem is the voltage level of the pin. I dont know what voltage level will be considred high logic and what voltage level will be considered low logic. Another problem is the microcontroller to be used in this project. The only microcontroller I am familiar with are the Microchip PIC series microcontroller, specifically the PIC16F84A. Can I use the PIC16F84A for this purpose? If yes, how am I to program that pic? Do you have any source codes?

Hope somebody could help me (anything as long as it is related to my project)....
First thing is to find out what the output from the phone actually is - you can do that with an oscilloscope. If it's TTL level you can feed straight in a PIC pin, if it's RS232 you can use a MAX232 (or even a crude resistor interface).

The PIC16F84A should be fine for what you want, depending what you need to do even the smaller 8 pin PIC's could well be enough.

Probably your first thing to do (after finding out the phone output levels) is to connect it to a PC and monitor what comes out - you can then find exactly what you need the PIC to do.
Nigel Goodwin is offline   Reply With Quote
Old 23rd December 2003, 12:51 PM   (permalink)
Default

A quick search using google gives the ff. links:

http://www.gnokii.org/faq.shtml

http://www.embedtronics.com/nokia/fbus.html

http://www.gadgets.demon.co.uk/nokia61xx/protocol.html

http://www.mwiacek.com/

You might connect one cellphone to the PC using commercially available download cables. Reverse engineer these cables to give you some idea on how to interface them to the PIC.

BTW, the PIC16F84a does not have a asynchronous serial port and so you may have to synthesize one using software. The newer and cheaper PIC16F627 has the USART built-in, saving you one software headache.
__________________
"Having to do with Motion Control"
motion is offline   Reply With Quote
Old 23rd December 2003, 01:10 PM   (permalink)
Default

Quote:
Originally Posted by motion
BTW, the PIC16F84a does not have a asynchronous serial port and so you may have to synthesize one using software. The newer and cheaper PIC16F627 has the USART built-in, saving you one software headache.
This can be an advantage, it's extremely simple to do RS232 in software (hardly any more complicted than using the hardware USART) - and it give the possibility of running in either polarity. The inbuilt USART's are designed to connect to a MAX232 (which inverts the polarity), and usually require a hardware inverter if not using a MAX232.
Nigel Goodwin is offline   Reply With Quote
Old 26th December 2003, 01:52 AM   (permalink)
Default Thank You

Thank you all for helping me in my project by giving me those cool sites, indeed they are useful in the development of my project.


I keep you posted for every developement of my project...


Thanks onece again... Happy Hew Year to ALL !!!!!!!!!
KaJuan is offline   Reply With Quote
Old 28th December 2003, 07:41 AM   (permalink)
Default about Mr. Nigel Goodwin's PIC Board that has pic16f628

Sir, I have visited your site about pic spicifically the RS232 communications. The tutorial needs the MAIN BOARD that has the PIC16F628. I have notice that board does not include a system clock. Why is this so? Can a microcontroller work even though it does not have a system clock?
KaJuan is offline   Reply With Quote
Old 28th December 2003, 09:10 AM   (permalink)
Default Re: about Mr. Nigel Goodwin's PIC Board that has pic16f628

Quote:
Originally Posted by KaJuan
Sir, I have visited your site about pic spicifically the RS232 communications. The tutorial needs the MAIN BOARD that has the PIC16F628. I have notice that board does not include a system clock. Why is this so? Can a microcontroller work even though it does not have a system clock?
As explained in the text on the main page, I used the 16F628 because it has an internal 4MHz oscillator - by selecting that in the fuse settings, along with no MCLR pin, it leaves 16 I/O pins free on an 18 pin chip.
Nigel Goodwin is offline   Reply With Quote
Old 29th December 2003, 09:03 AM   (permalink)
Default about the PIC main board

Thank you verys much sir...

I wasn't able to read that text... I will now... Thank you very much...
KaJuan is offline   Reply With Quote
Old 5th January 2004, 11:07 AM   (permalink)
Default microcontroller to be use

Sir, I already have studied a bit of your tutorial about RS232 communications using the PIC16F628 microcontroller. Would this microcontroller fit my application? or will I have to move to a higher version? PIC16F876? I am still studying the software emulation of the USART using the PIC16F628. I haven't touch the USART capability of the PIC16F628 yet... Any advice?


Thank you in advance.... More power...
KaJuan is offline   Reply With Quote
Old 5th January 2004, 11:43 AM   (permalink)
Default Re: microcontroller to be use

Quote:
Originally Posted by KaJuan
Sir, I already have studied a bit of your tutorial about RS232 communications using the PIC16F628 microcontroller. Would this microcontroller fit my application? or will I have to move to a higher version? PIC16F876? I am still studying the software emulation of the USART using the PIC16F628. I haven't touch the USART capability of the PIC16F628 yet... Any advice?
I should think it would be fine, you don't need loads more I/O pins, and you don't need any of the extra hardware facilities offered by the 16F876. Although the 16F628 'only' has 2K of program memory, that's an awful lot of assembler! - I doubt you will use anywhere near that amount.
Nigel Goodwin is offline   Reply With Quote
Old 6th January 2004, 12:57 AM   (permalink)
Default

Thank you sir!!!!

I don't know if I still have questions about my project, but if I do I'll just post it here again.... thank you onc again for replying....
KaJuan is offline   Reply With Quote
Old 13th January 2004, 08:52 AM   (permalink)
Default capacitors used in your RS232 board

Sir I seen in the MAX232 dat sheets that the capacitors used are all 1uF. How com in your RS232board the capacitor you used were not all 1uF?
KaJuan is offline   Reply With Quote
Old 13th January 2004, 09:04 AM   (permalink)
Default Re: capacitors used in your RS232 board

Quote:
Originally Posted by KaJuan
Sir I seen in the MAX232 dat sheets that the capacitors used are all 1uF. How com in your RS232board the capacitor you used were not all 1uF?
The values aren't 'cast in stone', those I used came off a datasheet as well, they are only used as charge pumps to genertte the +10V and -10V for the RS232, so (to some extent) larger is better.
Nigel Goodwin is offline   Reply With Quote
Old 16th January 2004, 01:51 AM   (permalink)
Default Transmit and Receive Subroutine for Fullduplex RS232 Comm.

Sir will the transmit and receive subroutine for the Half Duplex 8N1 RS232 communication work for Full Duplex 8N1 R2232? They also differ in baud rate but I have already figured out how to reconfigure the routine so it would work for faster baud rate.
KaJuan is offline   Reply With Quote
Old 16th January 2004, 08:27 AM   (permalink)
Default Re: Transmit and Receive Subroutine for Fullduplex RS232 Com

Quote:
Originally Posted by KaJuan
Sir will the transmit and receive subroutine for the Half Duplex 8N1 RS232 communication work for Full Duplex 8N1 R2232? They also differ in baud rate but I have already figured out how to reconfigure the routine so it would work for faster baud rate.
The existing routines are half duplex only, for full duplex you really need a hardware USART and interrupt routines. There are various full duplex routines in MicroChip application notes. Personally I've never felt the need for full duplex.
Nigel Goodwin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 05:25 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.