I'm making a clock that uses stepper motors and timing belts instead of your typical clock assembly. The housing will have 5 or 6 leds. I've been focusing mostly on code, but ran into an issue I haven't seen before. My setup as of now is an Arduino nano, 1 (for testing) ws2811 led, and 3 28BYJ-48 Steppers driven by ULN2003 boards. روغن ماساژ
Everything except for the led is hooked into a spliced usb cable in a adapter that puts out around 3 amps at 5v. The max draw of all 3 steppers should be around 400ma. I ran a test that moves the motor and changes the led color and when the stepper rotates the led actually gets brighter. My first thought was current drop, but why would it get brighter? I have to get a new fuse for my multimeter, but was able to test voltage and it is dead consistent. I know capacitors are used to smooth voltage is this true for current as well? Any other suggestions?
Post a schematic showing how you have things connected.
post a video with the schematic
And your code.
I know capacitors are used to smooth voltage is this true for current as well?
To some extent, yes. If the power supply briefly drops (possibly from drawing more current), the capacitor supplies voltage and current.
the led actually gets brighter
"Funny things" can happen with inductors (motor coils) but "funny things" can also happen with addressable LEDs so I'd try a regular LED before guessing about a cause.
I think it's a bit earlier to start guessing what the problem is.
That's not how we operate here.
Provide some data and we'll take a look at it and see where it leads us.
Follow the data. No data , nothing to follow.
There's no line of logic that leads from stepper motors to leds.
They're apples and oranges.
Your reluctant to post your code and I haven't seen a schematic, so to be honest we don't know if you have a clue what you are doing. As a technician, I can say that if I had the same problem and posted on the forum, it would have been accompanied by a slew of voltage (and/or current measurements), a schematic, and a video of the symptom. I've built a lot of circuits with leds and stepper motors and never seen that kind of problem so I still don't think they are connected.
I ran a test that moves the motor and changes the led color and when the stepper rotates the led actually gets brighter.
My setup as of now is an Arduino nano, 1 (for testing) ws2811 led, and 3 28BYJ-48 Steppers driven by ULN2003 boards.
Where's the WS2811 code ?
Where's the current measurents ?
Where's the voltage measurements at key points in the circuit ?
Is there some reason you can't make a jumper to insert between the ws2811 and the power pin driving it or on the outputs or both ?
Where's the stepper motor current measurements ?
If you're suggesting the led current is increasing then aren't you also suggesting the stepper motor current is decreasing ?
The ws2811 outputs are PWM , and led intensity is controlled by pulsewidth , so unless you can show
that the current from GND of the chip to GND of the power source is INCREASING, there's no evidence
to support that line of reasoning.
Order some of these and insert them in the current loops for the leds
and the stepper motors and measure the voltage across them using analog inputs.
Subtract the -voltage from the plus voltage to get the voltage drop and then calulate the current as:
I = Vcurrent shunt/Rcurrent shunt
You really haven't provided anything to go on so this post is going nowhere fast...