Gramps
Senior Member
This motor driver has 3 input pins. Direction, PWM and ground.
We tried sending PWM and ground using this code and nothing happens (accept a little hum)
The code does operate a small servo correctly.
Is the PWM frequency wrong?
Gramps
servo 4, 150 ; start servo on pin four and move to center
main:
pause 500 ; wait a half second
servopos 4, 200 ; move servo clockwise
pause 500 ; wait a half second
servopos 4, 150 ; move servo to center
pause 500 ; wait a half second
servopos 4, 100 ; move servo counter-clockwise
pause 500 ; wait a half second
servopos 4, 150 ; move servo to center
goto main ; return to main program loop
PN00218-CYT7 Cytron 20A 6-30V DC Motor Driver MD20A
We tried sending PWM and ground using this code and nothing happens (accept a little hum)
The code does operate a small servo correctly.
Is the PWM frequency wrong?
Gramps
servo 4, 150 ; start servo on pin four and move to center
main:
pause 500 ; wait a half second
servopos 4, 200 ; move servo clockwise
pause 500 ; wait a half second
servopos 4, 150 ; move servo to center
pause 500 ; wait a half second
servopos 4, 100 ; move servo counter-clockwise
pause 500 ; wait a half second
servopos 4, 150 ; move servo to center
goto main ; return to main program loop
PN00218-CYT7 Cytron 20A 6-30V DC Motor Driver MD20A