登录
首页 » arduino » gsm

gsm

于 2023-07-16 发布 文件大小:10.12 kB
0 189
下载积分: 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的AS608+RC522极致智能门禁系统程序 ASR MO8-B语音
    包括指纹开锁、语音开锁、刷卡开锁 指纹模块AS608 语音模块ASR MO8-B 射频模块RC522 主控芯片arduino uno 射频卡s50 M1卡 三种开锁方式通过两种时开锁通过 锁使用得是继电器驱动得电磁锁 显示使用的是2.4寸 OLED
    2022-01-22 06:39:41下载
    积分:1
  • Invensense Embedded Motion Driver 6.12
    Invensense Embedded Motion Driver   6.12 using for arduino and stm32
    2022-07-10 13:19:21下载
    积分:1
  • Arduino-陀螺仪控制步进电机
    与单极步进电机不同,双极步进电机每相只有一个单绕组,没有抽头。 为了反转磁极,绕组中的电流需要反转,这意味着双极步进电机驱动通常更加复杂并且通常需要H桥排列。 由于没有公共端,每相有两个引线,典型的两相电机会有四根引线。 尽管双极电机通常驱动更加复杂,但它们确实具有它们的优点,因为更好使用的绕组,双极电机比同重量的单极电机更强大。 这是因为单极步进电机在相同空间中有两倍的导线量,并且在任何一个时间只能使用其一半,这意味着单极电机仅有约50%的效率。(Unlike the monopole stepper motor, the bipolar step motor has only one single winding per phase, without a tap. In order to reverse the magnetic pole, the current in the winding needs to be reversed, which means that the bipolar step motor drive is usually more complex and usually requires a H bridge arrangement. Since there is no public end, each phase has two leads, the typical two phase motor will have four lead. Although bipolar motors are usually driven more complex, they do have their advantages, because the better use of windings and bipolar motors is stronger than the same weight monopolar motors. This is because the unipolar stepper motor has two times of wire quantity in the same space, and it can only use half of it at any time, which means that the single pole motor is only about 50% efficiency.)
    2018-01-11 17:56:45下载
    积分:1
  • robosensorping
    #include #include   Servo servo1; Servo servo2; Servo servo3;  #define TRIGGER_PIN  12 #define ECHO_PIN     13 int pos = 0; Ultrasonic ultrasonic(TRIGGER_PIN, ECHO_PIN); void setup()  {    servo1.attach(8); 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-22 13:52:38下载
    积分:1
  • 六足步行序列使用 32 通道驱动程序使用 IK
    六足步行序列使用 32 通道驱动程序使用 IK
    2022-10-05 04:35:02下载
    积分:1
  • FFT使用Arduino Uno
    在这里,我已经开发了一个稳定的FFT算法,Arduino兼容。我已经把它从各种类似的网站GitHub和合并在一个程序。所以如果你真的想找到FFT请用这个。它的有趣。欢迎任何建议。
    2022-03-15 04:49:43下载
    积分:1
  • 01.Basics
    流水灯:LED小灯依次亮起再依次熄灭亮亮亮亮亮亮亮亮亮亮亮亮亮亮亮亮了(Running light: the LED light turns on in turn and then goes out in turn, bright, bright, bright, bright, bright and bright)
    2017-12-31 13:48:14下载
    积分:1
  • 线在 Arduino 的追随者代码,可以轮流锐角
    代码来回建筑使用基于泰文 328 Arduino 平台上的嵌入式微型控制器线追随者。有 5 光电二极管作为传感器读取使用 arduino。要追溯到的行被假定为黑我颜色和背景必须是白色。因此上面的白色部分传感器会产生较高的值作为输出,上面的黑色部分要低。现在逻辑写入驱动电机,控制使用 IC L298 每个电机的转速。
    2022-02-15 04:21:47下载
    积分:1
  • AN1445_An1444
    Antenna Design Guide
    2017-10-30 17:34:57下载
    积分:1
  • Ramps
    RAMPS Driver for Prusa i3.
    2018-05-22 22:15:46下载
    积分:1
  • 696518资源总数
  • 105949会员总数
  • 22今日下载