You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star1 (1)You must be signed in to star a repository
About
Automatic motion-activated light using an IR proximity sensor and a CD4017 decade counter - no microcontroller, pure digital logic. Team A14T4 coursework for Electronics and Digital Circuits (25CSCI10C) at BUE.
Motion Sensor Light using IR Proximity Sensor & CD4017 IC
An automatic motion-activated lighting system using digital logic circuits
The British University in Egypt | Faculty of Informatics & Computer Science
Module: Electronics and Digital Circuits (25CSCI10C) | Year: 1 (Post-Preparatory)
This project implements an automatic motion sensor light that detects movement using an IR (Infrared) proximity sensor and controls a lighting system through digital logic circuits. The design utilizes the CD4017 decade counter IC as the main control unit, eliminating the need for microcontrollers or programming.
Key Highlights
🔍 Contactless Detection: Uses IR technology to detect motion/obstacles
🎛️ Pure Hardware Solution: No programming or microcontroller required
⚡ Relay-Based Control: Can switch AC/DC loads safely
💡 Energy Efficient: Automatic on/off based on motion detection
📚 Educational Value: Demonstrates fundamental digital electronics concepts
✨ Features
Feature
Description
Motion Detection
IR sensor detects objects within 2-30 cm range
Automatic Control
Light turns ON when motion detected, OFF when clear
Visual Indicators
Red LED (standby) and Green LED (active) status
Load Control
9V relay controls 6V lamp or other compatible loads
Low Power
Operates on 9V battery for portability
No Coding
Pure hardware implementation using logic ICs
🔧 Components Required
Main Components
Component
Quantity
Specification
Purpose
IR Obstacle Sensor
1
IR obstacle/proximity module
Motion detection
CD4017 IC
1
Decade Counter
Logic control
BC557 Transistor
1
PNP
Signal switching
BC547 Transistor
1
NPN
Relay driver
Relay
1
9V SPDT
Load switching
LED (Red)
1
5mm
Status indicator
LED (Green)
1
5mm
Status indicator
Diode
1
1N4007
Flyback protection
Passive Components
Component
Value
Quantity
Resistor
10kΩ
1
Resistor
4.7kΩ
1
Resistor
220Ω
3
Capacitor
100nF
2
Capacitor
1pF
1
Power & Load
Component
Specification
Power Supply
9V Battery
Load
6V Lamp/Bulb
📐 Circuit Diagram
Figure 1: Complete circuit schematic showing IR sensor, CD4017 IC, and relay control
Circuit Sections
Sensor Module: IR transmitter/receiver pair
Control Logic: CD4017 decade counter with clock input
IR sensor model used by the design (.LIB, .HEX, .IDX + a .DSN demo)
The IR sensor is not a stock Proteus part, so a third-party library is bundled
in proteus/infrared-sensor-library/. Keep those four files together and
with their original names — Proteus resolves .LIB/.HEX/.IDX by name.
To use it, load the library in Proteus' Library Manager first, then open the
.pdsprj.
GitHub cannot preview Word files — use the Download button on those links.
📝 Notes
Sensor naming. The component list previously read "HC-SR501 or similar".
The HC-SR501 is a PIR module — a different sensing principle from the IR
obstacle/proximity module this project is built around, so the entry now reads
generically. If you know the exact module used, put the part number back here.
No source code. This is a pure digital-logic design; the only files that
can be "run" are the Proteus simulation, and Proteus itself is required.
Repository size.media/simulation.mp4 is ~12 MB and dominates the repo.
It is a genuine deliverable, but if the repo is ever cloned widely, hosting it
as a GitHub Release asset would be the better home.
About
Automatic motion-activated light using an IR proximity sensor and a CD4017 decade counter - no microcontroller, pure digital logic. Team A14T4 coursework for Electronics and Digital Circuits (25CSCI10C) at BUE.