Enter the duty into the calculator to determine the Voltage from PWM. 

Voltage from PWM Formula

The following formula is used to calculate the Voltage from PWM. 

V = D / 256 * 5

Variables:

  • Where V is the Voltage from PWM (volts)
  • D is the duty 

To calculate voltage from PWM, divide the duty (PWM) by 256, then multiply by 5.

How to Calculate Voltage from PWM?

The following two example problems outline how to calculate the Voltage from PWM.

Example Problem #1:

  1. First, determine the duty. In this example, the duty is measured to be 200.
  2. Finally, calculate the Voltage from PWM using the formula above: 

V = D / 256 * 5

Inserting the values from above and solving the equation with the imputed values gives: 

V = 200 / 256 * 5 = 3.906 (volts)


Example Problem #2: 

Using the same process as example problem 1, we first define the variables outlined by the formula. In this case, the values are:

duty = 21

Entering these values into the formula or calculator above gives us:: 

V =21 / 256 * 5 = .410 (volts)