projects
    transistors
    bc547
    beginner

    How a Touch Sensor Circuit Works Using a BC547 Transistor

    April 12, 20267 min read

    _There's something satisfying about a circuit that does something genuinely useful with the minimum number of parts. The BC547 touch sensor activates an LED the moment your finger bridges two bare wire contacts, using just a transistor, a resistor, and the LED itself._

    _It's beginner-friendly on the surface, but the underlying principle is one of the most important in electronics: a transistor used as a current-controlled switch. Understand what's happening here and BJTs stop being mysterious._

    How it works

    The BC547 is an NPN bipolar junction transistor with three terminals: base, collector, emitter.

    The collector connects through an LED and current-limiting resistor to the positive supply. The emitter connects to ground. The base connects to a touch pad through a large resistor (1MΩ).

    Normally: no base current, no collector-emitter current, LED off. Transistor is cut off.

    When you touch the pad: your body acts as a high-resistance conductor between the base resistor and a ground reference. A few microamps flow into the base. The BC547 amplifies this by its current gain (hFE = 200–600), producing enough collector current to light the LED.

    Your finger provides a tiny signal. The transistor turns that into a usable switching current.

    Components and build

    • BC547 NPN transistor
    • 1MΩ resistor (base sensitivity control)
    • 470Ω resistor (LED current limiting)
    • LED
    • 9V battery
    • Two short pieces of bare wire as touch contacts

    On the breadboard: emitter to GND. Collector through 470Ω to LED anode, cathode to VCC. One touch wire to VCC through a 1MΩ resistor, the other end of that resistor to the base. Second touch wire directly to base.

    Bridging both wires with your finger completes the base circuit. Transistor switches on, LED lights.

    Why the 1MΩ resistor matters

    The base resistor limits base current and sets sensitivity. A higher value increases sensitivity — even faint contact triggers it. Too high and it triggers on capacitive pickup from nearby mains wiring (false triggers).

    Skin resistance varies: dry fingers 100kΩ–1MΩ, moist fingers 10kΩ–100kΩ. Even at 1MΩ skin resistance with a 1MΩ base resistor, enough current flows to switch the BC547.

    For most applications, 1MΩ to 10MΩ gives reliable sensitivity without false triggers. Adjust down if you get false triggers, up if the circuit needs more deliberate contact.

    Extending the circuit

    Relay output: replace LED with a relay coil and add a 1N4007 flyback diode across it. The touch sensor now switches mains loads.

    Latch behaviour: 10µF cap from collector to base. When the transistor turns on, the cap charges and feeds current back to the base — keeping the transistor on after you remove your finger. One touch latches the output. A reset switch discharges the cap to release it.

    Sensitivity trimmer: replace the 1MΩ fixed resistor with a 2MΩ potentiometer for precise sensitivity adjustment without changing components.

    Related Tools & Projects

    • [BC547 component page](/component/bc547)
    • [LED Resistor Calculator](/calculators/led-resistor)
    • [Ohm's Law Calculator](/calculators/ohms-law)

    Ready to put this into practice?

    View Touch Sensor Project

    Cookie Consent

    We use cookies to enhance your experience and analyze site traffic. Your privacy is important to us.