当前位置:网站首页>Stm32f1 and stm32subeide programming example - Optical intermittent sensor drive
Stm32f1 and stm32subeide programming example - Optical intermittent sensor drive
2022-06-22 14:08:00 【Visual intelligence】
Light intermittent sensor drive
The light interrupter is (Photo Interrupt Sensor) A transmission type light sensor , The light receiving and transmitting elements are integrated in one package , Please refer to the figure below . Since the method involves shading , It is usually called light interrupter . The output adopts long-life infrared photodiode , The other side is integrated with a single phototransistor and optoelectronics IC For light detection .
Different from mechanical switch , The light interrupter is non-contact ( optics ) switch , By preventing wear ( Contact ) To improve reliability .

This article will show you how to STM32CubeIDE How to use light intermittent sensor in . When blocked , Sensor output low level , When connected , Output high level .
1、 Optical intermittent sensor configuration
Development environment construction 、 System clock configuration 、 Debugging configuration and serial port configuration , Please refer to :
- STM32F1 And STM32CubeIDE Quick start - Development environment construction
- STM32F1 And STM32CubeIDE Quick start -GPIO Overview and lighting LED
- STM32F1 And STM32CubeIDE Quick start -USART/UART Serial port communication
The sensor configuration is as follows :
边栏推荐
- openGauss数据库源码解析系列文章—— 密态等值查询技术详解
- Common writing methods and excellent examples of acknowledgments in graduation thesis writing
- History of hash index design
- Locks in MySQL
- 《Kubernetes监控篇:Grafana通过自动化方式添加datasource和dashboard》
- CVE-2022-22965复现
- 微服务测试效率治理
- 论文专利博客写作总结
- Istio服务网格中的流量复制
- Double hands of daily practice of Li Kou 2day9
猜你喜欢

In 5g era, how to create an amazing live VR activity?

openGauss内核分析之查询重写

History of hash index design

leetcode-数学题

别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!

Aliyundrive fuse that allows jellyfin to directly mount alicloud disks

Go Web 编程入门:验证器

如何理解fold change?倍数分析?

Getting started with go web programming: validators

3DMAX modeling notes (I): introducing 3DMAX and creating the first model Hello World
随机推荐
ThoughtWorks.QRCode和ZXing.Net 二维码,网址可以直接跳转
谈谈人生风控
如何理解fold change?倍数分析?
Traffic replication in istio Service Grid
【Nacos云原生】阅读源码第一步,本地启动Nacos
毕业论文写作中致谢词的常见写法及优秀范文
“不敢去懷疑代碼,又不得不懷疑代碼”記一次網絡請求超時分析
Linux setting enables Oracle10g to start automatically
JS高级程序设计第 4 版:迭代器的学习
3DMAX modeling notes (I): introducing 3DMAX and creating the first model Hello World
Performance of recommender algorithms on top-N recommendation tasks
安装和使用protobuf-c
Oceanbase database helps the ideal automobile intelligent production line to realize automatic recovery within 30 seconds
Aliyundrive fuse that allows jellyfin to directly mount alicloud disks
浅析Redis 切片集群的数据倾斜问题
线下实体店结合VR全景,让虚拟购物更加真实
聊一聊数据库的行存与列存
SQL functions -- converting a one to many relationship to a one to one relationship
机器人方向的刚性需求→个人思考←
epoch_ Num and predict_ Conversion of num