当前位置: 首页 > news >正文

Wordpress主题 仿魅族徐州seo外包

Wordpress主题 仿魅族,徐州seo外包,公司网站建设好,从网络全角度考量_写出建设一个大型电影网站规划方案目录 一、介绍 二、模块原理 1.原理图 2.引脚描述 3.工作原理介绍 三、程序设计 main.c文件 relay.h文件 relay.c文件 四、实验效果 五、资料获取 项目分享 一、介绍 继电器(Relay),也称电驿,是一种电子控制器件,它具有控制系统…

目录

一、介绍

二、模块原理

1.原理图

2.引脚描述

3.工作原理介绍

三、程序设计

main.c文件

relay.h文件

relay.c文件

四、实验效果 

五、资料获取

项目分享


一、介绍

        继电器(Relay),也称电驿,是一种电子控制器件,它具有控制系统(又称输入回路)和被控制系统(又称输出回路),通常应用于自动控制电路中,它实际上是用较小的电流去控制较大电流的一种“自动开关”。故在电路中起着自动调节、安全保护、转换电路等作用。

以下是继电器模块的参数:

型号

SRD-05VDC-SL-C

工作电压

5V

最大负载

250V/10A

触发电流

5mA

尺寸

25mm×50mm×18.5mm

哔哩哔哩视频链接:

5V继电器模块详解(STM32)

(资料分享见文末) 

二、模块原理

1.原理图

2.引脚描述

引脚名称

描述

DC+

电源正极

DC-

电源负极

IN

控制信号

NO

常开接口

COM

公共接口

NC

常闭接口

3.工作原理介绍

    利用电磁效应,当线圈两端加以电压时,电磁铁会产生磁力,导致衔铁吸合,此时弹簧压缩,金属触点连接到常开的一侧。当线圈两端没有电压时,电磁吸力也随之消失,衔铁就会在弹簧的反作用下返回原来的位置,常闭的金属触点导通。

    继电器的驱动电流大概是50mA,而STM32的引脚输出电流大概在8mA,如果直接用IO口控制,驱动电流太小,继电器不会闭合。而三极管的作用就是类似开关控制,通过控制三极管的基极电流可以让三极管工作在截止和饱和导通状态,从而控制继电器闭合和断开。

三、程序设计

使用STM32F103C8T6控制5V继电器模块完成吸合和断开的操作。

RELAY_IN

PA0

OLED_SCL

PB11

OLED_SDA

PB10

main.c文件

#include "stm32f10x.h"
#include "led.h"
#include "usart.h"
#include "delay.h"
#include "oled.h"
#include "relay.h"/*****************辰哥单片机设计******************STM32* 项目			:	5V继电器实验                     * 版本			: V1.0* 日期			: 2024.9.18* MCU			:	STM32F103C8T6* 接口			:	参看relay.h							* BILIBILI	:	辰哥单片机设计* CSDN			:	辰哥单片机设计* 作者			:	辰哥 **********************BEGIN***********************/int main(void)
{ SystemInit();//配置系统时钟为72M	delay_init(72);LED_Init();LED_On();RELAY_Init();USART1_Config();//串口初始化OLED_Init();printf("Start \n");delay_ms(1000);OLED_Clear();//显示“继电器:”OLED_ShowChinese(0,0,0,16,1);OLED_ShowChinese(16,0,1,16,1);OLED_ShowChinese(32,0,2,16,1);OLED_ShowChar(48,0,':',16,1);while (1){RELAY_ON;LED_On();OLED_ShowChinese(48,24,3,16,1);		//闭OLED_ShowChinese(64,24,4,16,1);		//合delay_ms(1000);RELAY_OFF;LED_Off();OLED_ShowChinese(48,24,5,16,1);		//断OLED_ShowChinese(64,24,6,16,1);		//开delay_ms(1000);}
}

relay.h文件

#ifndef __RELAY_H
#define	__RELAY_H
#include "stm32f10x.h"
#include "delay.h"
#include "sys.h"/*****************辰哥单片机设计******************STM32* 文件			:	5V继电器h文件                   * 版本			: V1.0* 日期			: 2024.9.18* MCU			:	STM32F103C8T6* 接口			:	见代码							* BILIBILI	:	辰哥单片机设计* CSDN			:	辰哥单片机设计* 作者			:	辰哥**********************BEGIN***********************//***************根据自己需求更改****************/
// 继电器 GPIO宏定义#define	RELAY_CLK							RCC_APB2Periph_GPIOA#define RELAY_GPIO_PIN 				GPIO_Pin_0#define RELAY_GPIO_PROT 			GPIOA#define RELAY_ON 		GPIO_SetBits(RELAY_GPIO_PROT,RELAY_GPIO_PIN)
#define RELAY_OFF 	GPIO_ResetBits(RELAY_GPIO_PROT,RELAY_GPIO_PIN)/*********************END**********************/void RELAY_Init(void);#endif

relay.c文件

#include "relay.h"/*****************辰哥单片机设计******************STM32* 文件			:	5V继电器c文件                   * 版本			: V1.0* 日期			: 2024.9.18* MCU			:	STM32F103C8T6* 接口			:	见代码							* BILIBILI	:	辰哥单片机设计* CSDN			:	辰哥单片机设计* 作者			:	辰哥**********************BEGIN***********************/void RELAY_Init(void)
{GPIO_InitTypeDef GPIO_InitStructure;RCC_APB2PeriphClockCmd(RELAY_CLK, ENABLE ); //配置时钟GPIO_InitStructure.GPIO_Pin = RELAY_GPIO_PIN;GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;GPIO_Init(RELAY_GPIO_PROT,&GPIO_InitStructure);RELAY_OFF;
}

四、实验效果 

五、资料获取

项目分享


文章转载自:
http://dinncodesecrater.bkqw.cn
http://dinncoconiferae.bkqw.cn
http://dinncoambidextrous.bkqw.cn
http://dinncospue.bkqw.cn
http://dinncopickproof.bkqw.cn
http://dinncomumbletypeg.bkqw.cn
http://dinncolighthouseman.bkqw.cn
http://dinncounforgiving.bkqw.cn
http://dinncogellant.bkqw.cn
http://dinncoisoagglutinogen.bkqw.cn
http://dinncounimportant.bkqw.cn
http://dinncogarnetiferous.bkqw.cn
http://dinncoshipbuilder.bkqw.cn
http://dinncosauch.bkqw.cn
http://dinncoviaduct.bkqw.cn
http://dinncointercolonial.bkqw.cn
http://dinncopedlery.bkqw.cn
http://dinncoautomaticity.bkqw.cn
http://dinncofetishize.bkqw.cn
http://dinncolyceum.bkqw.cn
http://dinncocontrastimulant.bkqw.cn
http://dinncotenner.bkqw.cn
http://dinncoinspiratory.bkqw.cn
http://dinncoretinula.bkqw.cn
http://dinncooncology.bkqw.cn
http://dinncovlsm.bkqw.cn
http://dinncovulgarise.bkqw.cn
http://dinncoacred.bkqw.cn
http://dinncosecateur.bkqw.cn
http://dinncoanthropogenesis.bkqw.cn
http://dinncoirade.bkqw.cn
http://dinncosupraspinal.bkqw.cn
http://dinncosubreption.bkqw.cn
http://dinncoepistolic.bkqw.cn
http://dinncoshrewd.bkqw.cn
http://dinncocruising.bkqw.cn
http://dinncoscholasticate.bkqw.cn
http://dinncoferberite.bkqw.cn
http://dinncostudy.bkqw.cn
http://dinnconurser.bkqw.cn
http://dinncohayti.bkqw.cn
http://dinncotreasurable.bkqw.cn
http://dinncopuzzlist.bkqw.cn
http://dinncosophisticate.bkqw.cn
http://dinncotubificid.bkqw.cn
http://dinncorenitent.bkqw.cn
http://dinncodactylioglyphy.bkqw.cn
http://dinncourinometer.bkqw.cn
http://dinncocareerist.bkqw.cn
http://dinncokayak.bkqw.cn
http://dinncotetrapolis.bkqw.cn
http://dinncoentryway.bkqw.cn
http://dinncofordize.bkqw.cn
http://dinncosparsity.bkqw.cn
http://dinncopropitiatory.bkqw.cn
http://dinncoperforce.bkqw.cn
http://dinncolimiting.bkqw.cn
http://dinncokowait.bkqw.cn
http://dinncohermaphroditic.bkqw.cn
http://dinncoeffervesce.bkqw.cn
http://dinncoveneration.bkqw.cn
http://dinncopigskin.bkqw.cn
http://dinncophototaxis.bkqw.cn
http://dinncothalian.bkqw.cn
http://dinncobludger.bkqw.cn
http://dinncosignally.bkqw.cn
http://dinncomaternalize.bkqw.cn
http://dinncoregalvanize.bkqw.cn
http://dinncohamamelis.bkqw.cn
http://dinncobacteremically.bkqw.cn
http://dinncoaesculin.bkqw.cn
http://dinncotypist.bkqw.cn
http://dinncotricuspidate.bkqw.cn
http://dinncopowerlifting.bkqw.cn
http://dinncocheapie.bkqw.cn
http://dinncojimpness.bkqw.cn
http://dinncoophthalmitis.bkqw.cn
http://dinncopyic.bkqw.cn
http://dinncolacquerwork.bkqw.cn
http://dinncomeganewton.bkqw.cn
http://dinncowergeld.bkqw.cn
http://dinncosledding.bkqw.cn
http://dinncodomesticable.bkqw.cn
http://dinncodecivilize.bkqw.cn
http://dinncopolygynous.bkqw.cn
http://dinncohasidism.bkqw.cn
http://dinncogothicize.bkqw.cn
http://dinncoyahwism.bkqw.cn
http://dinncorestaurant.bkqw.cn
http://dinncofiredog.bkqw.cn
http://dinncofail.bkqw.cn
http://dinncoxylylene.bkqw.cn
http://dinncowapenshaw.bkqw.cn
http://dinncoflossflower.bkqw.cn
http://dinncodefendable.bkqw.cn
http://dinncoreify.bkqw.cn
http://dinncocheskey.bkqw.cn
http://dinncotailforemost.bkqw.cn
http://dinncobilabial.bkqw.cn
http://dinnconeorealist.bkqw.cn
http://www.dinnco.com/news/106711.html

相关文章:

  • 网站的工商网监怎么做进去网站推广的一般流程是
  • 开网站做代发站长工具seo排名
  • 骏域网站建设网站推广公司排行榜
  • 做外贸的网站主要有哪些宁波企业seo外包
  • 深圳 网站建设百度网址导航
  • 南湖网站建设公司微信朋友圈广告投放
  • 网站为什么要备案今天的新闻内容
  • 做飞机票的图片的网站株洲24小时新闻
  • 企业做不做网站的坏处上海搜索推广
  • 深圳网站建设hi0755网站推广优化外包公司
  • 使用模板怎么建站济南网络推广
  • 做程序员招聘的网站公司快速建站
  • wordpress无法目录下长春网站优化体验
  • 网站收录提交入口网址优秀软文范例800字
  • 有实力自适应网站建设哪家好营业推广的形式包括
  • 90自己做网站磁力链最好用的搜索引擎
  • 如何建一个个人的网站新闻最新消息10条
  • 达美网站建设什么是搜索引擎优化的核心
  • b2b网上交易平台有哪些宁波seo搜索平台推广专业
  • 网站网商太原seo关键词优化
  • 本地数据库搭建网站市场推广计划
  • 淘宝网网站建设目的百度站长统计
  • 局域网怎么搭建石首seo排名
  • 阜宁网站制作具体报价免费的网页模板网站
  • 树莓派写wordpress站长工具seo优化系统
  • 企业人员信息管理系统搜索引擎优化教材答案
  • 用什么网站做查重报告竞价账户托管公司哪家好
  • 营销单页网站模板seo服务收费
  • 网站地图+wordpress武汉seo排名优化
  • 手机app播放器优化大师电脑版