Hi Everyone,
This is my very first electronics project and so please bare with me for this naïve question.
I have attached an arduino to a H-Bridge using the Bipolar Stepper Motor circuit configuration (Data sheet: (http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=NJM2670D2-ND). I tested the circuit by attaching LEDs to the output pins using the following arduino program:
void loop() {
digitalWrite(enablePin, HIGH); // sets the Enable ON
digitalWrite(intA1B1Pin, HIGH); // Send HIGH to A1 & B1 pins
digitalWrite(intA2B2Pin, LOW); // Send LOW to A2 & B2 pins
delay(2000);
digitalWrite(enablePin, HIGH);
digitalWrite(intA1B1Pin, LOW);
digitalWrite(intA2B2Pin, LOW);
delay(2000); // waits for a two seconds
}
The LEDs connected to OUTA1 & OUTB1 glow once every two seconds. As far as I understand my circuit matches the data sheet and behaves exactly as it is supposed to.
Now, I connect the KL23H251-24-8B stepper motor to the output pins.
Series connection:
Green goes to OUTA1
Yellow/Red are tied together
Blue goes to OUTA2
White goes to OUTB1
Orange/Black are tied together
Brown goes to OUTB2
I am using an external DC power supply (HY3005) that provides an adjustable voltage (set to 9V initially).
I then change my arduino program to the following and start the execution:
void loop() {
digitalWrite(enablePin, HIGH); // sets the Enable ON
digitalWrite(intA1B1Pin, HIGH); // Send HIGH to A1 & B1 pins
digitalWrite(intA2B2Pin, LOW); // Send LOW to A2 & B2 pins
delay(10);
digitalWrite(enablePin, HIGH);
digitalWrite(intA1B1Pin, LOW);
digitalWrite(intA2B2Pin, LOW);
delay(2000); // waits for a two seconds
}
I hear a faint buzz inside the motor. The motor won't start. I tried with different connections and voltages. I noticed that the motor buzzes loudly for different settings. The H-Bridge is getting heated up if I increase the delay when the intA1B1is HIGH.
I checked all the voltages across the Vcc & ground and looks like everything is just fine... Its just that the motor doesn't work...??? It a brand new one....
Whats wrong with my setup Any suggestions?? Thanks.