Simple PWM for motor control
This program is for motor control with Arduino motor shield and LCP 1768.
For motor control with arduino motor shield, it needs direction signal and brake signal. Maybe brake signal is optional. So, the code use three pins, direction(gpio), brake(gpio) and PWM output.
- Schematic