Hi!
I want to connect an arduino nano with a ULN2003 (elegoo) controller for a stepper motor.
I made all the connection, but on power on, no one of the led of the shield turn on..
I've connect the shield direct to +5v/grd of arduino (right now the stepper don't need high power), but the controller look like death.. I do the same with another one (new), but same result, so I think that I do something wrong...
I know that this board have a "on off" but it's connected, so i think it's on
Photos of the hardware don't provide clear details of wiring connections. You need to make a simple pencil drawing showing how everything is connected and post a photo of the drawing.
My guess is that the Arduino 5v pin cannot provide enough current for the motor. Motors should never draw power through an Arduino board. Give the motor its own power supply with the GND connected to the Arduino GND,
Thank's all for the answer
I know that it's not a good idea connect directly the 5v of arduino to the motor shield, but it's only for test purpose (the motor can turn free)
But I see a lot of tutorial where people with same hardware can do it, so i think that (only for a test) the 5v output it's enough
This is the schema.. (sorry for my art talent..)
holdingpattern:
Your logic is flawed: it's not working, so you don't know what the problem is. Take away one possible source of the problem, then you have progress.
Right now you're pissing in the dark.
I hope that write on this forum can help me to turn on a little light, or atleast, make my pee bright!
Hi
the problem is on power on, it's not related to the code.
I don't have the code on this pc because it's my workone, but it's nothing particular (I followed a tutorial), define the motor, set the number of step and do some rotation
In the other video, when they put cable on +/- led became red.
Mine are ever off
Are you saying that this motor and driver is known to have run with the code currently in your nano, under some circumstances?
no, I never see the board turn on..
the code it's writed to do the rotation..
By the way, in a couple of hour I can turn on the other pc, and i'll make a try with your code (my code it's really similar to yours, but maybe i wrote something wrong)
holdingpattern:
Presumably that's the 4x leds associated with the 4x phases? Or does your version of the board have a "power on" led? Only leds I have, are for the phases.
I loaded a new that is Bare Minimum sketch, and my 4x leds are off. That makes sense, since none of the Arduino pins is a high output. Soon as I do a pinMode as output for a pin, and write it high, the led comes one. That makes total sense, since it takes a high on the pins in sequence to drag the motor round.
So is it possible that none of your Arduino pins is a high output?
This can be an answer.. I don't understand that the 4 led turn on wen the pin is hight.. so this is a test that I can do quickly (when i can access to the other pc)
Thank's a lot
I still not post the code, because i'm not on that pc.. I made a simply test
i've a couple of output that turn on some led, and i connect directly 1 of the 4 phase of the motor to this output and the led turn on..
so, the problem it's on my code.
when i can check the code, I'll use all your suggest to fix it
Hi
I checked the code, and look really similar to yours (I've some other things, but not related to this pin..).
I put yourcode in a new project and it work fine
So, I'll double check my code again
Hi
thak's again.. yesterday double check the code and all look the same..
the only thing that was different it's the definition of the speed that are before the settings of the baundrate
I exchange this 2 row, and all start work...
I don't know if this can be a problem...
by the way, now i've a problem with the bluetooth, so I'll open another topic (and this time, i'll post all the code )