DC motor control using two wire and PWM
How to control DC motor.
Dc_motor_control.png
Only one PWM output can be used at the same time. The second one must be switched off: OCR1B or OCR1A set to zerro.
SOURCE CODE ATMega1284P:
/*************************************************************************************
/*************************************************************************************
#include
Second version- the best one
Dc_motor_control ver. 2.png
Any signals levels on the input is allowed - Fault Tolerant
Previous page: Teplomer a Nokia LCD 3310/3330
Nasledujúca stránka: Guestbook