I think anyone should start with 3,9kHz.
The 328p does not support much frequencies, this two on the known PWM outputs, the other outputs are only with one frequency interesting.
I personally think this is a question of over current protection. As far I have looked at the china bridges and thanos bridge: they do not offer this.
The LM298 do! Ok less power but they have a over current protection. The JRK seems to have one but it does work on temperature as far I *
When I pushed "Clear Output" both dirs and the PWM is on. Of course it can happen due to that I have not attached the pots.
No, cannot happen - I thought this was fixed with the current version? This was the brake option and I changed this to be both ground.
This makes it impossible:
- Code: Select all
//Motor 1
if(motordirection1 != oldmotordirection1)
{
if(motordirection1 != 0)
{
if(motordirection1 == 1)
{
SetMotor1Inp1();
UnsetMotor1Inp2();
}
else
{
UnsetMotor1Inp1();
SetMotor1Inp2();
}
}
else
{
UnsetMotor1Inp1();
UnsetMotor1Inp2();
}
oldmotordirection1=motordirection1;
}
analogWrite(PWMPinM1, 0); should kill the pwm at motor stop. Motor stop is the only situation where both pins and pwm are the same.
The direct port manipulation will switch with four CPU cycles, where the arduino code needs ms.