Creators
Rojony Khatun Author
Rojony Khatun
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: December 2, 2025

Adjustable Constant Current Power Supply DIY Circuit Guide

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

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)1Detects infrared motion
NPN Transistor (BC547)1Amplifies PIR output
Relay (5V/12V)1Controls AC/DC load
Diode (1N4007)1Back-EMF protection
Resistors (1kΩ–10kΩ)2–3Biasing & limiting
Capacitor (10µF–100µF)1Stabilization
LED1Motion indication
Power Supply (5V–12V)1Powers sensor & relay
Breadboard / PCB1Assembly

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

  1. Connect PIR Sensor: VCC, GND, and output to transistor base.
  2. Amplifier Stage: Connect transistor with relay coil; add diode across coil.
  3. Connect Load: Use relay to switch AC/DC loads; add LED for indication.
  4. Power Supply: Use 5–12V depending on relay & PIR rating.
  5. 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.

Frequently Asked Questions - Adjustable Constant Current Power Supply Project:

What is a constant current power supply?

A power supply that maintains a fixed current output regardless of load voltage.

Which IC is used for adjustable current?

LM317 or similar adjustable voltage regulators configured as constant current sources.

Can it drive high-power LEDs?

Yes, it is ideal for driving high-power LEDs with regulated current.

How is current set?

Using a resistor between LM317 output and adjust pin; I = 1.25 / R.

Can I adjust current?

Yes, by adding a potentiometer in series with the current-setting resistor.

Do I need a heat sink?

Yes, for IC and transistor to prevent overheating during operation.

Can it charge batteries?

Yes, safely for batteries requiring controlled current.

What input voltage is needed?

Typically 12V–24V DC depending on load and desired current.

Is it safe for beginners?

Yes, with proper heat sinking and careful wiring, beginners can build it.

Can I use a power transistor for higher current?

Yes, a power transistor boosts current handling capacity for higher loads.

Comments

Please login to comment.

Rojony Khatun

Rojony Khatun

Calculator Tools Project

Rojony Khatun is the creator of a free online tools website designed to simplify everyday and engineering-related calculations for students, professionals, and hobbyists. The platform offers a wide variety of basic and advanced calculators across key categories, including Electrical Calculators, Electronic Calculators, and Time & Date Calculators, helping users solve problems quickly and accurately.