Need help on using blynk (Arduino) to drive a DC motor controller (roboteq ax3500) but it’s not sending (joystick) the signal properly and i’ve read from another arduino forums that the PWM signal needs to be inverted.
how do i implement the pwm signal inversion using blynk.
void invertAnalogWrite(int pin, int value)
{
analogWrite(pin, value);
TCCR1A = TCCR1A & ~B00110000; //switch off output B
TCCR1A |= B00110000; //switch on the B output with inverted output
}
You gonna need a motor driver because a DC motor will take way too much current for your Arduino, it’l be blown to bits. I personally use these:
They suit me very well and can handle high loads. I use them in combination with a stepper motor from a printer (for my vinyl record cleaner, don’t ask … ) but you can use them also for independently controlling up to two DC motors.