上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: 矩阵键盘按键说明 1 2 3 确认键 4 5 6 手动关闭锁 7 8 9 修改密码密码还原 0 删除键 退出键 #include <reg52.h> //调用单片机头文件 #define uchar unsigned char //无符号字符型 宏定义 变量范围0~255 #define uint 阅读全文
posted @ 2021-03-11 12:42 MCU创新DIY 阅读(124) 评论(0) 推荐(0)
摘要: 仿真电路 #include <reg52.h> #include <intrins.h> #include <string.h> bit bdata flag_key; #include "main.h" #include "LCD1602.h" #include "HX711.h" #includ 阅读全文
posted @ 2021-03-11 11:39 MCU创新DIY 阅读(113) 评论(0) 推荐(0)
摘要: *此仿真是基于单片机电机转速测量装置,使用了用L298驱动直流电机,并用按键控制电机正转、反转、加速、减速、停止、启动等功能,并用LCD作为电机状态显示,实现了基于L298N对电机PWM调速(示波器可观察PWM调速过程)。 #include <reg52.h> #include <intrins.h 阅读全文
posted @ 2021-03-11 11:33 MCU创新DIY 阅读(58) 评论(0) 推荐(0)
摘要: 仿真电路 本设计完整的实现了电子频率计设计,6位led数码管显示,累计每秒进入单片机的外部脉冲个数,显示在led数码管上。并使用按键进行自动测量。 /****************************************************************** AT89S51的 阅读全文
posted @ 2021-03-11 11:25 MCU创新DIY 阅读(81) 评论(0) 推荐(0)
摘要: 仿真电路 #include "inif.h" #include <at89x52.h> #include <absacc.h> #include "LCD1602.H" unsigned char data ad_result[16]={0}; unsigned char data dianliu_ 阅读全文
posted @ 2021-03-11 10:16 MCU创新DIY 阅读(59) 评论(0) 推荐(0)
摘要: 仿真电路 //包含头文件 #include <REG51.h> #include<intrins.h> //宏定义 #define LCM_Data P0 //将P0口定义为LCM_Data #define uchar unsigned char #define uint unsigned int 阅读全文
posted @ 2021-03-11 10:13 MCU创新DIY 阅读(83) 评论(0) 推荐(0)
摘要: 功能: 一个电子密码锁,应该能实现以下功能: (1)能够从键盘中输入密码,并相应地在显示器上显示‘*’; (2)能够判断密码是否正确,正确则开锁,错误则输出相应信息; (3)能够实现密码的修改; (4)断电或者单片机复位后能够保存之前的操作,比如密码的修改; (5)在操作错误达到一定次数后能够报警。 阅读全文
posted @ 2021-03-11 10:12 MCU创新DIY 阅读(214) 评论(0) 推荐(0)
摘要: 仿真电路: 程序: /***** LCD 12864 with KS0108B controller display driver *****/ #define uchar unsigned char #include<drive_functions.h> #include<get_keys.h> 阅读全文
posted @ 2021-03-11 10:10 MCU创新DIY 阅读(43) 评论(0) 推荐(0)
摘要: 仿真电路: 程序: #include<reg52.h> //头文件 #include<lcd12864.H> #include<HX711.h> #include<KEY.h> #include<math.h> #include<stdio.h> #define MAX 4 //宏定义,单价最大输入 阅读全文
posted @ 2021-03-11 10:08 MCU创新DIY 阅读(92) 评论(0) 推荐(0)
摘要: 功能: 使用方法: 打开电路图并运行 按键值1,可进入一倍分压模式 按键值2,可进入2.5倍分压模式 按键值3,可进入10倍分压模式 按键值4,可进入25倍分压模式 (注:最终1602显示的结果是分压后的电压再乘以倍数,也即1602会显示真实的电压值) #include <reg52.H> #inc 阅读全文
posted @ 2021-03-11 09:56 MCU创新DIY 阅读(52) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页