[ Log In ]
Image of the Atmega324p

Atmega324P

$8.50
Qty:
USB AVR programmer

USB AVR Programmer

$9.95
Qty:
Breadboard adapter for the USBasp AVR Programmer

USBasp Breadboard Breakout Adapter

$4.90
Qty:
ST Link v2 for STM32 and STM8 microcontrollers top view of all components

ST-Link v2 STM32 and STM8 Programmer

$9.95
Qty:
STM32F0 microcontroller and interface board top view

STM32 M0 MCU and Interface to Breadboard

$14.95
Qty:
Multimeter Security Banana Plug To Test Hook Clip Probe Lead Cable 500V

Multimeter Security Banana Plug To Test Hook Clip Probe Lead Cable 500V

$8.99
Qty:
3 Foot USB Cable Type A to USB Cable Type A

USB Cable Type A Male to USB Type A Male - 3 FT

$2.65
Qty:
USB 2.0 Cable 10 Foot Type A Male to Type B Male

USB 2.0 Cable Type A Male to Type B Male - 10 FT

$4.80
Qty:
Tumbnail: 62 oz-in NEMA 17 Stepping motors (also called stepper motor)

NEMA 17 Stepping Motor (62 oz-in 5mm single shaft)

$19.95 Out of Stock
Qty:

Introduction to PWM (Pulse Width Modulation)

PWM or Pulse Width Modulation is the microcontroller's way of creating variable voltages. Since the microcontroller can only create voltages of 0v and the voltage of VCC which could be 5v, 3.3v, 1.8v, etc. there is a need to be able to create voltages between this 0v and VCC to control devices that required these variable voltages.

Some of the uses are:
- Sound output
- Motor control
- LED Dimming

The components to PWM is the Pulse, the Period and the Duty Cycle.

The pulse is where the voltage reaches 5v and maintains this 5v within the set period.

The period is the time frame that there is an idle voltage 0v, and a pulse. The period is set to the specifications of the desired resolution.

The duty cycle is the percentage of the width of the pulse in relation to the period.

There is standard PWM where the pulse falls at one side of the period, and there is phase correct PWM where the pulse falls at the midpoint of the period.

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):