Digital sensor(IR) with Counter -Arduino and Simulink

When object is detected by IR sensor, Counter starts increasing. Alarm is ON, When counter reaches maximum value
Updated 11 Nov 2022

View License

IR sensor connected to Arduino(pin 2) and LED and Buzzer are connected to Digital output pin (13,8). Sensor detects the object and counter value is increasing. If the counter reaches maximum value 6, the Alarm is ON
The simulation circuit is developed for the application mentioned below and it is downloaded to Arduino.
Application:1. "Detection of Number of person entering lift/room/vehicle"
2. Counting living things/non living things

Cite As

R SRIRANJANI RAMAKRISHNAN (2024). Digital sensor(IR) with Counter -Arduino and Simulink (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes