Thursday, April 16, 2026

BJT configurations explained simply (no math)

 Core idea

  • A transistor has three terminals: base, collector, emitter

  • Each configuration is named after the terminal that is common (shared reference) for both input and output

  • Input and output are defined with respect to that common node


Common Emitter (CE)

  • Common node: emitter

  • Input: base to emitter → small control current flows

  • Output: collector to emitter → large controlled current flows

What it does:

  • Small base current controls a much larger collector current

  • That current flows through a resistor

  • Resistor converts it into a large voltage change

Results:

  • Voltage gain: high (amplitude increases a lot)

  • Current gain: yes

  • Phase: inverted (180 degree shift)

Key behavior:

  • Base goes up → collector current increases → collector voltage drops

  • Input up → output down


Common Collector (CC) also called emitter follower

  • Common node: collector

  • Input: base to collector → small control current flows into base

  • Output: emitter to collector → large current supplied to load from emitter

What it does:

  • Emitter follows base voltage (slightly lower)

  • Transistor pulls extra current from supply to drive load

Results:

  • Voltage gain: about 1 (no amplitude increase)

  • Current gain: high

  • Phase: no inversion

Key behavior:

  • Input up → output up

  • Same voltage, but stronger (more current available)


Common Base (CB)

  • Common node: base

  • Input: emitter to base → large current injected into emitter

  • Output: collector to base → nearly same current flows to collector

What it does:

  • Current injected into emitter passes almost directly to collector

  • No real current amplification

Results:

  • Voltage gain: yes (amplitude increases)

  • Current gain: about 1

  • Phase: no inversion

Key behavior:

  • Current change flows through collector resistor

  • Resistor converts it into voltage gain


Final understanding

  • CE: increases voltage and current, inverts signal

  • CC: no voltage gain, high current gain, no inversion

  • CB: voltage gain, no current gain, no inversion


Simple memory rule

  • Output at collector → inversion (CE)

  • Output at emitter → follows input (CC)

  • Base fixed → no inversion (CB)

Wednesday, April 15, 2026

⚡ The Joule Thief: A Technical Overview

The Problem

A low-voltage (“dead”) battery—often around ~0.8–1.5V—cannot normally power a white LED, which typically requires ~3.0–3.4V to conduct. Under normal conditions, the LED should remain off.

A “dead” battery often cannot provide sufficient voltage to overcome the LED’s forward threshold, but it still contains usable energy. The Joule Thief converts this remaining energy into high-voltage pulses, bridging that gap.


The Solution

A Joule Thief is a self-oscillating boost converter that steps up voltage using inductive energy storage and rapid switching.

It converts low-voltage, relatively higher-current energy into high-voltage, lower-current pulses, making otherwise unusable batteries functional again.


Circuit Components

Component

Role

Low-voltage battery

Input energy source

Toroid (ferrite core with two windings)

Coupled inductor / energy storage

Transistor (typically BJT)

Switching element

Resistor

Limits base current

LED

Output load


How It Works

1. Startup

A small current flows from the battery through the resistor into the transistor’s base. Because the resistor is relatively high in value (typically 1k–10k), this initial current is very small.

This causes the transistor to begin turning on, allowing current to flow through the primary coil.


2. Positive Feedback (Regenerative Action)

As current increases through the coil, a magnetic field builds in the toroid.

Because the coils are magnetically coupled, this changing magnetic field induces a voltage in the feedback winding. This induced voltage adds to the base current, driving the transistor harder into conduction.

This creates a rapid positive feedback loop, quickly switching the transistor fully on.


3. Turn-Off Mechanism

The transistor cannot remain on indefinitely. Turn-off occurs when the feedback-induced base drive collapses as the rate of change of magnetic flux decreases.

Contributing factors include:

  • Reduction or reversal of induced feedback voltage
  • Transistor gain (β) limitations
  • Core saturation (in some designs, accelerating the process)

As the core approaches saturation or the rate of current change slows, the induced feedback voltage drops, reducing base current and allowing the transistor to turn off rapidly.


4. Inductive Kickback & LED Conduction

When the transistor switches off, the magnetic field in the inductor collapses rapidly.

This causes the voltage polarity across the coil to reverse, producing a high positive voltage spike at the transistor’s collector. The voltage rises until it exceeds the LED’s forward voltage (~3.0–3.4V), forcing current through the LED.

The collapsing magnetic field generates a high-voltage spike that forward-biases the LED, releasing the inductor's stored energy as light.


5. Repetition

This process repeats continuously at high frequency (typically ~20–200 kHz depending on component values).

Although the LED is driven by rapid pulses, the frequency is high enough that it appears continuously lit to the human eye.


Why It Works When It Shouldn’t

Battery Provides

LED Requires

Low voltage (~1V)

Higher voltage (>3V)

Available energy at low voltage

High-voltage pulses to conduct

The circuit effectively converts low-voltage energy into high-voltage pulses, trading current for voltage while approximately conserving power (minus losses).


Key Physical Principles

  • Electromagnetic Induction — Discovered by Michael Faraday (1831)
  • Lenz’s Law — Formulated by Heinrich Lenz (1834)

These principles describe how changing magnetic fields induce voltage and oppose changes in current.


Efficiency Considerations

The Joule Thief is not a highly efficient converter:

  • Typical efficiency: ~40% to 70%
  • Energy losses occur in:
    • Transistor switching
    • Core losses
    • Uncontrolled current flow

It is best understood as an energy scavenging circuit, not a precision power supply.


Practical Improvements

1. Add Base-Emitter Resistor

A resistor (~10k–100k) between base and emitter improves switching stability and ensures proper turn-off. Many simple Joule Thief circuits omit this resistor, which can lead to slower turn-off and less stable oscillation.


2. Optimize the Toroid

  • Use high-permeability ferrite cores
  • Adjust winding turns (e.g., slight imbalance like 8:10)
  • Better cores improve startup and efficiency

3. Replace BJT with MOSFET

  • Reduces drive losses
  • Improves efficiency, especially at low voltages

4. Add Output Rectification

Using a diode and capacitor:

  • Smooths output pulses
  • Provides more continuous output
  • Enables powering small DC loads

5. Improve Current Control

Adding emitter resistance or feedback control:

  • Prevents excessive current
  • Improves efficiency and component lifespan

Final Summary

The Joule Thief does not violate any physical laws. It works by:

  • Storing energy in a magnetic field
  • Rapidly switching current using a transistor
  • Releasing energy as high-voltage pulses via inductive kickback

A “dead” battery still contains usable energy—this circuit simply transforms it into a usable form by converting low-voltage input into usable high-voltage pulses.

 

NE555 Internal Architecture → Teachable Breakdown

Big Picture:
The NE555 is a simple but incredibly versatile chip that can create precise time delays or continuous oscillations (blinking LEDs, tones, pulses, etc.). Inside, it’s basically two voltage detectors, a memory element (flip-flop), and a switch that controls a capacitor — nothing more.


1. Comparator Block (2 Comparators)

These are the decision engines.

Lower Comparator (Trigger Comparator)

  • External pin: TRIG (Pin 2)

  • Reference: from CONTROL VOLTAGE (Pin 5) internally

  • Job: Detects when voltage is low → sends SET to flip-flop

Interpretation: "Voltage dropped low → turn ON"

Upper Comparator (Threshold Comparator)

  • External pin: THRESH (Pin 6)

  • Reference: influenced by CONTROL VOLTAGE (Pin 5)

  • Job: Detects when voltage is high → sends RESET to flip-flop

Interpretation: "Voltage went high → turn OFF"

Shared Control Voltage Pin (Pin 5)

  • Adjusts both comparator reference levels together

  • Moves "low" and "high" thresholds up or down as a pair

  • Normally sits at 2/3 VCC internally, but you can connect a voltage higher or lower than that to change timing behavior

  • Practical note: In a standard astable circuit, Pin 5 is usually connected to a small 0.01µF capacitor to “quiet” the reference levels from electrical noise.


2. Flip-Flop (Memory Core)

  • Internal (no direct pin)

  • Controlled by:

    • TRIG comparator → SET

    • THRESH comparator → RESET

    • RESET pin (Pin 4) → forced RESET

  • Outputs go to:

    • OUT (Pin 3)

    • DISCH (Pin 7)

Priority note: The RESET pin (Pin 4) is an emergency override — pulling it low forces OUTPUT LOW and keeps the capacitor discharging, no matter what the comparators say.

Critical trap: Never leave Pin 4 “floating” (disconnected). Electrical noise can accidentally trigger a RESET. Always tie it to VCC if you aren’t using it.


3. Discharge Transistor

  • Pin: DISCH (Pin 7)

  • Controlled by: flip-flop

Behavior:

  • OUTPUT OFF → transistor ON → capacitor discharges

  • OUTPUT ON → transistor OFF → capacitor charges

Interpretation: "Flip-flop decides whether capacitor charges or drains"

Vivid addition:
Think of the DISCH pin as a smart drain plug: when the flip-flop is RESET (OUTPUT LOW), the transistor turns ON and quickly empties the capacitor, like pulling the plug in a sink.


4. RC Timing Network

External timing system.

Pins involved:

  • TRIG (2)

  • THRESH (6)

  • DISCH (7)

Components:

  • Resistors

  • Capacitor

Role: Creates a changing voltage that is monitored by TRIG and THRESH

Bucket & Float Analogy (no math):

  • The capacitor is a bucket.

  • The resistors are the faucet (filling) or the drain (emptying).

  • THRESH is a sensor at the top (2/3 full).

  • TRIG is a sensor at the bottom (1/3 full).

  • DISCH is a plug at the bottom that the FSM pulls to empty the bucket.


5. Full Signal Flow

  1. Capacitor voltage changes (RC network)

  2. TRIG checks for low level

  3. THRESH checks for high level

  4. Comparators signal flip-flop

  5. Flip-flop changes state

  6. State controls OUT and DISCH

  7. DISCH affects capacitor again

Cycle repeats.


6. Clean Block Mapping

  • Lower Comparator → TRIG (2), CV (5)

  • Upper Comparator → THRESH (6), CV (5)

  • Flip-Flop → internal (TRIG, THRESH, RESET 4)

  • Output Stage → OUT (3)

  • Discharge → DISCH (7)

  • RC Network → TRIG, THRESH, DISCH


7. Core Mental Model

  • Capacitor voltage = main signal

  • TRIG watches for LOW

  • THRESH watches for HIGH

  • Flip-flop decides state

  • DISCH controls capacitor behavior

In short:
The capacitor voltage is the story.
The comparators are the readers checking “Is it too low?” or “Is it too high?”
The flip-flop is the director that decides what happens next.
DISCH is the actor that actually changes the capacitor’s behavior.


NE555 as a Finite State Machine (FSM)

States

  • State 1: OUTPUT HIGH

    • Flip-flop SET

    • DISCH OFF

    • Capacitor charging

  • State 2: OUTPUT LOW

    • Flip-flop RESET

    • DISCH ON

    • Capacitor discharging

Transitions

  • OUTPUT LOW → OUTPUT HIGH: TRIG goes low → Flip-flop SET

  • OUTPUT HIGH → OUTPUT LOW: THRESH goes high → Flip-flop RESET

FSM Table (clean format)

Current StateConditionNext State
OUTPUT LOWTRIG voltage goes lowOUTPUT HIGH
OUTPUT HIGHTHRESH voltage goes highOUTPUT LOW

Key insight: The capacitor voltage is what actually moves the “TRIG low” and “THRESH high” conditions — the RC network slowly pushes the voltage up and down between the two thresholds.

Stable Zone (hysteresis):
If the capacitor voltage is between 1/3 and 2/3 VCC, the FSM holds its previous state. This is the “memory” that makes the 555 stable and prevents flickering.


Mapping to LED Systems

LED SystemNE555 Equivalent
Frame timingRC timing
State changeTRIG/THRESH
LoopAstable oscillation
PauseRESET pin
Speed controlCONTROL VOLTAGE

Astable LED Behavior

  • ON phase → capacitor charging (“filling up”)

  • OFF phase → capacitor discharging (“emptying out”)

  • Charge time = ON duration

  • Discharge time = OFF duration

Mental picture: The 555 simply waits for the bucket to get full or empty before switching states.


Practical Testing Blocks

1. TRIG Test

  • Button to GND, pull-up resistor, LED on output
    Result: Press → LED ON (SET event)

2. THRESH Test

  • Capacitor charging via resistor
    Result: Voltage rises → LED turns OFF (RESET event)

3. Control Voltage Test

  • Potentiometer on Pin 5
    Result: Blink speed shifts via threshold movement

4. Flip-Flop Test

  • TRIG button → SET, RESET button → RESET
    Result: State is held (memory)

5. RC Astable Test

  • Standard astable circuit
    Result: Continuous blinking


Electrical Behavior and VCC

  • Internal divider creates:

    • ~1/3 VCC (trigger level)

    • ~2/3 VCC (threshold level)

  • About the name “555”: The name is often said to come from the three 5kΩ resistors inside that create the 1/3 and 2/3 voltage ladder (though the inventor, Hans Camenzind, claimed the number was chosen somewhat arbitrarily). Either way, those resistors are why the thresholds are ratio-based.

  • Key idea: 555 is ratio-based, not absolute-voltage-based. If VCC moves, the “rungs” of the ladder move with it, keeping timing stable.


Output and Transistor Structure

Output Stage (Pin 3)

  • Push-pull (totem pole)

  • Can source and sink current:

    • Sourcing: Sending power to an LED connected to Ground

    • Sinking: Providing the Ground path for an LED connected to VCC

Discharge (Pin 7)

  • NPN transistor to GND

State Mapping

Flip-FlopOUTPUTDISCH
SETHIGHOFF
RESETLOWON

CMOS vs Bipolar 555

FeatureBipolar (e.g., LM555)CMOS (e.g., LMC555)
PowerHighLow
Output driveStrongModerate
Voltage rangeModerateWide
PrecisionGoodBetter
Input impedanceLowerHigh

Practical note: For most beginner projects and LED blinking, the differences rarely matter. Use whichever version is cheaper or already in your parts bin.

Power spike warning (Bipolar): Bipolar 555s create a massive current spike when switching states. This is why you must use a decoupling capacitor (typically a 0.1µF ceramic + sometimes a larger electrolytic) close to the power pins. CMOS versions don’t have this “hiccup,” making them better for battery power.


Final Core Insights

  1. Capacitor is the main signal

  2. Comparators define transitions

  3. Flip-flop stores state

  4. OUTPUT + DISCH execute behavior

  5. Entire system = 2-state FSM + analog timer


Unified Concept

NE555 = hardware implementation of:

text
loop: ON → wait → OFF → wait
  • Capacitor replaces delay

  • Comparators replace conditions

  • Flip-flop replaces state

Same concept as digital systems — different implementation.

The 555 Mantra:

  • Trigger (Pin 2) asks: “Is it too low? Turn it ON.”

  • Threshold (Pin 6) asks: “Is it too high? Turn it OFF.”

  • Reset (Pin 4) says: “I don’t care, turn it OFF now.”

Why this matters:
Once you understand the 555 this way, you’ll see that almost every timing circuit (delays, oscillators, PWM, missing pulse detectors, etc.) is just a small variation on this same core idea.