Hi, I have NEMA 16 motor and I connected it to A4988 so I can control the motor to arduino. The problem is that there is a trimpod in the drive A4988 and many people say I should first set a precise current using the trimpod to avoid damaging the module.
I saw many tutorials online and they look too complicated and I dont even have a multimeter. So my idea is this: could you please tell me which wise (clockwise or anticlockwise) the trimpod reduce and increase current?
My idea is this: I will turn the trimpod in the clockwise/anticlockwise many times so I decrease the current to a minimmum. After that I will turn on the motor and see if it spins. If it does not, I will turn the trimpod and increase the current till it starts moving so I know I am not abusing the current.
But first I need to know: do I need to turn the trimpod clockwise or anticlockwise in order to make this module A4988 have the minnimum amount of current?
Seriously, if you are too cheap to buy a motor you should find another hobby. A DMM is the FIRST investment you should make when you get into this hobby. Mow the neighbor's lawn or sell lemonade or something, but buy a DMM (Digital MultiMeter).
It's not about money man... if anyone could tell me which wise to spin the trimpod it would be much easier than using a multimeter... hope someone can check that to me.
Buy a small cheap multimeter now, then take time to choose a better one later if
you want. You cannot do electronics with no eyes! A meter is your eyes. Well, a
'scope is really your eyes, but for DC and sinusoidal low frequencies a meter is usually enough.
A trim pot does not regulate current, but it can be used in a circuit to do so. It is a variable resistor. You can probably look at the construction of yours and determine which two leads are the ends of the resistor, and which one is the wiper.
There is no standard, so there is not a correct direction that applies to all potentiometers.
Technically a potentiometer is a 3 terminal device, a variable resistor is a two terminal device.
The wiper is the metal bit the adjustment tool engages in, its easy to stick a multimeter
probe on it, but not while its actually being adjusted, unless you can hold the probe to the
jewellers screwdriver while you adjust it (yes, usually these trimmers are too small for anything
else).
In a high voltage or RF circuit you use a special plastic tool for adjusting trimmers.
That's all well and good but I've done that A4988 current calibration several times and you need to be able to measure the current through the motor winding WHILE measuring the voltage at the test point, neither of which you can do without a multimeter. I used the power supply current display on the P.S. LCD while measuring the voltage with a meter.
I HAD AN IDEA! Just please tell me this: if I turn a trimpot 100x times to one side, will I have to run it 100x times to another side so it comes back to its original value? Or if I turn it after certain point, the trimpot will not care anymore about now many turns did I make? For example: after 3 turns, if I make 10 or 1000 turns, the trimpot will not change its value anymore, and if I turn it to the other side once, it will already change the current?
Cause I am thinking about turning the trimpot 20 times to one side and pray that this side is the 0 current side (if not, I will burn my drive so at least I know now the right side) so I can turn it slowly to the other side till the motor moves. Can I do that?
Method 1 - Empirical Adjustment:
The stepper drivers can be adjusted without measuring voltages, by observing motor performance. Use a nonmetal screwdriver (plastic or ceramic) to avoid short circuits. Either run a print (preferably one that's been causing motor issues) or set up manual control using an LCD Controller, or Repetier Host, or Pronterface. CAREFULLY turn the pot fully CW (minimum current) then back CCW about 1/4 turn, or enough to make the motor run smoothly. From that point, if you are able to adjust while the motor is moving (either in a print or under manual control) turn the trimpot CW until the motor starts to stall or stutter, then turn CCW until steady performance resumes. Otherwise, alternate adjusting the pot slightly and then running the motor, with the same results in mind. The general idea is to find a low current setting that results in stalling or stuttering, and then boost the current a bit to get reliable motion without going too far CCW.
BUT I need to make sure CW or CCW decreases or increase current cause in this link the guy makes reference to another driver! Any guess?
Sincerally, I think this method is the BEST ALTERNATIVE. Better than using a multemeter as many of you said. Every motor has internal firction which differs from each other. So using a multmetter is not ideal cause you will not have equal motors. I think that increasing the current little by little till you find the sweet spot is the best way to do this. You dont need to rely in resistor values, VREF, information taken from datasheets... you can do this empiraclli.
Anyway, I would like if you could reply me if the trimpot accepts 100 spins of after a certain point it stops couting the spins.
The fact that you persist in ignoring the recommendation to buy a meter and then have the gall to tell us you think this method is BETTER than actually MEASURING the current ( and voltage) confirms that your future in electronics will be fraught with problems. I can only say this does does not say anything good about your judgement . The fact that the A4988 will work right out of the box without doing the calibration is not the point. Whether or not you can adjust the pot to some point that allows the motor to work is also not the point. The point is that in your inexperience and twisted logic you actually think that doing the calibration blindly is better than measuring the parameters in question is what sends a red flag about your judgement. Had you simply stated, "I need to be able to use the motor immediately so I'm going to adjust the pot to some arbitrary value where the motors will work and then buy a meter at the first opportunity" there would be nothing wrong with that. It's your outright refusal to buy a meter and insistence on calibrating it without one and at the same time saying you think it's better not to use a meter that puts your judgement in question.
If you are in the USA then Harbor Freight is almost everywhere and they have a DMM that is good enough for $6. Sometimes it is on sale for $3 or less.
If you are somewhere else in the world then look for a discount tool store. You should only buy the cheapest multimeter that measures volts and ohms. It does not have to be digital although those are now much cheaper than analog. That is all that is necessary for this job and many other jobs in your future.
@ChrisTenone yeap, you were the only person who said a valid thing here. The screw was loose! It should not spin infinite times CW or CCW. I fixed it now it only spins once
I just need to know if CW or CCW is increasing/decreasing current, just that guys.
I am not stupid and I will not buy a multmeter only for this. Ok? Let's put this behind us and stop discussing this.
If you cant do anything without a multmeter you are not smart and you are not creative. I built and ENTIRE QUADCOPTER from scratch, ALL THE CODE, ALL THE CONNECTIONS I made by myself without a multmeter. Dont believe? Check this: QuadcĂłptero feito puramente com ArduĂno - YouTube
I DONT NEED A MULTMETER, end of story. Some of you are not as creative or resourceful as I, so you surelly need a multmetter, you need to pay a course to learn arduino, to learn programming... I did all by myself, never had a programming course in my entire life, never had an arduino course in my life. I learned all from e-books and books - I know how to read, ok?
As I did with my quadcopter, I DIDNT USE ANY CODE FROM ANYONE. I created my entire code, ENTIRE CODE. Only used servo library and JEFF ROWBERG library and nothing else.
So please, stop saying I should quit this hobby cause you sound really stupid saying that.
I just need to know if CW or CCW is increasing/decreasing current, just that guys.
Nobody can answer this question as long as we don't know the make of your A4988.
There are the original ones made by Pololu and there are some cheaper Chinese clones.
The original ones from Pololu increase the current by turning the trimpot clockwise (CW).
Most clones increase the current counter clockwise (CCW) - but you never know what the design actually looks like and with clones you even can't trust their manuals - given that you got one.
Attention:
The trimpot range is about 270 degrees - a very small move can cause a high current jump, depending on your driving voltage.
I DONT NEED A MULTMETER, end of story. Some of you are not as creative or resourceful as I, so you surelly need a multmetter, you need to pay a course to learn arduino, to learn programming
As all previous people said, I only can repeat it: You NEED A MULTIMETER.
Believe it or not - you CAN FRY your stepper when you don't adjust the current to the max current of the motor.
And - this has nothing to do with how good you are at PROGRAMMING; here we are talking about basic electronics and as an engineer I only can say, measure, measure if you don't want to kill your devices and burn your money. But the final decision is up to you.
When you are driving in your car (supposing you are a driver) - do you FEEL the speed or do you look at your dashboard? The same applies here if you don't want to be caught by the fireman...
If you come to the conclusion it might be cheaper not to burn your steppers, then you can read some deeper information about how to set up a A4988 (or a DRV8825) and if the current setting happens CW or CCW etc.
You will find it here: http://forum.arduino.cc/index.php?topic=415724.0
I DONT NEED A MULTMETER, end of story. Some of you are not as creative or resourceful as I, so you surelly need a multmetter, you need to pay a course to learn arduino, to learn programming... I did all by myself, never had a programming course in my entire life, never had an arduino course in my life. I learned all from e-books and books - I know how to read, ok?
Simple Fact: You are nowhere near as smart as you think you are and you are not smart enough to realise it.
Fact: Turning the Stepper Driver board trim pot more than a full revolution will result in it ultimately breaking. The component "wiper" is not designed to be turned even 1 full circle much less 100. It is most definitely not a multi-turn potentiometer.
Fact: Counterclockwise on that board = Less current Clockwise = More current. You clearly are not resourceful enough to find a datasheet on a relatively common stepper driver board or you could have found this answer yourself.
Anyway, I would like if you could reply me if the trimpot accepts 100 spins of after a certain point it stops couting the spins.
More than likely it is either a single turn pot or a 10 turn pot but since you did not post a vendor link for the A4988 it is impossible for us to know.