Understanding pwm value to get desired voltage from MOSFET?

toby-wan:
Hi I have been playing around with the L298N motor controller. I found this equation to find the pwm needed for a desired output voltage.

I have a 11.1v lipo but my motors are only rated for 9v.

That's perfect then, the L298 will drop about 2V anyway.

The PWM ratio only controls the output effective voltage linearly
when using the correct "decay mode"(*), otherwise the response is
non-linear (and can depend on the PWM frequency). How have
you wired up the PWM signals to the L298?

Given the many variables involved the PWM to output-speed curve
is best determined by experiment rather than calculation I think...

(*) "synchronous rectification" where one switch is on the other off at all times.