基于GSM的运动探测器项目 [英] GSM based motion detector project

查看:93
本文介绍了基于GSM的运动探测器项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个基于GSM的项目,该项目使用运动传感器进行操作。我正在使用PIC18F4550微控制器。我真的不知道如何创建程序代码,尤其是ATcommand。你可以指导和帮助我吗?

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?

推荐答案

我认为OP希望通过微控制器中的运动传感器读取数据,然后通过GSM调制解调器发送相同的数据。他没有指定他的语言(Keil C或汇编)。



for OP,



你需要首先使用带PIC的ADC。将传感器输出给ADC。 10位ADC转到微控制器的10位DIP端口。读取主循环中的值。您的GSM调制解调器以串行模式运行。所以我假设串行输入和串行输出与mc的其他两个端口位连接。读取一次值后,生成从mc到serial out的命令序列,用于发送消息。
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.


这篇关于基于GSM的运动探测器项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆