Hello,
Got weird problem with MC33926. I have soldered it as a shield for Arduino Uno (and double checked the soldering few times). I have a bench power supply (set to 12VDC) connected to motor power (GND & VIN) and a two computer fan motors (2 pin wire) connected to M1 (M1A & M1B).
Here my Arduino program (Pololu example simplified)
#include "DualMC33926MotorShield.h"
DualMC33926MotorShield md;
void setup()
{
Serial.begin(9600);
Serial.println("Dual MC33926 Motor Shield");
md.init();
md.setM1Speed(390);
}
void loop()
{
Serial.print("M1 current: ");
Serial.println(md.getM1CurrentMilliamps());
delay(1000);
}
The motor run nicely with md.setM1Speed(400) but anything below 390 makes motor to stall down. I have tried the fan motors directly from bench power supply and it can run from 3.3 volts all the way to it’s max 12volts.
If I put volt meter to M1 output I can see that the output voltage changes from zero to 12V depending on md.setM1Speed. For example md.setM1Speed (150) gives M1 output 4.5Volts but motor does not rotate. At this setting the bench amp meter shows 0.03A and MC33926 shows 0 Amps.
The Arduino is Genuino and speed controller is brand new. What I am missing here? Seems that voltage is there but current is missing if I lower the speed setting from max.
Must be something trivial that I overlook or faulty MC?
Thank for all help
Tapio