Wednesday, 12 July 2017

pwm - Current limiting on a stepper controlled by L293D on an arduino board



I currently have a bipolar stepper motor connected to a l298n, with one resistor to each coil.


The problem is it draws a lot of power when there is no need to, and limits the maximal power of the stepper.


The l298n is connected to an arduino. Can i use the arduino pwm to limit the current?


I already tried with the Enable pin on the l298n board, but the motor did not work correctly.


This thread is similar to my question, but it doesn't clearly answer the question Is it possible to run a stepper motor only with a L293D at reduced current?


EDIT1:


I have 2 bipolar stepper motors(phase current 1.6A), and 2 l298n controller boards.



Answer




On this one you have 64 setting of resistance.



Connect these like you would resistors. It's basicly 64 resistors that you can "switch" the resistor via your Arduino sketch.




You'll need to find a different chip for the right resistance levels and wattage. I didn't look at this one hard but it was only controlling a LED: not 1.6 amps. It might, but I doubt it.


And it would take only 2 pins for both motors, even if you need four chips because they use the same protocol than allows multiple devices on the same 2 lines.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...