What just happened? Can my H-bridge not handle the load?
Bipolar Stepper (OSM Technology Co.,Ltd. )
- 1.8° step angle (200 steps/revolution)
- Manufacturer Part Number: 17HS19-2004S1
- Motor Type: Bipolar Stepper
- Holding Torque: 59Ncm(84.1oz.in)
- Rated Current/phase: 2.0A
- Phase Resistance: 1.4ohms
- Recommended Voltage: 12-24V
Dual H-bridge driver
- Chip: L298N
- Logic voltage: 5V TTL
- Logic ViL Max. 1.5, ViH Min. 2.3V
- Logic current 0mA-36mA
- Maximum power: 25W
- Drive voltage: 5V-35V
- Drive current: 2A (For each DC motor)
H-bridge voltage supplied: 24VDC
I used the sketch stepper_oneStepAtATime.ino to test and check if all my wiring is right, and that is when the H-Bridge wend up in smock. Note, I am using pin 7 through 10, not 8 through 11 as suggested in the original sketch; but that should not matter.
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
// >> I am using pin 7 through 10 - not 8 through 11:
Stepper myStepper(stepsPerRevolution, 7, 8, 9, 10);
int stepCount = 0; // number of steps the motor has taken
void setup() {
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one step:
myStepper.step(1);
Serial.print("steps:");
Serial.println(stepCount);
stepCount++;
delay(500);
}

