自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(102)
  • 收藏
  • 关注

原创 基于ATMEGA8A_AVR单片机温度测控系统proteus仿真

仿真电路图:部分参考代码:#include <mega48.h>#include <delay.h>// DS18b20 Temperature Sensor functions#include <ds18b20.h>// Alphanumeric LCD Module functions#include <alcd.h>#define ADC_VREF_TYPE 0x60#define Temp_Set_Key_Not_Pres

2021-12-20 22:09:11 1372

原创 基于ATMEGA16_AVR单片机uart多机通信proteus仿真

仿真电路图:部分参考代码:#include <mega16.h>flash unsigned char led_7[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};unsigned char point=1; // External Interrupt 0 service routineinterrupt [USART_RXC] void usart_rx_isr(void)

2021-12-20 22:07:05 987

原创 基于ATMEGA8A_AVR单片机及MAX6675的K型热电偶proteus仿真

仿真电路图:部分参考代码:#include<mega8.h>#include <math.h>#include <delay.h>#define Date16 PORTD.5#define CLK PORTD.7#define RCLK PORTD.6#define DateIN PINB.0#define MCLK PORTB.1#define CS PORTB.2const unsigned char Dis_Code[]

2021-12-20 22:04:46 931

原创 基于AVR单片机的简易计算器proteus仿真

仿真电路图如下:部分参考代码:#include "mega16.h"#include "1602.h"#include "key.h"float k1,k2; //记录最终输入运算的两个数uint one,two,three,four; //记录每次输入的数字uint flag; //计数标志位uint flag1,flag2; //第一个数 第二个数 完成标志位uint flag3;//记录加减乘除标志位

2021-12-20 17:38:46 1374

原创 基于AVR单片机PWM控制直流电机转速转向proteus仿真

仿真电路图:部分参考代码/*****************************************************This program was produced by theCodeWizardAVR V2.03.4 StandardProject : Version : Date : 7/26/2009Author : Company : Comments: Chip type : ATmega32Program type

2021-12-20 17:17:05 563

原创 基于AVR单片机ATMEGA16A的四路多点测温系统proteus仿真

电路图设计:部分参考代码:#include <iom16v.h>#include <macros.h>#include "ds18b20.h"//#include "lcd1602.h"//微妙级延迟函数avr 16 以8MHz为例加上for循环,他需要执行1142条指令才是1ms,void delay_1us(void){ asm("nop");}void Delay_1us(unsigned int x)//所以这里存在一定的偏差。{ uns

2021-12-20 17:14:57 485

原创 基于AVR单片机及74HC595驱动数码管proteus仿真

电路图设计:部分代码:#include<iom16v.h>#include<macros.h>void delay(int k){ int i=0,j=0; for(i=0;i<k;i++){ for(j=0;j<6;j++){ ; } }}void InputData(unsigned char data){ unsigned char i; unsigned char k; for(i=0;i<

2021-12-20 17:12:16 587

原创 基于51单片机的按键开关控制多种花样霓虹灯proteus仿真

仿真电路图1:具有6种模式1.从中间分别向两边散开流动;2.从两边分别向中间聚拢流动;3.两个灯向从左边向右边流动;4.两个灯向从右边向左边流动;5.一个灯向从左边向右边流动;6.一个灯向从右边向左边流动;仿真电路图2:根据一个按键的输入来实现以下4种显示状态的切换:1)全亮2)全部闪烁3)至左而右流水灯循环(第1、3、5、7奇数个发光二极管亮灭)4)至右而左流水灯循环(第8、6、4、2偶数个发光二极管亮灭)部分参考代码#include<reg51.h>#in

2021-11-07 17:29:17 9477

原创 基于51单片机的多彩霓虹灯控制系统proteus仿真

仿真电路图:部分代码:#include<reg51.h> void delay(unsigned char ms) //延时函数 { unsigned char i,j,k,n; for (k=0;k<ms;k++) for(i=0;i<20;i++) for(j=0;j<13;j++) for(n=0;n<2;n++); } void code shanshou0() //显示模式函数 {

2021-11-07 17:20:37 2490

原创 基于51单片机的可由按键切换12\24小时制的电子时钟proteus仿真

仿真电路图:部分源代码:#include<reg51.h>#define uchar unsigned char #define uint unsigned intsbit lcdrs=P3^5; sbit lcden=P3^4;sbit s1=P3^0; sbit s2=P3^1; sbit s3=P3^2; sbit s4=P3^3; sbit beep=P2^2; sbit led=P2^3; uchar count,s1num,s4num;char

2021-10-27 17:16:41 3981

原创 基于51单片机的步进电机控制系统proteus仿真

仿真电路图:部分源代码:#define LCD_GLOBAL 1#include "lcd.h"/********************************************************************************************* 函数名称:lcdDelay(uint a)* 功 能:延迟时间=a*1ms* 入口参数:* 出口参数:无************************************************

2021-10-26 17:41:52 1836

原创 基于51单片机的继电器控制照明设备proteus仿真

仿真电路图:部分源程序:/**继电器控制照明设备**/#include <reg51.h>typedef unsigned char uint8;typedef unsigned int uint16;#define K1_DOWN P1 & 0x01 //K1按键定义#define RELAY_SWITCH() P2 ^= 0x10 //继电器开关切换控制#define LED_Light() P2 ^= 0x04void delay

2021-10-26 17:18:49 1697

原创 基于51单片机的万用表proteus仿真

仿真图:部分源程序:#include <reg52.h>#include "LCD.h"#include "Delay.h"#include "AD.h"#include <measure_define.h>#include <KEY_FUNCTION_DEFINE.H>#include <Cap_define.h>void ININT_int1(void);extern unsigned char key_number;extern

2021-10-25 19:02:48 3131

原创 基于51单片机的DAC双路转换锯齿波三角波 汇编 仿真

硬件设计(末尾附文件)代码设计 ORG 0000H LJMP START ORG 0100HSTART: MOV R2, #128 MOV A, #00H LOOP1: MOV DPTR, #07FFFH MOVX @DPTR, A ;mov P0,A MOV DPTR, #0BFFFH MOVX @DPTR, A ;mov P1,A MOV DPTR, #0DFFFH MOVX @DPTR, A INC A

2021-07-06 15:52:43 1893 1

原创 基于51单片机的正反转可控步进电机proteus仿真

硬件设计(末尾附文件)代码设计#include <reg52.h>#define uint unsigned int#define uchar unsigned charuchar code FFW[]={ 0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09}; //正转uchar code REV[]={ 0x09,0x08,0x0c,0x04,0x06,0x02,0x03,0x01}; //反转sbit K1 =

2021-07-06 15:11:28 3135

原创 基于51单片机的模拟汽车左右转向灯proteus仿真

硬件设计(末尾附文件)代码设计#include<reg51.h>sbit LED_L=P1^0;sbit LED_R=P1^1;sbit S_L=P3^0;sbit S_R=P3^1;void delay(unsigned int i){ unsigned int k; for(k=0;k<i;k++);}void main(){ bit left,right; while(1) { left=S_L; right=S_R;

2021-07-06 14:09:47 15524 1

原创 基于51单片机的数码管自动顺序显示数字1-8 proteus仿真

硬件设计(末尾附文件)部分代码设计#include <reg52.h>#define uint unsigned int#define uchar unsigned charsbit WLE=P2^6;sbit DLE=P2^7;uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};uchar code pos[]={0xf

2021-07-03 11:28:33 3352

原创 基于51单片机的数码管按键数字显示0-F proteus仿真

硬件设计(末尾附文件)代码设计//#include <reg51.h># include <STC12C5A60S2.h># define uchar unsigned char # define uint32 unsigned long int# define sint32 signed long int# define vtime 3000 //定时3ms,一帧8*3=24ms,频率=40Hz//数码管位选循环变量uchar wi=0;//共阴数码管段

2021-07-03 11:13:37 2436

原创 0302基于STM32的数码管动态扫描proteus仿真

硬件设计(末尾附文件)代码设计#include "stm32f10x.h"#include "smg.h"#include "Delay.h"uint16_t table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};uint16_t wei[]={0x0fe,0x0fd,0x0fb,0x0f7,0x0ef,0x0df,0xff,0xff};uint8_t i;int main(void){ SMG_Init(); wh

2021-07-02 15:03:59 1722

原创 基于51单片机的4X4键盘数码管显示proteus仿真

硬件设计(末尾附文件)#include<reg51.h>#define uchar unsigned char #define uint unsigned int#define GPIO_KEY P1#define weixuan P2//0~F的共阳数码管段码,最后一个是黑屏const uchar SEG_CODE[] ={ 0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8, 0x80,0x90,0x88,0x83,0xC6,0xA1,0x

2021-07-02 14:22:10 1909 1

原创 基于51单片机的联合控制开关LED小灯proteus仿真

硬件设计(末尾附文件)#include"reg52.h" sbit C1=P3^0; //定义数码管四个引脚 sbit C2=P3^1; sbit C3=P3^2; sbit C4=P3^3; unsigned char F=0; //定义系统是否开启 unsigned char A=0; //定义D3灯开关次数 sbit D1=P1^0; //LED引脚 sbit D2=P1^1; sbit D3=P1^2; sbit SW1=P2^0; //开关引

2021-07-02 11:40:15 1198

原创 基于51单片机的货车电子地秤proteus仿真

硬件设计(末尾附文件)代码设计//线性区间标度变换公式: y=(115-15)/(243-13)*X+15kpa #include <AT89X52.h> #include <intrins.h>#include <stdio.h>#define uchar unsigned char#define uint unsigned int#define R24C04ADD 0xA1#define W24C04ADD 0xA0//ADC

2021-07-01 11:19:34 522

原创 基于51单片机的人行道交通灯汇编proteus仿真

硬件设计(末尾附文件)代码设计ORG 0000HA_BIT EQU 20H ;用于存放南北十位数B_BIT EQU 21H ;用于存放南北十位数C_BIT EQU 22H ;用于存放东西十位数D_BIT EQU 23H ; 用于存放东西位数TEMP1 EQU 24H ;用于存放第一二南北状态要显示的时间TEMP2 EQU 25H ;用于存放第一二东西状态要显示的时间TEMP3 EQU 26H ;用于存放第三第四南北状态要显示的时间TEMP4 EQU 27H;用于存放第三第四

2021-07-01 10:36:31 1940 1

原创 基于51单片机的频率计 数码管 汇编proteus仿真

硬件设计(末尾附文件)代码设计 VALUEH EQU 20H ;暂存TH1的值 VALUEL EQU 21H ;暂存TL1的值 DATE0 EQU 22H ;暂存计数值的BCD码 DATE1 EQU 23H DATE2 EQU 24H DATE3 EQU 25H DATE4 EQU 26H DATE5 EQU 27H COUNT EQU 30H

2021-06-30 15:07:02 1977 1

原创 基于51单片机的四位共阴数码管秒表proteus仿真

硬件设计(末尾附文件)代码设计#include "reg51.h"#include "intrins.h"#define GPIO_DIG P2 //数据端#define uchar unsigned char //重命名关键字#define uint unsigned int //重命名关键字sbit K1=P3^0; //开始sbit K2=P3^1; //暂停sbit K3=P3^2; //复位sbit L1=P1^4; //数码管

2021-06-30 10:55:30 10122

原创 基于51单片机的两相步进电机控制系统proteus仿真

硬件设计(末尾附文件)代码设计#include "MAIN.H"#include "LCD1602.h"#include "PCF8591.h"unsigned char code FFW_X[8]={0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09}; //X反转顺序unsigned char code FFZ_X[8]={0x09,0x08,0x0c,0x04,0x06,0x02,0x03,0x01}; //X正转顺序unsigned char c

2021-06-29 20:17:23 2085 1

原创 基于51单片机的电动车防盗系统proteus仿真

硬件设计(末尾附文件)代码设计#include <reg52.h>#define uc unsigned char#define ui unsigned intsbit SOS = P1^2;//测试sbit bufang = P1^4;//布放按键sbit chefang= P1^3;//撤防sbit baojing= P1^1;//蜂鸣器sbit jdq = P1^0;//继电器sbit led1=P0^2;sbit led2=P0^3;sbit sos1=P

2021-06-29 17:01:13 1351

原创 基于51单片机及L298N的直流电机调速系统proteus仿真

硬件设计(末尾附文件)代码设计#include<reg51.h>#include<intrins.h> #include<math.h>#include "lcd.h"#include "Key.h"#include "Motor.h"#include "LCD12864.h"#include "KeyBoard.h"#include "LCD12864.h"#include "LcdShow.h"#include "PID.h"exte

2021-06-29 16:58:00 11473 1

原创 基于51单片机的ADC热敏电阻测温系统proteus仿真

硬件设计(末尾附文件)代码设计#include <reg51.h>#include <intrins.h>#define uchar unsigned char#define uint unsigned intsbit CS =P1^0;sbit CLK=P1^1;sbit DIO =P1^2;sbit K_H=P1^3;sbit K_L=P1^4;sbit LED_U=P1^5;sbit LED_D=P1^6;sbit SOUNDER=P1^7; s

2021-06-22 17:24:15 6893

原创 基于51单片机的四路超声波测距温度显示proteus仿真

硬件设计(末尾附文件)代码设计#include <REGX52.H>#include <stdio.h>#include "LCD.H"#include "18B20.H"#include "delay.h"sbit csb=P1^4; // 第一路 Trigsbit csbint=P1^5; // 第一路 Echosbit csb1=P1^6; // 第二路 Trigsbit csbint1=P1^7; // 第二路 Echosb

2021-06-22 16:50:02 1575

原创 基于matlab的车牌图像识别处理系统

代码设计(末尾附文件)主程序:clc; %清空命令行clear all; %清除工作空间所有变量close all; %关闭所有图形窗口% ==============开始计时==============================tic%=====================读入图片=========================[fn,pn,fi] = uigetfile('汽车图片\*.jpg','选择图片');%显示检索文件的对话框 fn返

2021-06-22 15:40:59 567

原创 基于STM32单片机的智能窗帘仿真设计

硬件设计(末尾附文件)代码设计主程序:#define __MIAN_C#include "main.h"#include "stdio.h"#include "stm32f10x.h"#include "stm32f10x_gpio.h"#include "bsp_gpio.h"#include "bsp_clkconfig.h"#include "bsp_delay.h"#include "bsp_lcd1602.h"#include "bsp_key.h"#include

2021-06-21 15:46:05 7168

原创 基于STM32单片机的篮球计时记分器仿真设计

硬件设计(末尾附文件)代码设计主程序:#define __MAIN_C#include "main.h"#include "stm32f10x.h"#include "stm32f10x_gpio.h"#include "bsp_gpio.h"#include "bsp_clkconfig.h"#include "bsp_delay.h"#include "bsp_lcd1602.h"#include "bsp_GeneralTim.h" #include "bsp_keyArr

2021-06-21 14:20:08 5763

原创 基于STM32单片机的电子秤仿真设计

硬件设计(末尾附文件)代码设计HX711:#include "bsp_hx711.h"#include "bsp_delay.h"#define CLR_HX711_SCK (GPIO_ResetBits(HX711_SCK_PORT, HX711_SCK_PIN))#define SET_HX711_SCK (GPIO_SetBits(HX711_SCK_PORT, HX711_SCK_PIN))#define HX711_DOUT_R (GPIO_ReadInputDataBit(

2021-06-21 14:04:23 5347

原创 基于51单片机的手机电话拨号盘模拟protues仿真

硬件设计(末尾附文件)电话键盘中拨出的某一电话号码,显示在LCD显示屏上。电话键盘共有12个键,除了“0”~ “9”10个数字键外,还有“*”键用于实现退格功能,即清除输入的号码;“#”键用于清除显示屏上所有的数字显示。每按下一个键要发出声响,以表示按下该键。代码设计#include<reg51.h>#define uint unsigned int#define uchar unsigned charuchar keycode,DDram_value=0xc0;sbit rs

2021-06-14 21:07:52 6508 1

原创 基于51单片机MAX487实现RS485多机通信protues仿真

硬件设计(末尾附文件)代码设计#include<reg51.h>#include<string.h>#include "lcd.h"#define _SUCC_ 0x0f//数据传送成功#define _ERR_ 0xf0//数据传送失败unsigned char aa=0xff;//主机与从机之间通信标志unsigned char temp=0xff;unsigned char Buff[20];//数据缓冲区unsigned char reciv

2021-06-14 19:15:24 9742 1

原创 基于51单片机的智能鱼缸温度控制器protues仿真

硬件设计(末尾附文件)代码设计#include <reg51.h> #define uint unsigned int#define uchar unsigned char //宏定义#define LCD1602 P0sbit SET=P3^1; //定义调整键sbit DEC=P3^2; //定义减少键sbit ADD=P3^3; //定义增加键sbit BUZZ=P3^6; //定义蜂鸣器sbit ALAM=P1

2021-06-14 18:22:08 2260

原创 基于51单片机的双机通信系统设计protues仿真

硬件设计(末尾附文件)代码设计#include"reg51.h" //此文件中定义了单片机的一些特殊功能寄存器#include"math.h"#define PI 3.14sbit P36=P3^6; //P36=0是单片机2数据发送完毕的标志sbit P37=P3^7; //P37=0是单片机1数据发送完毕的标志sbit RST=P3^2;typedef unsigned int u16; //对数据类型进行声明定义typedef unsigned char u

2021-06-14 18:09:51 3545

原创 基于STM32单片机的ILI9341液晶屏驱动protues仿真

硬件设计(末尾附文件)代码设计#include "lcd.h"#include "string.h"#include "font.h" #include "delay.h"#include "gui.h"////////////////////////////////////////////////////////////////////////////////// //*********************************************************

2021-06-14 17:31:46 3430 1

原创 基于51单片机的ILI9341液晶屏驱动protues仿真

硬件设计(末尾附文件)代码设计//#include <REGX52.H>#include <REGX55.H>#include <intrins.h>#include "map.h"//#define RED 0XF800 //红色//#define GREEN 0X07E0 //绿色//#define BLUE 0X001F //蓝色//#define

2021-06-12 11:40:32 2572

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除