joe paul
Senior Member
Hi Folks,
I have been playing around with PWM and the PWM Wizard, and put a 3 volt motor through it paces, with the 18M2.
I used the PWM Wizard then altered numbers myself for a couple lines.
So if I used "PWMOUT B.6, 255, 1023" then the motor would run at its fastest? (I reduced voltage to the motor with a diode, so between the diode and the Darlington array, I gather the motor is getting 3 volts approx., it is a 3 volt motor. Using a snubber diode across the motor's leads, too.)
So I want to achieve the equivalent of running a 14 volt DC model/toy train motor at between 8-12 volts. Is there any formula I can use, or is it much more complicated, or just trial and error testing?
I realize I'll need a MOSFET to run the 14 volt motor.
Thanks,
Take care, Joe.
I have been playing around with PWM and the PWM Wizard, and put a 3 volt motor through it paces, with the 18M2.
Code:
main:
pwmout B.6, 99, 320
pause 10000
pwmout B.6, 99, 250
pause 10000
pwmout B.6, 99, 225
pause 10000
pwmout B.6, 99, 200
pause 10000
pwmout B.6, 99, 160
pause 1000
pwmout B.6, off
pause 10000
goto main
So if I used "PWMOUT B.6, 255, 1023" then the motor would run at its fastest? (I reduced voltage to the motor with a diode, so between the diode and the Darlington array, I gather the motor is getting 3 volts approx., it is a 3 volt motor. Using a snubber diode across the motor's leads, too.)
So I want to achieve the equivalent of running a 14 volt DC model/toy train motor at between 8-12 volts. Is there any formula I can use, or is it much more complicated, or just trial and error testing?
I realize I'll need a MOSFET to run the 14 volt motor.
Thanks,
Take care, Joe.
Last edited: