yo yo
I've set up the circuit (with the two small changes: C2 (5v-->gnd) and pin1,15 connected to ground, each one through a resistor)
and with a resistor instead of the motor (for testing, aka "motor-resistor").
i've programmed the arduino to switch direction every two seconds, so i can measure voltages.
a. when i measure the voltage on the "motor-resistor" or between out1 & out2 (for example) , i get nothing.
b. when i measure the SEN_A or SEN_B - i get nothing.
c. ALL the other measurements look perfect (arduino signals, Vs, etc...), all along the way (on the l298n pins, on the inputs, on the cross-connections (6/11, 5/12, 7/10) and so on..)
d. if i measure between the "motor-resistor" and the gnd, i see the 2 sec switch, but the voltage changes from 0.1v to 0.38v - this gives me some kind of indication the 2 sec. switch "works/exists", although why should i see it between there and the gnd?? and with this strange voltage..
the arduino is programed simply:
int motor1Pin = 11; // H-bridge leg 1
int motor2Pin = 10; // H-bridge leg 2
int speedPin = 8; // H-bridge enable pin
int ledPin = 13; //LED
void setup() {
beginSerial(19200);
// set motor pins
pinMode(motor1Pin, OUTPUT);
pinMode(motor2Pin, OUTPUT);
pinMode(speedPin, OUTPUT);
pinMode(ledPin, OUTPUT);
digitalWrite(speedPin, HIGH); // set the enables to high
blink(ledPin, 5, 100);
}
void loop() {
blink(ledPin, 1, 100);
digitalWrite(motor1Pin, LOW); // set leg 1 of the H-bridge low
digitalWrite(motor2Pin, HIGH); // set leg 2 of the H-bridge high
delay(2000);
blink(ledPin, 2, 100);
digitalWrite(motor1Pin, HIGH); // set leg 1 of the H-bridge high
digitalWrite(motor2Pin, LOW); // set leg 2 of the H-bridge low
delay(2000);
}
while trying to debug the circuit, i removed the protection diodes, and while testing the arduino died... i bring 2 other later today...
- as the speedPin (enable_a/b, 6/11) is high (5v) - i expect to measure 24v / -24v every two seconds between the "motor-resistor" pins, am i right?
- what should i expect to see between the SEN_A/B and gnd? (maybe this will help to solve this..)
Any advice?
Thanks again!!
Oori