My stepper motor driver LED won’t turn on when the power is on. Is it meant to?


The power on the battery is on and is connected to a computer and I don’t know why the LED won’t turn on and the code won’t work. Can someone help.

So post your code along with a schematic of your circuit. Your photos are only of interest to carpet fitters

I can't see any code in that picture. What LED should turn on? What, what, what....

Take a deep look into this link: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum

I fixed my initial problem but when I make my motor do more than 200 revolutions it just vibrates and I don’t know why. Here is the code if you want to see it with the 200 stepsPerRevolution

The LEDs only light when getting step pulses from the processor.

Pictures of code are worthless. Please read the forum guidelines to see how to properly post code and some information on making a good post.

Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

I suggest a better power supply for the motor.

PP3 NO2

StepsPerRevolution of that 28BYJ-48 motor is likely ~2048, not 200.
And setSpeed should be less than 10, not 60.

Those motors draw about 300mA max (no stall current),
so you can power one motor directly from the Uno's 5volt pin, assuming USB supply.
Leo..

If a stepping motor just vibrates then you are asking it to go too fast for the current and torque available from the motor.

Steps ( pun intended) that you can take.

  1. Do not try and go full speed from a standing start but accelerate up to that speed.
  2. increase the voltage available to the motor.
  3. Use a proper stepping motor driver.

But most of all post your schematic and the code. Without both of those all we can do is guess. Beginners often haven't got the skill to draw a schematic, this is a clue to you that the project you are trying to do is too advanced for your current knowledge. Please try and do some reading and trying examples. See if you can change these examples and predict what they will do.