当前位置:网站首页>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 .

 Insert picture description here

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 :

The sensor configuration is as follows :

原网站

版权声明
本文为[Visual intelligence]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221240358088.html