Basic Circuits - Building Blocks of Electronics
💡 Introduction
These are the fundamental circuits every beginner should know! They form the building blocks for more complex projects.
🔦 1. Simple LED Circuit
The most basic circuit - learning about current limiting!
<figure style="text-align: center;"> <img src="/img/circuits/simple-led.svg" alt="Simple LED Circuit" style="max-width: 500px;"> <figcaption>Figure 1: Simple LED Circuit with 220Ω Current-Limiting Resistor</figcaption> </figure>
Component List
| Part | Value | Purpose |
|---|---|---|
| V1 | 5V | Power supply |
| R1 | 220Ω | Limits current to the LED |
| LED1 | LED | Lights up when current flows |
How It Works
- LED needs about 2V to turn on
- Resistor drops the remaining 3V (5V - 2V)
- Current = 3V / 220Ω = ~13.6mA (perfect!)
- Always use a current-limiting resistor with LEDs!
Practical Values
- For 5V: 220Ω to 1kΩ works well
- For 9V: 470Ω to 2.2kΩ is safe
- Lower resistor = brighter LED (but don't go too low!)
💫 2. LED Flasher (Astable Multivibrator)
Two transistors, two LEDs - they blink back and forth!
<figure style="text-align: center;"> <img src="/img/circuits/led-flasher.svg" alt="LED Flasher" style="max-width: 500px;"> <figcaption>Figure 2: LED Flasher Circuit</figcaption> </figure>
How It Works
- Two NPN transistors cross-coupled with capacitors
- No stable state - continuously flips back and forth!
- Great for making LEDs blink at a set rate
Frequency Formula
f = 1 / (1.38 × R × C)
Example Values
- R1 = R2 = 10kΩ
- C1 = C2 = 100μF
- Result: ~0.7 seconds per LED (1.4s full cycle)
⏱️ 3. 555 Timer Astable Mode
The classic 555 timer making LEDs blink!
<figure style="text-align: center;"> <img src="/img/circuits/555-astable.svg" alt="555 Timer Astable" style="max-width: 500px;"> <figcaption>Figure 3: 555 Timer in Astable Mode</figcaption> </figure>
Component List
| Part | Typical Value | Purpose |
|---|---|---|
| R1 | 10kΩ | Charging resistor |
| R2 | 2.2kΩ | Discharging resistor |
| C1 | 10nF | Timing capacitor |
Frequency Formula
f = 1.44 / [(R1 + 2×R2) × C]
Duty Cycle = (R1 + R2) / (R1 + 2×R2) × 100%
Practical Tips
- Add a 0.1μF capacitor from pin 5 to GND for stability
- Always connect pin 4 (RESET) to Vcc
- Output can drive an LED (with 220Ω resistor!)
🔌 4. NPN Transistor Switch
Using a transistor like an electronic switch!
<figure style="text-align: center;"> <img src="/img/circuits/npn-switch.svg" alt="NPN Transistor Switch" style="max-width: 500px;"> <figcaption>Figure 4: NPN Transistor Switch Circuit</figcaption> </figure>
How It Works
- OFF state: Input LOW or floating - transistor doesn't conduct
- ON state: Input HIGH (or through pull-up) - transistor conducts, LED lights!
Component Selection
- Transistor: 2N2222, BC547, or similar NPN
- Base resistor: 1kΩ to 10kΩ (limits current to base)
- Collector resistor/LED: As needed for your load
Practical Rule
- Base current should be ~1/10th of collector current for saturation
- Example: If LED needs 20mA, base should have ~2mA
📐 5. Op-Amp Inverting Amplifier
The classic op-amp circuit - signal in, amplified signal out (inverted)!
<figure style="text-align: center;"> <img src="/img/circuits/opamp-inverting.svg" alt="Op-Amp Inverting Amplifier" style="max-width: 500px;"> <figcaption>Figure 5: Op-Amp Inverting Amplifier</figcaption> </figure>
Gain Formula
Vout = -Vin × (Rf / Rin)
Example
- Rin = 10kΩ, Rf = 100kΩ
- Gain = -10x (inverted, 10x amplification)
Golden Rules of Op-Amps
- No current flows into inputs (infinite input impedance)
- V+ = V- (virtual short, due to negative feedback)
🎓 Classroom Exercises
Exercise 1: LED Brightness
- Build the simple LED circuit
- Try different resistors: 220Ω, 470Ω, 1kΩ
- Observe brightness changes
Exercise 2: 555 Frequency
- Build the 555 astable circuit
- Change capacitor values: 10nF, 100nF, 1μF
- Measure or observe frequency changes
Exercise 3: Transistor Switch
- Build the NPN switch circuit
- Try different base resistors
- Find the minimum resistance needed to fully turn on the transistor
💡 Summary
- LED Circuit: Always use current-limiting resistor!
- LED Flasher: Two transistors, great for learning timing
- 555 Timer: Super versatile, three main modes
- Transistor Switch: Electronic switch, fundamental building block
- Op-Amp: Building block of analog circuits, follow the golden rules!
These basic circuits will serve you well as you explore more complex electronics!