DFRobot DFR0225 매뉴얼 - 페이지 5
{카테고리_이름} DFRobot DFR0225에 대한 매뉴얼을 온라인으로 검색하거나 PDF를 다운로드하세요. DFRobot DFR0225 9 페이지. All in one controller
PWM Control Mode
The PWM DC motor control is implemented by manipulating two digital IO pins and two PWM pins. As illustrated
in the diagram above (Figure 5), Pin 4,7 (7,8 for old Romeo version) are motor direction control pins, Pin 5,6 (6,9
for old Romeo version) are motor speed control pins.
Sample Code:
Digital 6
Motor 2 Direction control
Digital 7
Motor 2 Enable control
(/wiki/index.php/File:RomeoMotorJmp.png)
Fig4: PWM Motor
Control Pin
Allocation