PWM object
youngdave
Posts: 70
Dear All
I need to drive two steppers with a square wave signal of user definable frequency, with a user definable duty ratio, and for a user definable number of pulses.
Does anyone know of such an object?
None of the PWM objects I can find seem to have the user definable pulse count.
TIA David Young
I need to drive two steppers with a square wave signal of user definable frequency, with a user definable duty ratio, and for a user definable number of pulses.
Does anyone know of such an object?
None of the PWM objects I can find seem to have the user definable pulse count.
TIA David Young
Comments
Bruce
Yes, I have that one. Thanks.
David Young
Most steppermotor-controls with step/direction-input accept quite short pulses (1µsec to 10µsec).
For driving stepper-motors for a certain amount of pulses very often a loop is used to create the pulses and have exact control about the number of steps.
Do you actually run out of cogs that you want a solution that does not require a own cog for creating steps.
Or do you want to measure the motor-coil-currents through the prop and do the choppering with the prop?
Of course you can do so but I would choose a stepper-motor-driver-circuit that takes care of the current-choppering.
What currents are we talking about? For everything up to 1A per coil you can use chips like the L298 or chips from allegro etc.
best regards
Stefan