My 28byj-48 only vibrates

My stepper motor only vibrate, but doesn't turn. When I oppend it up I noticed that the inner magnetic moter doesn't turn, but just vibrates. I dont know what the issue could be since, it ran on my setup before, but today it started bugging.
thanks in advance.

Incorrect wiring, inadequate motor power supply or incorrect code are the most likely suspects.

This says, at one time you did have the wires correctly connected.

  • Make sure the power supply doesn’t sag.

  • Do you have a spare motor to try ?

  • You may have a damaged driver.

Hi, @prathik_06
Welcome to the forum.

Can you please post your code, the above instructions will show you how.

Can you please post a copy of your circuit a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

What are you using for a power supply.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

I often see that people try to run these motors at a higher speed than they can.
About 10 to 12 RPM is what these motors can do. Up to 15 RPM if you're lucky.
Leo..

#include <Stepper.h>

// Define the number of steps per revolution for your stepper motor
const int stepsPerRevolution = 2048;
const int rolePerMinute = 15;

// Create a stepper motor object
Stepper myStepper(stepsPerRevolution, 8, 10, 9, 11); // Change the pin numbers as per your wiring

void setup() {
  myStepper.setSpeed(rolePerMinute);
  // Set the speed (RPM) of the stepper motor
  Serial.begin(9600); // Adjust this value to set the desired speed in RPM
}

void loop() {
  // Rotate the stepper motor one revolution in one direction
  myStepper.step(stepsPerRevolution);

  // Wait for a short delay
  delay(500); // Adjust this value to set the delay between movements

  // Rotate the stepper motor one revolution in the opposite direction
  myStepper.step(-stepsPerRevolution);

  // Wait for a short delay
  delay(500); // Adjust this value to set the delay between movements
}

this is the code, and I am using a power supply module connected to a 9v battery.

A 9V battery composed of 6 AA cells, I hope.

yes it is

Please post a clear, focused, close up picture of your setup, showing all the parts and wiring.


This smoke alarm battery is the problem.

Capture

6xAA 9V battery holder:
Capture

2 Likes

So, a battery comprised of 6 AAAA cells, not 6 AA cells.

I see, though I am confuesed as I was able to make it run of the smoke detector battery once already, is there a reason for it not working anymore.

You drained the battery

As you have now learned, smoke detector batteries can't be used to power motors.

Four AA batteries (6volt) with a direct connection to the motor would be better.
No point wasting the power of two batteries on heating up that breadboard supply.

const int rolePerMinute = 15;
As said, wishful thinking.
Try lowering it to 10, and if it works try 12.
Leo..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.