#Gecko g540 driver driver
100mA would be a fine setting for powering just an Arduino, but it's unlikely to make a motor driver or high power stepper motor very happy. If you look at your "Power Supply Connected" photo, it shows that the current limit has been reached, AND is set to "only" 100mA. It's also good things that need constant current, like LEDs, some types of battery charging, etc. This is great, if you have a reasonable expectation of how much current your device should use - you just set the limit a bit above that, and your circuit doesn't blow up, even if you have wiring errors or shorts. Then it will reduce the voltage to keep the current from exceeding the limit. It will regulate the set voltage UP UNTIL the current limit is reached.
#Gecko g540 driver update
Will try to update if I get more information on this.ġst - you're not understanding the way bench-top power supplies like this work.Ī "lab" power supply will typically have a voltage setting AND a current limit.
#Gecko g540 driver code
One small issue still remains that there is a high pitched noise, so I'm guessing the current given by the supply is now not appropriate, but I'm able to control the stepper motor with my Arduino code and it's working for all purposes I need it for at the moment.
I don't still know how this fixed it, but apparently changing the supply to CC mode, increasing the set current at or greater than the rated current, and then switching back to CV got it working again: It holds at 30V, and shows CV. This kind of points to the driver possibly being dead, so for you it just might be. Some sources on the net indicated that this happens due the the load not being what you expect it to be, leading to drop in potential, so the supply instead adjusts the current it supplies (thus not being at CV). What was happening was that the power supply unit was automatically switching to CC (constant current) instead of staying on CV (constant voltage). Didn't make much sense to me, I'm afraid.Īs for the fix, everyone, sorry to say since I don't know what the problem exactly was, the fix isn't very clear either. Firstly, I checked each of the leads with an oscilloscope and all of them showed pulses (albeit different ones, some were thin, some were wide.). Hi Paul, and others who may be facing a similar problem. From what I can understand, the problem is not the Arduino Due, since just connecting the driver to the supply is resulting in lower voltage. I have read through Robin2’s very helpful post and tried to search the forum, but can’t seem to resolve this. With the supply on, when I change the voltage to 12V, the stepper motor starts vibrating violently. When I use 10V instead of 30V, the supply unit is able to achieve constant voltage and shows CV. The above test code does not make the motor turn.
Stepper bottom(bottomSPR, 8,9) // A axis => Step pin is 8 and Direction Pin is 9 (from G540 manual)īottom.step(-1000) //Turn 1000 steps CCW initialize the stepper library on pins 8 through 11: Int bottomSPR = 200 // Number of steps per revolution This is without even connecting the motor yet. I read up that CC is constant charge, and I would need CV, constant voltage, but it doesn’t seem to be a setting on the power supply unit). The Green LED on the driver lights up, so the wiring seems fine, but the power supply unit indicates that the voltage is about 11 V (with CC being displayed. I connect the power supply terminals to the G540 terminals (as instructed in the manual), insert the E-Jumper and switch on the supply. I just disconnected and reconnected stuff and now it’s not working). I am currently setting the power unit to give 30V (This has worked before, with no issues. The G540 has a limit of 50V, so I definitely won’t exceed that. I can’t find the exact source, but I have read that for NEMA-23 motors, I should give between 24V - 48V.