标题: [Nano130] TCRT5000 IR Sensor Control [打印本页] 作者: admin 时间: 2023-5-26 13:51 标题: [Nano130] TCRT5000 IR Sensor Control
Application: This sample code uses Nano130 to control the TCRT5000 sensor.
BSP Version: Nano100B Series BSP CMSIS v3.01.000
Hardware: NuTiny-EVB-Nano130
The TCRT5000 sensor works on the same principle as ordinary infrared sensors.
The TCRT5000 has an infrared emitter tube and an infrared receiver tube.When the infrared signal of the transmitter tube is received by the receiving tube through reflection, the resistance of the receiving tube will change, which is generally reflected in the form of voltage change on the circuit. This sample code uses Nano130 to output the result after ADC conversion.The change of resistance is based on the intensity of infrared signal received by the receiving tube, which is often reflected in the color of the reflecting surface and the distance between the receiving tube and the reflecting surface.