Bi-Polar Stepper Motor making sound but not moving

const byte Out_PIN[4] = {8, 9, 10, 11};
const byte PIN_State[4] = {
  B0101,
  B0110,
  B1010,
  B1001
};
byte currentState;

void setup() {
  for (byte i = 0; i < 4; i++)pinMode(Out_PIN[i], OUTPUT);
  Serial.begin(9600);
}

void loop() {
  byte temp = PORTB & B11110000;
  PORTB = temp | PIN_State[currentState];
    ++currentState %= 4;
  delay(3);
}

UNO is not a power source.

You cannot power any motor with an Uno. Power from the Uno comes from one of 2 places. The USB connection which is good for about 500mA snd the on board 5V regulator that gets its power from the power plug or Vin. The current available from that regulator is limited by the voltage supplied to the regulator. The higher the voltage the lower the available current. Trying to power a motor with the Uno can damage the Uno or your PC.

Besides the fact that the A4988 or DRV8825 need 8V minimum.

https://www.mouser.com/datasheet/2/58/BPS-DAT-(BB400)-Datasheet-932623.pdf

Here u have examples, all are rated for 2A (and description doesn't mention in any way that these breakboards are special 'high-current' option). I didn't cherry picked results, it was first three datasheets google suggested that had max current specified.


Why u think breakboards can only support current below 20ma? Where is that specified?

Telling ppl what u think without specifying that it's only your assumption is definietly harmful for members. 20ma is ABSURDLY low value. One wire taken from stranded jump wire can carry more current..

U didn't saw any project where multiple leds were turned on at the same time? Or ESP powered from breakboard? This alone should give u a hint that your belief was wrong. I don't want to attack u, sorry if it seems like this, my english sucks


I wrote about 1A, instead of 2A because this is the most popular answer not without a reason. It's white lie (? simplified version) we use them all the time when we teach ppl. We teach amateurs that electricity flows inside cables or that electricity flows flow + to -, because it gives enough information to do basic work without overwhelming amount of new informations.

Telling amateurs that breakboard can handle 2A could quickly result in bad situation because most ppl will use standard jump wires without power injection or without checking resistance [and they will propobly don't check all variables]. Most jumpwires are made with 28AWG cable that can carry 1,4A (in air, in temp lower then 30C, in chassis wiring). But in most cases there should be safe margin added and in result we end up with a little above 1A.
So that's why short answer is 1A.

Surely there are quality breadboards but note how my cheap Chinese crap boards are used here. The cheapest possible.
milliamps.. say 100 if it makes You happy.

Hi,
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.

Please reverse engineer your project and draw a diagram.

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

"Surely there are quality breadboards but note how my cheap Chinese crap boards are used here. The cheapest possible."

Did u even looked at datasheets I send u? One of them is BB-801, it costs 4,70zł (~1,1$), it's one of the cheapest available

I will not respond anymore, have a nice day.

No. My Polish is too poor.

Have a nice.

XD Oww i need to replay. You asked for datasheets and then after u received them u didn't even looked at them? Gz.

All of them are in English.

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