well, back to this (after a good long while).
my past attempts at current limiting the L298N (with improvised analog electronics) were ultimately not successful, and eventually the thing fried.
couldn't really get accurate current limiting, and the stepper kept trying to pull more current than the L298N was rated for (around 2A), so it fried. I suspect I may be running too big of a stepper for the L298N to drive safely (at least with rather experimental stepper-driving code).
this is because when trying to run the stepper at 12v, naively it will try to pull around 5A.
keeping it at the rated 1.3A requires basically using around 30% duty cycle (for holding).
stepper coils are 1.3A, 2.5ohm, 5mH.
but, after the L298N fried, I am left back with an early stepper-driver built on a breadboard (out of PNP and NPN power transistors).
so, the current thinking is I will build some dual H-bridges using TIP120 and TIP127 transistors instead of driver ICs (still waiting on the TIP120's to show up). transistor H-bridges are considered since basically these should not fry.
previously I was using a fixed duty-cycle for running, generally around 50%-75%.
but, RPM is slow, and the motors really like to vibrate during operation.
the L298N failed with a running duty-cycle of around 85%, though the reported amperage on the power supply was still only about 1 amp at the time (and current limiting was IIRC set at around 2 amps).
I have since modified the code to try starting each pulse with around a 100% duty cycle, then rapidly dropping off to around 50% duty cycle (giving each stepper coil a reverse sawtooth wave). though not yet really well tested on the motor, I suspect it should perform better than using a fixed duty-cycle though (more power to get the motor moving at the start of the pulse, and less power holding it in place at the end of the pulse when the next pulse kicks on).
partly due to technical issues, it falls back to using the holding duty-cycle during low-speed operation.
side notes:
I am using the steppers to run gears with a 5mm tooth pitch used to move 3/8" all-thread (such as by spinning a nut on the all-thread), intended to in-turn move a load.
in one case, the gearbox is stationary and the all-thread does not turn (fixed to the load), so it will push/pull the all-thread through the gearbox (a gear on the all-thread contains a nut).
in another case, the all-thread is fixed to a gear in the gearbox (and will be spun by the motor), and the nut to move the load will be located on the load itself.
thoughts?...
my past attempts at current limiting the L298N (with improvised analog electronics) were ultimately not successful, and eventually the thing fried.
couldn't really get accurate current limiting, and the stepper kept trying to pull more current than the L298N was rated for (around 2A), so it fried. I suspect I may be running too big of a stepper for the L298N to drive safely (at least with rather experimental stepper-driving code).
this is because when trying to run the stepper at 12v, naively it will try to pull around 5A.
keeping it at the rated 1.3A requires basically using around 30% duty cycle (for holding).
stepper coils are 1.3A, 2.5ohm, 5mH.
but, after the L298N fried, I am left back with an early stepper-driver built on a breadboard (out of PNP and NPN power transistors).
so, the current thinking is I will build some dual H-bridges using TIP120 and TIP127 transistors instead of driver ICs (still waiting on the TIP120's to show up). transistor H-bridges are considered since basically these should not fry.
previously I was using a fixed duty-cycle for running, generally around 50%-75%.
but, RPM is slow, and the motors really like to vibrate during operation.
the L298N failed with a running duty-cycle of around 85%, though the reported amperage on the power supply was still only about 1 amp at the time (and current limiting was IIRC set at around 2 amps).
I have since modified the code to try starting each pulse with around a 100% duty cycle, then rapidly dropping off to around 50% duty cycle (giving each stepper coil a reverse sawtooth wave). though not yet really well tested on the motor, I suspect it should perform better than using a fixed duty-cycle though (more power to get the motor moving at the start of the pulse, and less power holding it in place at the end of the pulse when the next pulse kicks on).
partly due to technical issues, it falls back to using the holding duty-cycle during low-speed operation.
side notes:
I am using the steppers to run gears with a 5mm tooth pitch used to move 3/8" all-thread (such as by spinning a nut on the all-thread), intended to in-turn move a load.
in one case, the gearbox is stationary and the all-thread does not turn (fixed to the load), so it will push/pull the all-thread through the gearbox (a gear on the all-thread contains a nut).
in another case, the all-thread is fixed to a gear in the gearbox (and will be spun by the motor), and the nut to move the load will be located on the load itself.
thoughts?...