登录
首页 » arduino » gsm

gsm

于 2023-07-16 发布 文件大小:10.12 kB
0 215
下载积分: 2 下载次数: 1

代码说明:

arduino的io控制输入输出#include #include #include "RC522.h"#include "DS1302.h"#include #define GSMSerial Serial1#define ID "768E4DA5"uint8_t CE_PIN   = 4;uint8_t IO_PIN   = 3;uint8_t SCLK_PIN = 2;char buf[50];//4 bytes Serial number of card, the 5 bytes is verfiy bytesunsigned char serNum[5];unsigned char state_pre=1;/* 创建 DS1302 对象 */DS1302 rtc(CE_PIN, IO_PIN, SCLK_PIN);void print_time() {     /* 从 DS1302 获取当前时间 */     Time t = rtc.time();     snprintf(buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d", t.yr, t.mon, t.date, t.hr, t.min, t.sec);     /* 输出日期到串口 */     Serial.println(buf); }void setup() {   Serial.begin(9600);

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 使用 arduino 的无刷直流电机控制器
    Arduino电子
    2022-07-16 02:30:19下载
    积分:1
  • Arduino串口通信
    用labview和arduino串口通信,读取串口数据,Using labview and arduino, serial communication, serial data read
    2022-07-06 12:21:30下载
    积分:1
  • onewire.h和dallastemperature.h
    补充用库函数,其中包含onewire.h和dallastemperature.h,在lcd和18b20的程序编写中会使用到,可将解压出的两个文件夹直接放入arduino安装位置的libraries里即可。
    2022-03-19 22:04:02下载
    积分:1
  • ESP-CoAP
    说明:  基于ESP8266 的物联网CoAP的实现(Implementation of Internet of Things CoAP Based on ESP8266)
    2019-01-12 00:16:40下载
    积分:1
  • HL5309 IC驅動範例
    此firmware為HL5309操作的範例,有興趣者可以用此程式中的範例去控制HL5309 IC,HL5309 IC可讀寫mifare ultralight tag,可應用在玩具、門禁等身份辨識的場所。
    2022-05-17 01:20:20下载
    积分:1
  • Arduino-MotorControl-v2.1
    说明:  1. 包含步进电机3种控制方式:单四拍、八拍、双四拍 2. 包含步进电机3种运动方式:正转、反转、往复转 3. 电机转速可调、含计数器 4. 代码简单,适合电机初学者、Arduino初学者学习,每个函数均含注释(1. It includes 3 control modes of stepping motor: single four beats, eight beats and double four beats 2. It includes 3 motion modes of stepping motor: forward rotation, reverse rotation and reciprocating rotation 3. motor speed is adjustable, including counter 4. The code is simple, suitable for beginners of motor and Arduino. Each function contains comments)
    2020-05-25 16:11:06下载
    积分:1
  • Maga_test
    test maga board arduino
    2019-06-15 19:12:28下载
    积分:1
  • 微型气象站
    平台为arduino uno r3,采集温湿度,气压、海拔、土壤湿度信息在5110屏幕上显示,并通过nrf24l01传到另外一个arduino采集板上,然后通过串口传给pc机。传感器有ds18b20,dht11,土壤湿度传感器,bmp085,显示屏为5110,一对nrf24l01。library文件夹下为所需的各种库。(The platform for Arduino uno R3, collecting temperature and humidity, air pressure, altitude, soil moisture information displayed in the 5110 screen, and through the nRF24L01 to another Arduino acquisition board, then transferred to the PC through the serial port. The sensor has DS18B20, DHT11, soil humidity sensor, bmp085, display screen is 5110, a pair of nrf24l01.Library folder is required for various libraries.)
    2017-11-15 20:24:27下载
    积分:1
  • 《爱上Arduino》中文版
    教程很不错,我虽然学的单片机是51,但是这个也适合自己摸索(It is good.Though I learn 51,it is suitable for us to do experience.)
    2017-12-24 10:15:11下载
    积分:1
  • arduino单片机控制人体红外感应、超声波测距及控制舵机及卡尔曼滤波的完整程序
    arduino单片机控制人体红外感应、超声波测距及控制舵机及卡尔曼滤波的完整程序
    2022-01-26 03:44:44下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载