Adjustable Constant Current Power Supply Project
Build an adjustable constant current power supply for LEDs, batteries, and electronics testing. DIY guide with circuit diagram, components, and working principle.
What is an Adjustable Constant Current Power Supply?
In an Adjustable Constant Current Power Supply (CCPS), a constant current is maintained at the output irrespective of the changes in loads. A CCPS protects delicate electronics, e. L.s, or batteries, that'd be damaged by a constant voltage supply by maintaining a fixed current.
pir sensor connection for beginners
The PIR motion sensor is a home circuit device that is crucial to DIY home automation and security systems. PIR (Passive Infrared) is a sensor that can sense the infrared radiation released by a human or animal and activate electronic circuits in alarms, lights, or some other device.
The PIR motion sensor circuit used in home functions in such a way that it detects the heat of moving bodies in its area. On the detection of motion, the PIR module sends a high signal to the associated trigger circuit, which can trigger a relay, buzzer, or light. This is a basic, though powerful, system that improves the security of homes, conserves energy through the use of automated lights, and can be expanded as part of a larger smart home system. We are going to provide in this guide the parts, the working principle, circuit diagram, step-by-step construction, and solutions to problems that you may encounter during the process of constructing a PIR motion sensor circuit that can be implemented in your home.
Advantages of Using PIR Sensors at Home
- Energy Saving: Automatically turns off lights when no motion is detected.
- Enhanced Security: Detects intruders and triggers alarms.
- Easy Installation: Simple circuit with low component count.
- Microcontroller Compatible: Works with Arduino, Raspberry Pi, ESP8266, ESP32, and more.
- Cost-Effective: Budget-friendly automation solution.
Components Required for DIY Circuit
| Component | Quantity | Purpose |
|---|---|---|
| PIR Sensor Module (HC-SR501) | 1 | Detects infrared motion |
| NPN Transistor (BC547) | 1 | Amplifies PIR output |
| Relay (5V/12V) | 1 | Controls AC/DC load |
| Diode (1N4007) | 1 | Back-EMF protection |
| Resistors (1kΩ–10kΩ) | 2–3 | Biasing & limiting |
| Capacitor (10µF–100µF) | 1 | Stabilization |
| LED | 1 | Motion indication |
| Power Supply (5V–12V) | 1 | Powers sensor & relay |
| Breadboard / PCB | 1 | Assembly |
Working Principle of PIR Motion Sensor
Detection Stage: PIR detects infrared radiation changes from moving bodies.
Amplification Stage: PIR output drives an NPN transistor to control relay.
Output Stage: Relay switches lights, alarms, or appliances; LED shows detection.
Delay & Sensitivity: Adjustable potentiometers control detection distance & hold time.
Circuit Diagram Explanation
- PIR Output → Base of transistor via 1kΩ resistor
- Transistor Collector → Relay Coil
- Diode (1N4007) → Across relay coil for protection
- LED → Parallel with relay using a limiting resistor
- Power Supply → 5V–12V DC
Step-by-Step Construction Guide
- Connect PIR Sensor: VCC, GND, and output to transistor base.
- Amplifier Stage: Connect transistor with relay coil; add diode across coil.
- Connect Load: Use relay to switch AC/DC loads; add LED for indication.
- Power Supply: Use 5–12V depending on relay & PIR rating.
- Testing & Adjustment: Move in front of sensor; tune delay and sensitivity.
Applications of PIR Sensor Circuits
- Automatic home lighting
- Security alarm systems
- Smart energy-saving systems
- Home automation controls
- Garage, stairway, corridor lighting
Troubleshooting Tips
- Relay not triggering → Check transistor biasing & PIR output voltage.
- False triggers → Reduce sensitivity or reposition sensor.
- LED not lighting → Check polarity & limiting resistor.
- Load not switching → Use relay rated for load voltage/current.
- Sensor not detecting → Ensure correct power supply and positioning.