Creators
Md Jony Islam Author
Md Jony Islam
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: January 14, 2026

Simple Transistor LED Flasher Circuit for Beginners

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German
1K Fixed Resistor 1/4W

1K Fixed Resistor 1/4W

A 1,000-ohm resistor rated for 0.25 watts

1µF Capacitor

1µF Capacitor

Fixed value, non-polarized/polarized capacitor

3V LED 5mm

3V LED 5mm

3V, 5mm round light-emitting diode

BC547 Transistor

BC547 Transistor

General-purpose NPN bipolar junction transistor (BJT)

*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!

Transistor LED Flasher Circuit

Build a transistor-based LED flasher circuit that makes LEDs blink automatically using an RC network, ideal for beginners and small DIY electronics projects.

Low-power LED flasher:

One of the most basic and useful electronic projects is a circuit that uses a transistor LED flasher to create an LED flash automatically by using a transistor, a resistor-capacitor (RC) network, and a resistor. The switching of the transistor between the LED on and off is repeated as the RC network charges and discharges, and can be used to create a blinking effect. The circuit finds extensive application as an educational project, a hobby electronics project, and as a beginner learning kit. It assists users to learn about the operation of a transistor, RC timing, and the principles of a basic oscillator in a practical manner. The transistor LED flasher is small, low-powered, and inexpensive, and a wonderful introduction to the working principles of electronics.

homemade sanitizer dispenser electronics project

The DIY hand sanitiser dispenser is one of the practical electronics projects, and with the infrared (IR) technology, the project enables one to construct a touchless hand sanitiser dispenser. This system will identify hands close to the sensor and automatically turn on a small DC motor to squirt sanitiser.

The DIY circuit of the hand sanitiser dispenser is an IR sensor module to scan the presence of a hand, a signal amplifier or microcontroller to process, and a relay to adjust a miniature pump or motor. These dispensers are sanitary, do not cross-contaminate and are suitable either at home or in the office or even in the open. In assembling this project, you get to know about IR detection, relay control, motor driver and assembling a circuit that involves creating a useful health and safety device.

DIY Touchless Sanitizer Dispenser Circuit

Hands-free sanitizer dispensing using IR sensor, transistor, and relay — ideal for hygienic, low-power automation projects.

Advantages of a Touchless Sanitizer Dispenser

  • Hygienic: Minimizes cross-contamination.
  • Automatic Operation: Hands-free dispensing.
  • Easy to Build: Uses simple components.
  • Energy-Efficient: Low-power design.
  • Educational: Learn sensor interfacing, relay driving, and fluid control.

Components Required

Component Quantity Purpose
IR Sensor Module (TCRT5000 / HC-SR501 optional) 1 Detects hand presence
NPN Transistor (BC547 / 2N2222) 1 Amplifies sensor signal to drive relay
Relay Module (5V or 12V) 1 Switches sanitizer pump
DC Pump / Motor 1 Dispenses sanitizer
Resistors (1kΩ – 10kΩ) Various Biasing for sensor and transistor
Capacitors (10uF – 100uF) Optional Filtering and stabilization
LED Indicator 1 Shows system active
Power Supply (5V–12V DC) 1 Powers sensor, relay, and pump
Enclosure 1 Mounts sensor, circuit, and pump

Working Principle

IR Sensor Detection Stage: IR sensor emits light and detects reflection from a hand. Output goes HIGH or LOW based on presence.

Signal Amplification: Transistor amplifies the sensor signal to drive the relay. Microcontroller optional for advanced control.

Relay Switching Stage: Relay energizes the DC pump to dispense sanitizer; flyback diode protects against coil voltage spikes.

Pump Output: Pump dispenses sanitizer for a controlled duration and stops when hand is removed.

Power and LED Indicators: LED shows active status. Power supply provides regulated voltage for sensor, relay, and pump.

Circuit Diagram (Text)

IR Sensor OUT → Resistor → Transistor Base
Transistor Collector → Relay Coil
Transistor Emitter → GND
Relay Contacts → DC Pump Power Line
LED → Parallel to Relay Coil via Resistor
Power Supply → Powers sensor, relay, and pump
  

Step-by-Step Construction Guide

  1. Install IR sensor facing outward; connect VCC, GND, and OUT pins.
  2. Connect sensor output to transistor base through a resistor; emitter to ground, collector to relay coil.
  3. Wire relay coil with flyback diode; connect relay contacts to DC pump power line.
  4. Install LED in parallel to relay coil to indicate activation.
  5. Connect DC 5–12V power supply matching pump and relay ratings.
  6. Test by placing hand near sensor; adjust sensitivity as needed.

Applications

  • Homes, offices, and hospitals
  • Public sanitizing stations
  • DIY automation projects
  • School and laboratory hygiene systems
  • Touchless public kiosks

Troubleshooting Tips

Problem Solution
Pump not activating Check relay and transistor connections.
Sensor not detecting hands Adjust IR sensor sensitivity or alignment.
LED not lighting Check LED polarity and series resistor.
Pump running continuously Check sensor output logic and transistor bias.
Power issues Ensure supply voltage matches sensor, relay, and pump requirements.

Frequently Asked Questions - Transistor LED Flasher Circuit:

What is a transistor LED flasher circuit?

A simple circuit that makes an LED flash automatically using a transistor and RC network.

Which components are required?

Transistor, LED, resistors, capacitor, and DC power supply.

How does it work?

The RC network charges and discharges, switching the transistor on/off to blink the LED.

Can I adjust the flash rate?

Yes, by changing resistor or capacitor values.

Is it suitable for beginners?

Yes, easy to build and educational for learning transistor and RC circuits.

Can I use multiple LEDs?

Yes, with additional transistor stages for alternating or synchronized flashing.

What voltage is needed?

Typically 3–12V DC depending on the transistor and LED ratings.

Do I need a breadboard?

A breadboard or PCB is recommended for easy assembly and testing.

Is it low-power?

Yes, uses minimal current suitable for hobby projects.

Can it run continuously?

Yes, if components are rated correctly and connections are secure.

Comments

Please login to comment.

Md Jony Islam

Md Jony Islam

Calculator Tools Project

Founder of Earthbondhon.com

a free online tools website designed to make everyday and engineering-related calculations easier for students, professionals, and hobbyists. The site offers a wide range of basic calculators across key categories, including Electrical Calculators, Electronic Calculators, and Time & Date Calculators.