main函数: #include"led.h"#include"delay.h"#include"key.h"#include"sys.h"#include"usart.h"#include"YFS201C.h"/*** 日期:2023.3.22 功能:采用YF_S201C检测水流量,并通过串口发送检测结果 接线:RX->PA9 TX->PA10 LED->PE5 YF_S201C 黄线->PD2 红线->VCC 黑线->GND ***/intmain(void) ...
此文章是通过STM32采集流量传感器YF-S201数据和发送数据到ESP8266。主要内容就是定时器TIM2捕捉脉冲和串口发送、中断接收的内容。 一、TIM2定时器设置 选择的是YF-S201传感器,需要注意: 红正黑负,黄色信号线 工作电压5-18V 水压1.75Mpa以下 NPN脉冲信号 流速: 如1L/min的流速,脉冲个数为7.5160个 1L/s的流速,...
order: 1 piece TZT Water flow sensor flowmeter Hall flow sensor Water control 1-30L/min 2.0MPa YF-S201 $1.00 - $1.40 Min. order: 1 pieceKey attributes Industry-specific attributes Type .. Display Size .. Other attributes Supplier Type .. Place of Origin Guangdong, China Brand Name TZT...