11 years, 9 months ago.

Inputs from a rotary encoder

Hello guys. Who can tell me about that how can i get the inputs from a rotary encoder and make a PWM outputs to control a DC motor?

Question relating to:

1 Answer

11 years, 9 months ago.

A bit hidden in the Cookbook there is this:

https://mbed.org/cookbook/QEI

And for PWM output you need to have a driver for your motor, this can be a simple powerfet or an elaborate H-bridge construction depending on what kind of control you need. The driver can then be connected to the PWM output(s) of the mbed.

Tips on driving motors with PWM can be found here:

https://mbed.org/cookbook/Motor