โ๏ธ Mode 1: Astable (Oscillator)
๐ Generates a continuous square wave
๐ง Wiring:
VCC
|
[R1]
|
+------ Pin 7 (DIS)
| |
[R2] [C1]
| |
Pin 6 -----+ |
Pin 2 -----|--+
|
GND
- Pin 4 (RESET) โ VCC
- Pin 5 (CTRL) โ 0.01ยตF to GND
- Pin 3 = Output
๐งฎ Frequency & Duty Cycle:
T = 0.693 ร (R1 + 2รR2) ร C1
f = 1 / T
Duty Cycle โ (R1 + R2) / (R1 + 2รR2)
example 1.
This is a PWM generator circuit using a 555 Timer IC configured in astable mode, used to control a DC motor via a MOSFET. The duty cycle is adjustable using a potentiometer.
๐ฆ Circuit Summary
| Pin | Name | Description |
|---|---|---|
| 1 | GND | Connected to ground |
| 2 | Trigger | Connected to timing capacitor C2 via noise filters (C3, C2) |
| 3 | Output | PWM signal output to MOSFET gate |
| 4 | Reset | Tied to VCC to avoid accidental reset |
| 5 | Control Voltage | Decoupled with 0.01 ยตF (C4) for noise immunity |
| 6 | Threshold | Connected to timing network |
| 7 | Discharge | Discharges timing capacitor via R1 |
| 8 | VCC | Power supply (with decoupling capacitor C1 = 220 ยตF) |
๐งฉ Key Components
| Component | Value | Function |
|---|---|---|
| R1 | 1 kฮฉ | Sets discharge time |
| R2 | 100 kฮฉ pot | Sets charge time (duty cycle control) |
| D1 | 1N4148 | Separates charge and discharge paths |
| C1 | 220 ยตF | Power decoupling |
| C2, C3 | 1 nF | Trigger debounce / noise filtering |
| C4 | 0.01 ยตF | Filters pin 5 (control voltage) |
| MOS | N-channel | PWM-driven motor control |
๐ Operation
- C2 charges through R2 and D1.
- When voltage on C2 reaches 2/3 VCC โ 555 output turns LOW.
- C2 discharges through R1 and pin 7.
- When voltage drops below 1/3 VCC โ 555 output goes HIGH.
- This loop creates a PWM signal at pin 3.
- PWM signal drives the MOSFET, which controls motor speed.
โ๏ธ Features
- Adjustable duty cycle via R2 (100k potentiometer)
- Stable operation with decoupling capacitors
- Simple and low-cost motor control solution
- Output PWM can be used to drive DC motors, LEDs, or other loads via a MOSFET
โ Notes
- Make sure the MOSFET is appropriate for your motor's voltage and current.
- You can add a flyback diode across the motor for protection.
example 2. โ๏ธ NE555 as PWM Generator with Potentiometer
๐ Purpose
Generate a variable PWM (Pulse Width Modulated) signal using an NE555 timer. Adjust the duty cycle with a potentiometer to control devices like:
- Motor speed
- LED brightness
- Servo-like applications (via low-pass filtering)
๐ฆ Parts Required
| Part | Value |
|---|---|
| NE555 Timer IC | 1ร |
| Potentiometer | 10kฮฉ or 100kฮฉ |
| Diodes | 2ร 1N4148 (or any fast switching diodes) |
| Capacitor | 1ร 1ยตF to 10ยตF (electrolytic or ceramic) |
| Power Supply | 5V or 12V DC |
| Load | Optional (e.g. LED + resistor, transistor + motor, etc.) |
๐ Schematic (Text Diagram)
VCC (+)
|
+------+
| |
[R] [D1]
| |
+------+
| |
[POT] [D2]
| |
+------+
|
Pin 7 (DIS)
|
[C1] to GND
|
Pin 6 --------+
Pin 2 --------+
Pin 4 โ VCC
Pin 5 โ 0.01ยตF to GND
Pin 1 โ GND
Pin 3 โ PWM Output
Pin Functions
- Pin 3: PWM output
- POT: Varies charge/discharge ratio, changing duty cycle
- Diodes (D1/D2): Separate charge/discharge paths
โ๏ธ How It Works
- The NE555 is in astable mode.
- The two diodes split the charge/discharge paths.
- The potentiometer controls the ratio of charge to discharge time.
- This changes the duty cycle while keeping frequency fairly stable.
๐ Formulas (Approximate)
Charge time (output HIGH):
T_high = 0.693 ร (R1 + variable portion of POT) ร C1
Discharge time (output LOW):
T_low = 0.693 ร (fixed portion of POT) ร C1
Frequency:
f = 1 / (T_high + T_low)
Duty Cycle:
Duty = T_high / (T_high + T_low)
By adjusting the potentiometer, you change the ratio between T_high and T_low โ controlling duty cycle.
โ Tips
- Use small capacitor (like 1ยตF) for higher frequency PWM (kHz range).
- Add a buffering transistor on output if driving a motor or power load.
- For smoother motor/LED control, consider adding a low-pass filter (R + C) on output to convert PWM to analog-like voltage.
๐งช Use Case: DC Motor Speed Control
- NE555 PWM output โ base of NPN transistor (e.g., 2N2222 or TIP120)
- Motor connected to collector and power supply
- Adjust POT โ duty cycle changes โ motor speed changes