Uitstekend uitgelegd, ik heb al 2 opgeblazen. Nu heb ik al nieuwe besteld en ben op internet aan het zoeken hoe A4988 en DRV 8825 moet worden ingesteld. Maar nu begrijp ik dat met de stappen motor en de driver eerst goed moet uit gaan rekenen om de Vref in te stellen. Heel erg bedankt van deze Video uitleg.
Thanks for explaining so simple. watching everyone else they say to adjust to rated of motor so I was assuming 3.6v (rating of my motor) but every video was showing under 1 volt. glad I kept looking to find this video so i didnt blow anything up
Thanks for not trying to be a comedian while explaining the technology.Getting straight to the point and not wasting words earned you another sub. THANKS!
Perfect training video! Thank you! You are the best! I've been printing for a couple years and this is totally going to save me a bunch of headaches. My driver V-refs were way too low.
I wish I lived where you live. The ut61e is like 140 where I live. I have the ut61e + and you're right is a great multimeter and I've had many. Thanks for the video too. I forgot how until you said crocodile clips haha
Well I actually ordered it from China. If I had bought it locally it would have been much more expensive. Regarding the "crocodile clips", some people also call them aligator clips. Thanks for the feedback :)
@@zerotoheroengineering are you insulting me? I'm horrible at sarcasm. Lol i was thanking you and probably got the word messed up lol I got mine from China too but they've went way up in price in China. I paid like 110cad. Great meter the probes are no different than any of the probemasters I have. I actually mailed a set to a youtuber in new Zealand. When I ordered them I didn't realize that they were just the probes but they retracted way too easy. I got a new set with all the different parts for Xmas and they send them in a giant case like a good ratchet set would be in but no one keeps their probes in the case. There's a set on Amazon from a company called bionzo for like 50 dollars that I already had. If not for the soft wire on the pm there's no difference in quality. I forgot how to set vref and your channel popped up. I'm only a newb man, 2 years into circuit level components and theory as a hobby. Much more fun than coding. Peace
Thank you very much for the very informative video. I do understand that for my step motor Nema17 (17HS4401) A4988 should be set to 1.7*8*0.1=1.36, and DRV8825 should be set to 1.7*0.5=0.85
How would I go about this if my power source doesn't have a positive and negative voltage section like yours does (just one cable for the entire power source)?
If it just has one cable coming from the power source you'll have to strip the insulation of the tip of the cable and there you will find two conductors. They can be two separate wires or one of them can be isolated and the other not. If this is the case, the one that has insulation is usually the positive and the other is the negative. However, the best to do is to test them using the multimeter.
Hi I have a question, I connected the DRV8825 driver the wrong way and I do plug in the power, will that burn down my driver? because I notice that I cannot get any Vref reading after I correct that.
So my question is, why did you select a 12v 180w power supply? I’ve been trying to find out or understand what the minimum power is required. Can I use 12v with 74W or can I also use 24v @144W? I have been unable to find out how I can possibly use higher voltage power, and how to go about it.
I used that because that is what I had around. It is the type of power supply that is also used in 3D printers. For setting the Vref you can use a very low power power supply because almost no current is drawn during the process.
Thanks for your feedback. Yes, it is definitely possible, even on a breadboard. I just decided to use the Ramps because I already had it and makes everything simpler.
what happens if you place the driver the wrong way? and what is the current you are adjusting? is it for the speed of the stepper motor? give it more power and the stepper motor goes faster?
If you place the driver the wrong way you risk damaging either the driver or the microcontroller. Connecting things the wrong way results in rather unpredictable consequences but usually you damage/burn something. The current that is being adjusted is the current that flows into the motor coils. Each motor has a specific set of parameters for optimal operation (suppporting higher speeds and torque) and the current is one of those parameters. However the actual motor speed is defined by the frequency of the steps pin of the driver, which is controlled by the microcontroller.
I have the A4988 driver. My motors are rated at 1.5A and 1.3A, but I used the DRV8825 formula for both. Is this TOO conservative? Additionally my Rs value says "R100" so is this 0.1?
Hello Dimitrije. Yes, R100 is 0.1. I think using the DRV8825 formula is a little bit too conservative. It may even result in your motor not running smoothly (depends on the motors). Something closer to the values calculared with the A4988 formula should be better.
Noob here... does this mean that, by setting the imax value with the potentiometer it won't matter how many amps te power supply is sending? Also... is it normal for the driver and motor to get too hot to touch longer than a couple of seconds?
By setting the maximum current, the driver will draw that for the power supply as long as the power supply has enough power to provide it. Depending on the current setting, it is normal that the motor and driver get hot. That is why in some cases it is recommended to use heatsinks and/or cooling fans
I'm a bit lost... I have these motors 23HS5628 rated at 2.8A. Now to the board. I'm using DRV8825 drivers. If i follow your calculation it is (2.8/2)-10% =1.26v. But the boards only go max till 1,16. Will that say i can use the boards at max vref without any problem. Or will they get very hot and break?
Your motors are a little bit over the max limit of the DRV8825 which can provide a maximum of 2.5A per coil. Theoretically you could use them at the max VRef as long as you use proper cooling (heatsink + fan). However, everything that is continually used at maximum performance tends to last shorter times. However, the drivers are so cheap that they're at least worth a try :)
why dont you post full tutorials about setting and configuring limit switches also please put video about full arduino+cnc shield+stepper wiring and setup
Hi. The easydriver is not appropriate for your motors since it has a maximum current of 700mA per phase, which is 4 times less than what you need: 2.8A. You should look for other stepper drivers with capability of providing that amount of current.
Thank You for a Very useful and informative video. I have one related question to ask, will this solve the problem of overheating motors and annoying aound they make?
Hi. Setting the VREF correctly allows you to get the best performance, which means less noise and less vibration. However, there will always be some noite using these motors. There are other stepper motor drivers from Trinamic (TMC2100, TMC2130, TMC2208, TMC2209) that can further reduce the noise and vibration. When I get some time I'll make a video about them. Stay tuned
Great video, very informative and explains WHY for things, rather than just DO this. Can you do one for TMC 2209 too? :-D I notice you only have 2 videos, did you stop?
Thank you so much for your feedback. Regarding the TMC2209, yes. It was already on my plans, actually :) . I didn't stop making videos. I just have been been busy with work and a few projects (some videos about them coming) but didn't have time to edit the videos yet. I didn't stop, just had to pause. Hopefully I can get continue making videos soon :)
Hi. Yes, you can stick it in a breadboard without using the ramps. You just have to connect the GND and VDD pins. Notice that the VDD is the logic power supply (5V), so don't connect 12V on VDD.
If we want to add an i2c lcd screen module to the circuit, do we need to connect the lcd when adjusting the current limit? Because i tried connecting the lcd after i set the current limit and the motor is not working (it works if it's not connected to the lcd)
Do you have any picture or drawing of your connections? The LCD and the stepper motor driver are completely unrelated and one should not affect the other. Maybe you have some wrong connections.
@@zerotoheroengineering nevermind I figured it out, thanks🤣 because the arduino keeps sending signal to display the lcd so the motor cannot work, after i tweak the codes then it's working already, there's no need to change the current limiting potentiometer
Hello Ryan. The formulas I provide in the video came from the stepstick pages from Pololu and are correct: DRV8825: www.pololu.com/product/2133 A4988: www.pololu.com/product/1182 The formula they showed you also works for the A4988 as a "rule of thumb" if the Rsense of the A4988 is 68 mOhm. If you do 8x0.068 = 0.544 which is very close to the 0.5 (or 1/2) of the formula of the DRV8825 that you mentioned, making both formulas very similar. However, if the Rsense is different than 68 mOhm the VREF calculated using that formula will no longer be accurate.
@@zerotoheroengineering Thank you. This is useful. I did find the data sheet for the A4988 when I went to your website. I appreciate you sharing your sources.
My sensor resistors for the A4988 read "R10". I assume this means 10 milliOhms. The resistance is so small that my multimeter cannot read it. Is this value a problem? It results in Vref = 0.12V for Imax = 1.5A for the stepper motors I'm using.
Can I ask a silly question pls Can I use Power supply with 12V 2A Because according to the vid, I use Stepper Motor with rated current 1A, so my Vref is 0.8V. Uploading with code, my Motor does turn but it’s not rotate, just vibrate little forward then backward. I tried to change Vref a bit but it’s same as previous, except the Motor became weaker or stronger, pls help :((
Hi. Yes, you can use power supply with 12V 2A. From what you described it seems to me that your motor wires are not in the correct order. If they are not in the correct order they will turn a little bit to one side and then the other, resulting in vibration. Try changing the order of the wires. When you put the right order it will rotate as desired.
@@zerotoheroengineering thanks for your reply, and yes I do try to change the coil, and already known exacly the right coil by using Led trick. But the problem still same. Don’t know if it’s by the power supply or the Vref of the driver (a4988)
@@pipimz4734 Do you have the reference code for your motor? Are you sure that both th driver and the motor are in good condition? Do you have other motor or driver to try?
Mine A4988 is showing 0 volt across potentiometer and ground even after turning potentiomenter counter clockwise. Why does it happend? i am using battery cell of 12 volt and 23 amp. Also I don think that connection of stepper is wrong.
Hi. Are you calibrating VREF with a standalone stepstick or with a stepstick mounted on a board like the ramps? Are you providing the 5V logic power supply as well? The 12V power supply is only for motor current supply. You must also provide the 5V to the logic part.
I have a problem and I don't know where else to ask, but for some reason I'm getting a 12v reading off of the potentiometer Does anyone have an idea on how to fix that?
It's hard to guess what could be failing. The best advices I can give you are: (a) check that the supply voltage is reaching the stepper motor driver and (b) check if you get the same behaviour with a different stepper motor driver (maybe the one you used is faulty)
Ahah That's the hard mode :) In your case you can create an arduino sketch to continuously rotate the motor and connect everything together. Then, with everything connected and powered, slowly twist the potentiometer on the stepsticks until you get a smooth rotation of the motor. That's not the perfect and safest way, but if you're careful and know what you're doing it will work fine.
That formula is only true for a specific value of the sensing resistor. There are boards with different resistors as I mentioned in the video and the value of the sensing resistor must be taken into account
isn't is just A LOT easier to feed the 12V to the driver and use the multimeter to read the amps, and adjust based on that reading? see 45m40s here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0qwrnUeSpYQ.html
If you listen to what the guy on the video is saying, you have to put the multimeter in series with only one of the coils of the motor and measure the current while it is stopped (the short circuit current). It works, but there are several reasons to use the method I describe: 1 - The VRef method allows you to set the VREF without/before connecting any motor, preventing any possible damage. 2 - if you have a board with the drivers soldered on the board and motors with specific connectors on the leads it may be hard to put the multimeter in series with the motor coil. 3 - When you do your first measurement you don't know which current is set on the driver. If it is set for 2A and you use a low current motor you risk damaging the motor. 4 - If you do this on a board with multiple drivers (eg. 3D printer board) it's easier to measure 4 test points and adjust 4 screws than connecting the multimeter in series with a coil of each motor Both methods work, but the method I describe in the video is safer and the way recommended by the manufacturers.