Motor shield & current limiting?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- lithium
- Posts: 3
- Joined: Sat Oct 15, 2011 10:33 pm
Motor shield & current limiting?
Does this motor shield provide current limiting for stepper motors? We're planning on using this motor with an external power supply.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield & current limiting?
If you power the motor with the rated voltage, the coil resistance provides the current limiting. 216-259 mA is within the limits of the shield capabilities. This motor should work fine with the shield.
-
- Posts: 4
- Joined: Sun Oct 09, 2011 7:27 pm
Re: Motor shield & current limiting?
Im confused? How can you power this with 12VDC????? I tried this same motor and it heats up the chips in like 10 seconds. The motor just vibrates with the continuos code sketch.
Do you run 12VDC in the +M/GND terminals, or the arduino ext. power socket with the jumper in place?
Why is there no documentation on how to do this?
Or, do you upload the code, disconnect the USB, plug in 12VDC in the +M/GND and then run? Can you put 12VDC on the +M/GND term's and have the USB connected? And if so, is the jumper in place? Why is this so confussing to me? I feel so stupid on such an easy issue.
Sorry if I interrupted, or butted in, but I really want to know how to get the same motor you got working.
Do you run 12VDC in the +M/GND terminals, or the arduino ext. power socket with the jumper in place?
Why is there no documentation on how to do this?
Or, do you upload the code, disconnect the USB, plug in 12VDC in the +M/GND and then run? Can you put 12VDC on the +M/GND term's and have the USB connected? And if so, is the jumper in place? Why is this so confussing to me? I feel so stupid on such an easy issue.
Sorry if I interrupted, or butted in, but I really want to know how to get the same motor you got working.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield & current limiting?
You use the external power terminals with the jumper NOT in place. When using external power, you have to remove the jumper to isolate the motor power from the Arduino power.Do you run 12VDC in the +M/GND terminals, or the arduino ext. power socket with the jumper in place?
It is right here:Why is there no documentation on how to do this?
If you would like to have the Arduino powered off of USB and the motors powered off of a DC power supply, plug in the USB cable. Then connect the motor supply to the PWR_EXT block on the shield. Do not place the jumper on the shield. This is a suggested method of powering your motor project
- lithium
- Posts: 3
- Joined: Sat Oct 15, 2011 10:33 pm
Re: Motor shield & current limiting?
When we measure the resistance of the coil with a multimeter, it's actually 5 ohms for each coil. Wouldn't this cause a very high current when the motor is holding position? Also, wouldn't this cause a much higher current than what is acceptable by the motor? We're still using the same motor linked to in the first post.
Edit: I should note that we just got the shield a few days ago, and haven't had a chance to start toying with it.
Edit: I should note that we just got the shield a few days ago, and haven't had a chance to start toying with it.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield & current limiting?
The spec sheet says it should be 50 ohms. Double check your measurement & contact the supplier if it doesn't meet the spec.it's actually 5 ohms for each coil. Wouldn't this cause a very high current when the motor is holding position?
- lithium
- Posts: 3
- Joined: Sat Oct 15, 2011 10:33 pm
Re: Motor shield & current limiting?
We double checked the resistance, and it is in fact 5 ohms. There's also a sticker on the motor stating it has 5 ohms.
We've read on the internet that some higher torque steppers have lower resistances and require current limitation, and it appears as though this might be the case here. Would it be possible to limit the current on the DC power supply before it's connected to the shield? Would there be any negative side effects to the shield by doing this?
We've read on the internet that some higher torque steppers have lower resistances and require current limitation, and it appears as though this might be the case here. Would it be possible to limit the current on the DC power supply before it's connected to the shield? Would there be any negative side effects to the shield by doing this?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield & current limiting?
Then it is not the same motor in the link.We double checked the resistance, and it is in fact 5 ohms. There's also a sticker on the motor stating it has 5 ohms
That would only limit the total current available. It would not control the current to each phase when multiple phases are energized (which is pretty much all the time).Would it be possible to limit the current on the DC power supply before it's connected to the shield?
Limiting the current will limit the torque. If your coil resistance is only 10% of what is in the spec sheet, you can expect a similar reduction in torque if you limit the current to match.Would there be any negative side effects to the shield by doing this?
- studen
- Posts: 2
- Joined: Tue Aug 26, 2014 9:11 am
Re: Motor shield & current limiting?
Hi,
I am also trying to limit the current that my motor draws because I am facing a problem of overheating. One solution is to be done with resistors. But is it possible to be done from the software e.g. libraries?
Thanks
I am also trying to limit the current that my motor draws because I am facing a problem of overheating. One solution is to be done with resistors. But is it possible to be done from the software e.g. libraries?
Thanks
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield & current limiting?
You could implement a crude form of current reduction (not really current limiting) by reducing the maximum duty cycle for the PWM in the library. However, as with a resistor-based solution, it is 'open loop' since it does not have any feedback to confirm the actual current level.
A better solution is to use a true current-limiting driver such as the Synthetos boards we have in the store.
A better solution is to use a true current-limiting driver such as the Synthetos boards we have in the store.
- studen
- Posts: 2
- Joined: Tue Aug 26, 2014 9:11 am
Re: Motor shield & current limiting?
Thanks a lot for the reply. One more question. If one moves the stepper motor with ''SINGLE'' type of movement, what type of signals does the controller send to the motor? Square signals? Please let me know in case of the ''Adafruit motor shield'' library and the ''Accel Stepper'' library.
Thanks.
Thanks.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor shield & current limiting?
Square signals. There is no PWM for SINGLE, DOUBLE or INTERLEAVE modes.
Since AccelStepper calls the Adafruit library for all steps, this is true for AccelStepper as well.
Since AccelStepper calls the Adafruit library for all steps, this is true for AccelStepper as well.
Please be positive and constructive with your questions and comments.