I’m using the MC33926 board to link up and drive a 12V DC linear actuator. Because the actuator itself is very expensive, we have decided to hook the OUT1 and OUT2 to an oscilloscope to confirm the output first before final attachment
for the oddest reasons, the board destroyed both my arduinos’ serial communication link the moment i fired it up, meaning that it now can no longer talk to my computer because the serial to usb portion is damaged.
i’m currently reverting back to ol’ school MOSFETs and BJTs but any help to troubleshoot this is appreciated
attached is the pdf file showing the simplified circuit layout, code is as follows:
[code]#define INA 10
#define INB 9
#define PWMA 3
#define UP 1
#define DOWN 0
#define SWITCH_A 11
#define SWITCH_B 12
#define TRUE 1
#define FALSE 0
int pwm_val = 127; //25% = 64, 50% = 127, 75% = 191, 100% = 255
int switchA;
int switchB;
int Flap_Status = 0;
void setup(void)
{
Serial.begin(9600);
pinMode(INA, OUTPUT);
digitalWrite(INA, LOW);
pinMode(INB, OUTPUT);
digitalWrite(INB, LOW);
pinMode(PWMA, OUTPUT);
pinMode(SWITCH_A, INPUT);
pinMode(SWITCH_B, INPUT);
}
void loop(void)
{
switchA = digitalRead(SWITCH_A);
switchB = digitalRead(SWITCH_B);
if(switchA = TRUE && Flap_Status = FALSE)
{
digitalWrite(10,LOW);
digitalWrite(9,HIGH);
analogWrite(3, pwm_val);
Serial.println(“Moving Up.”);
delay(3000);
Flap_Status = TRUE;
}
else if(switchB = TRUE && Flap_Status = TRUE)
{
digitalWrite(10,HIGH);
digitalWrite(9,LOW);
analogWrite(3, pwm_val);
Serial.println(“Moving Down.”);
delay(3000);
Flap_Status = FALSE;
}
else
Serial.println(“Both switches are off.”);
delay(500);
}[/code]
Simplified Circuit.pdf (20.4 KB)