top of page

ARDUINO INPUT

b50c0021375dfd0a04bc5d8cee962c9.png

RGB LED -  INFRAED SENSOR

TIME : September 11, 2021

Introduction

We want the infrared sensor to control the switching state of RGB LED. When the infrared sensor detects an object within the range, the RGB LED turns on and flashes in red, yellow and green. At the same time, the button switch can also control the on state of RGB LED.

Materials
  • 1 x Arduino UNO

  • 1 x Infrared Sensor

  • 1 x RGB LED

  • 1 x Bread board

  • 1 x Button

  • ​13 x DuPont line

The sensor module has a strong ability to adapt to environmental light, it has a pair of infrared transmitting and receiving tubes, transmitting tubes emit a certain frequency of infrared light, when the detection direction encounters an obstacle (reflective surface), the infrared light is reflected back to be received by the receiving tube, after the comparator circuit processing, the green indicator will light up, while the signal output interface output digital signal (a low-level signal), can be adjusted through the potentiometer The detection distance of the sensor can be adjusted by potentiometer, the effective distance range 2s30m working voltage is 3.3V-5V. The detection distance of the sensor can be adjusted by potentiometer, with small interference, easy to assemble, easy to use and other characteristics, the mouth is widely used in robot obstacle avoidance, obstacle avoidance car, assembly line counting and black and white line tracing and many other occasions.

Equipment introduction
21b357a323637953963ab0b7d76be95.jpg

Digital infrared sensor

  • When the module detects the signal of the obstacle ahead, the green indicator lights on the circuit board, while the OUT port continuous output low-level signal, the module detection distance of 230cm, detection angle of 35 °, detection distance can be adjusted by potentiometer clockwise potentiometer, the detection distance increases; counterclockwise potentiometer, the detection distance decreases.

  • The sensor active infrared reflection detection, so the target reflectivity and shape is the key to detecting distance.

  • The sensor module output port OUT can be directly connected to the microcontroller 10 port.

  • Board size: 3.1CM*1.5CM

e5effb957415776f2db00e88e3d5758.jpg
  • VVC external 3.3v-5v voltage

  • GND external GND

  • Digital output interface of out small board

Instructions

Code
微信图片_20211013225434.png
bottom of page