首页 > 其他 > 详细

arduino控制SIM900A模块

时间:2019-11-18 09:20:37      阅读:179      评论:0      收藏:0      [点我收藏+]

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.5fc02e8dncAF2p&id=604968021102&_u=i1qf7bf5f4ec

技术分享图片

 

 

 

技术分享图片

 

技术分享图片

 

 

 技术分享图片

 

 技术分享图片

 请注意

后面是 回车 结束

  void sendMeg()
  {
   
  Serial.println("AT");
  delay(2000);
  Serial.println("AT+CMGF=1");
  delay(2000);
  Serial.println("AT+CMGS=\"PHONENUMBER\"");//这里改成你的号码
  delay(2000);
  Serial.print("Test\r\n");//这里写内容
  delay(2000);
  Serial.write(0x1A); //原来这里我是“Serial.print(0x1A);”,一直调不出来,后来改了才成功了,那酸爽
  
 }
void setup() {
  // put your setup code here, to run once:
 
  Serial.begin(9600);
}


void loop() {
  // put your main code here, to run repeatedly:
  delay(15*1000);
  sendMeg();
}

  

arduino控制SIM900A模块

原文:https://www.cnblogs.com/kekeoutlook/p/11879676.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!