r/arduino • u/theOGKING1001 • 8d ago
Why is this happening?
When the motor is connected in the driver the LEDs become dims but when I take it off the LEDs are bright red. I don’t know why? Anybody know?
Edit: Ok so it’s on an Elegoo 5V supply module connected to an Arduino uno. I don’t know how much amps it’s outputting
2
u/FlowingLiquidity 8d ago
What is your power source?
1
2
2
u/adderalpowered 8d ago
We need to see a lot more of the wiring. But I agree this definitely looks like not enough current.
2
u/scalyblue 8d ago
Verify that the load isn't pulling down more current than your power solution is able to provide, especially an inductive load like a motor.
1
u/YUMOBUILDS 8d ago
hey . add more pic or video and mention the board type, try to keep all that wiring in one frame, then we might be able to find out. and there is short between 2 pins whats that for? might be for the voltage. what you just said , its sounds like the current it's dropping a lot, remove that pin and give it try to see any different or no.
1
u/EdfromMaine 7d ago
You possibly have a combination of two problems. First, your power supply is on the borderline low side. It is probably sufficient to power the stepper when the stepper is driven correctly, but not enough to energize all the coils at once. The LEDs are a giveaway for the second problem. They should NOT all be on at once, and it means that the motor is being driven incorrectly.
I suggest that you try using the official Arduino Stepper library. Since the board has 4 control leads, you will use the bipolar configuration. Make sure that you have assigned the right functions to the right pins. I also suggest that you run the motor slowly, so that you can see if the LEDs are lighting up individually.
Using the library is the sanity check. If you are certain that you have wired everything correctly and are using the official library and it still doesn't work, the possibility is that the driver board (or motor) is defective or the power supply can't supply sufficient current.
Once you have confirmed that everything works, then try to write your own code.
Personally, I'm lazy. If there's a good library out there, I'm gonna use it. Never reinvent the wheel unless you need to. If it is an exercise in self-education, that's another story...
1
u/Chief_Keefer_420 6d ago
In the most simplest terms is because you’re adding load, and your voltage is dropping you might need to add a capacitor somewhere in your chain
1
1
1
u/jasonwinfieldnz 1d ago
I have had this before, not wanting to send you down a garden path but it worked after I swapped the driver. Maybe just pulling it in and out might work.


13
u/solitude042 8d ago
What's your power source? If it doesn't have sufficient current capacity, the motors are likely causing the voltage to sag. Especially with motors, don't power them off of the arduino itself - the arduino board really doesn't have enough capacity, and the inductive spikes from the motor coils can fry the arduino board in short order.