当前位置:网站首页>STM32F1与STM32CubeIDE编程实例-光断续传感器驱动
STM32F1与STM32CubeIDE编程实例-光断续传感器驱动
2022-06-22 12:40:00 【视觉智能】
光断续传感器驱动
光断续器是(Photo Interrupt Sensor)一种透射型光传感器,将光接收和发射元件集成在一个封装中,请参见下图。 由于该方法涉及遮光,通常称为光断续器。 输出采用长寿命红外光电二极管,另一侧集成单个光电晶体管和光电IC用于光检测。
与机械开关不同,光断续器是非接触式(光学)开关,通过防止磨损(接触)引起的磨损来提高可靠性。

本文将介绍如何在STM32CubeIDE中如何使用光断续传感器。当有遮挡时,传感器输出低电平,连通时,输出高电平。
1、光断续传感器配置
开发环境搭建、系统时钟配置、调试配置及串口配置,请参考:
- STM32F1与STM32CubeIDE快速入门-开发环境搭建
- STM32F1与STM32CubeIDE快速入门-GPIO概述与点亮LED
- STM32F1与STM32CubeIDE快速入门-USART/UART串口通信
传感器配置如下:
边栏推荐
- 毕业论文写作中致谢词的常见写法及优秀范文
- Number of times Oracle uses cursor to decompose numbers
- Acwing week 53
- 338. Counting Bits
- Interaction between awk language and Oracle database for nearly half a year
- 史蒂芬·柯维写给年轻人的高效工作秘笈
- 谈谈人生风控
- 318. Maximum Product of Word Lengths
- SQL functions -- converting a one to many relationship to a one to one relationship
- 基於SSM的小區垃圾分類和運輸管理系統,高質量畢業論文範例(可直接使用),源碼,數據庫脚本,項目導入運行視頻教程,論文撰寫教程
猜你喜欢

"N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau

Istio服务网格中的流量复制

leetcode 11. Container with the most water

File download vulnerability & file read vulnerability & file delete vulnerability

JSP based library management system, including source code, database script, video tutorial for project operation, and video tutorial for thesis writing

机器人方向的刚性需求→个人思考←

Leetcode knapsack problem

基于SSM的小区垃圾分类和运输管理系统,高质量毕业论文范例(可直接使用),源码,数据库脚本,项目导入运行视频教程,论文撰写教程

Acwing 241 Loulan totem (detailed explanation of tree array)

310. Minimum Height Trees
随机推荐
Common writing methods and excellent examples of acknowledgments in graduation thesis writing
SSM based community garbage classification and transportation management system, high-quality graduation thesis example (can be used directly), source code, database script, project introduction and o
Tables converting to latex format
Redis password modification, startup, view and other operations
Write a contract testing tool from scratch
epoch_ Num and predict_ Conversion of num
“不敢去怀疑代码,又不得不怀疑代码”记一次网络请求超时分析
leetcode 854. String with similarity K
leetcode每日一题202110
155. Min Stack
openGauss数据库源码解析系列文章—— 密态等值查询技术详解
定金预售的规则思路详解
leetcode 968. Monitoring binary tree
Locks in MySQL
268. Missing Number
SQL row column conversion
Microservice test efficiency governance
基于SSM的小区垃圾分类和运输管理系统,高质量毕业论文范例(可直接使用),源码,数据库脚本,项目导入运行视频教程,论文撰写教程
12306 ticket grabbing tutorial
260. Single Number III