Click here to Skip to main content
11,412,159 members (63,438 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ATCommands
i am making a project based on GSM which operating with a motion sensor. i am using PIC18F4550 microcontroller. i really dont know how to create the program code especially the ATcommand. could you guide and help me?
Posted 10-Jan-13 5:25am
Comments
Sergey Alexandrovich Kryukov at 10-Jan-13 16:35pm
   
I simply don't understand. GSM is one thing, and a motion sensor is another one. Do you use both? How, what's the idea, the goal of it? Before thinking about the code, it's good to understand the goal and principles of operation. GSM is nothing but a receiver, it does not really detect motion itself...
—SA
Member 10786704 at 30-Apr-14 16:52pm
   
I simply don't understand

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I think OP wants to read the data through Motion sensor in Microcontroller and then send the same data over GSM modem. He has not specified his language ( Keil C or assembly).

for OP,

You need to first use an ADC with PIC. Give output of sensor to ADC. 10 bit ADC goes to 10 bits of DIP port in micro controller. Read the value in main loop. Your GSM modem operates in serial mode. So I would assume the serial in and serial out are connected with other two port bits of mc. once value is read, generate sequence of commands from mc to serial out for sending the message.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 348
1 Sergey Alexandrovich Kryukov 225
2 Sascha Lefévre 175
3 ProgramFOX 130
4 Maciej Los 110
0 Sergey Alexandrovich Kryukov 8,980
1 OriginalGriff 7,263
2 Maciej Los 3,500
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100