Problem: when change the direction after stopping, the motor vibrates but doesn´t really move. When I help the motor with my finger in the right direction, the motor drives correct with the full torque. Sometimes the motor will catch the speed until the it has to stop an changes the direction. SETUP: An Atmega2560 delivers a PWM (1kHz, 50%) all the time. The Direction pin is changed after about 1000 steps. The !Enable pin determines if the next step should be performed.
(I have to control 15 motors simultaneously with a direction- and enablepin for every motor an one step (PWM) line for all motors)
An Atmega328P delivers per SPI the values vor the next step. This happens while the PWM pin is High. While the PWM pin is low the values are handed over to the !Enable and Direction Pins. Motor: Nema 17 - 17HS4401-S, 1.7A, 42Ncm Vmot = 24V, Driver: DRV8825
I set the VRef to 0.85V. Code: I don´t use the arduino libraries, it´s plan C, C++;
The Code seems OK, as the image shows.
Are you trying to ramp the speed by enabling and disabling the driver? Disabling the driver cuts the current to the coils (which removes torque) and it is also likely that when the driver is re-enabled, the indexer is returned to the home position, so if only a single step is taken between enabling and disabling, the driver will not be moving the motor.
Is this one of our DRV8825 boards? There are many clones that use this driver chip on the market. Can you post a picture that clearly shows the board?
I don´t want to remove the cooler, but I have another board without cooler at school, so I can send you a better photo on monday.
I didn´t realise that the !enable Pin resets the index.
I tried another approach: I set !enable to low and used an AND logic for the former enable logic an the continuous PWM, (Looks good on Oszi)
I only use FULL STEP MODE: The Uref is therfore: 1,17V? (1,7A x 1,4 (from 70 to ~100%)) x 0.5 (because of the 0.1 Rsense). Am I right here?
Everything sounds and looks good when the PWM Frequency is about 700Hz. At 1kHz the motor starts to get problems. at 1400Hz the motor reacts as the video from the first blog shows. Is there a calculation model for a good ramp for these drivers and steppers and why is the fmax so low?
Unfortunately, that is a knockoff of our board, not something we made. If you want to try with a genuine Pololu driver, you can find them on our web site or get them from our distributors. If you have the same issues with one of our boards, I would be happy to help you continue troubleshooting.
Most of the DRV8825 clone boards we see are purple and green clones of the A4988 seem to be common as well. The easiest way to check if drivers you already have are genuine Pololu products is to see if they have our silkscreen on the bottom of the board. If you post detailed pictures of the boards here, we should be able to tell you. Generally, the clone boards have different board layouts and do not use all of the same markings as ours.
If you want to ensure the drivers you are purchasing are genuine products, we recommend ordering directly through our web site or through one of our official distributors. Unfortunately, it is common for other vendors selling clones of our boards to use our name and documentation.