Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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