Not sure if this is the right place to ask this question.
I’m new to the coding world, I am just trying to get a wiper motor to turn ome direction and delay then turn, delay. I have looked at many examples but code ramps speed up and changes direction, I just need some guidence for basic code to get started with.
I have had success with this using other motor drivers but this IBT_2 has me stumped with the extra pins. any help will be appreciated.
This is the wiring…
I have this code from a Library but I can’t get it to
#include <TomIBT2.h>
#define MOTOR_PIN_R_EN 8
#define MOTOR_PIN_L_EN 7
#define MOTOR_PIN_RPWM 5 // PWM 490.20Hz
#define MOTOR_PIN_LPWM 6 // PWM 490.20Hz
TomIBT2 motor(MOTOR_PIN_R_EN, MOTOR_PIN_L_EN, MOTOR_PIN_RPWM, MOTOR_PIN_LPWM);
void setup() {
motor.begin();
}
void loop() {
motor.rotate(120, TomIBT2::CW);
}delay