โš™๏ธ 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

  1. C2 charges through R2 and D1.
  2. When voltage on C2 reaches 2/3 VCC โ†’ 555 output turns LOW.
  3. C2 discharges through R1 and pin 7.
  4. When voltage drops below 1/3 VCC โ†’ 555 output goes HIGH.
  5. This loop creates a PWM signal at pin 3.
  6. 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

  1. NE555 PWM output โ†’ base of NPN transistor (e.g., 2N2222 or TIP120)
  2. Motor connected to collector and power supply
  3. Adjust POT โ†’ duty cycle changes โ†’ motor speed changes

ref