HomeEngineering Projects For YouArduino based IR Reflectance Alarm Using Homemade Sensor

Arduino based IR Reflectance Alarm Using Homemade Sensor

efy tested SC Dwivedi's project

Photoelectric sensors detect objects and surface changes using variations in optical properties. Each sensor includes a light emitter and a receiver, with most relying on infrared light. In optical proximity sensing, the emitter and receiver are housed in the same unit.

An infrared reflectance sensor, also known as a diffuse sensor, detects changes in reflected light from a target. This variation alters the light received, which is then converted into an electrical signal. Some of these sensors and modules, widely available at electronics retailers, are shown in Fig. 1. The components required to assemble the device are listed in the Bill of Materials table.

POC Video Tutorial

infrared sensor modules
Fig. 1: Various infrared sensor modules
Bill of Materials
ComponentsDescriptionQuantity
Arduino Uno/Nano (Board1)For uploading code1
Analogue reflectance sensor module or (IR and phototransistor pair)for example, CNY70 or homemade1
330Ω, ¼W resistorCurrent limiting1
10KΩ, ¼W resistorPull-up resistor1
Passive buzzerFor sound1
Jumper wireFor connectionAs required
Two-pin connectorFor the power supply1

Note: A compact analogue reflectance sensor such as the CNY70 was not used in the Arduino Uno experiments described. Instead, a homemade sensor was assembled using a single infrared LED (IR333C) and a commonly available phototransistor (PT908-7C-F). Fig. 2 shows the homemade reflectance sensor.

- Advertisement -
Homemade infrared reflectance sensor
Fig. 2: Author’s homemade sensor

For practical applications, the phototransistor output of an analogue infrared reflectance sensor must be connected to a pull-up resistor to form a voltage divider, which yields an analogue voltage that ranges between GND and Vcc. With strong reflectance, the output voltage tends towards GND; with weak reflectance, it tends towards Vcc. The resistor wired in series with the infrared LED sets the operating current to a safe value. This configuration can be tested using an Arduino Uno. Fig. 3 shows the internal circuit of an infrared reflectance sensor.

Infrared reflectance sensor circuit

Circuit and Working

EFY Icon

- Advertisement -
Sorry! You cannot read this post further, as this is for EFY PRIME subscribers only.

EFY PRIME subscribers get access to our BEST content, in an AD-free environment for readers who value faster and clutter-free reading experience.

If you're already an EFY PRIME subscriber, please login below. Else, please make a small investment by REGISTERING HERE and upgrade your level to access this and many more of such content.

SHARE YOUR THOUGHTS & COMMENTS

T.K. Hareendran, Electronic Design Freelancer, AspenCore
T.K. Hareendran, Electronic Design Freelancer, AspenCore
T. K. Hareendran is a veteran electronics expert, educator, and technology writer with over 30 years of hands-on experience in the field of electronics and embedded systems. His journey began with a deep curiosity about how technology works, which evolved into a lifelong passion for understanding and building electronic systems. Over the decades, Hareendran has witnessed and actively engaged with the evolution of electronics—from early circuit designs and discrete components to modern microcontrollers, embedded platforms, and advanced digital systems. His expertise spans circuit design, hardware development, and practical electronics, backed by extensive real-world experience. Known for his ability to simplify complex concepts, he has dedicated many years to knowledge sharing, helping students, hobbyists, and professionals navigate the intricacies of electronics. His writing focuses on making technical subjects accessible, combining clarity with practical insights that readers can apply in real-world scenarios. Hareendran continues to contribute to the electronics community through educational content and hands-on guidance, driven by a strong belief in the power of curiosity, continuous learning, and shared knowledge.