This could work.
Essentially, external TTL glue between controller and L298n:
In1 = PWM1 * DIR1
In2 = PWM1 * /DIR1
In3 = PWM2 * DIR2
In4 = PWM2 * /DIR2
but can be improved for braking between DIRx changes.
Unknown if tested.
This could work.
Essentially, external TTL glue between controller and L298n:
In1 = PWM1 * DIR1
In2 = PWM1 * /DIR1
In3 = PWM2 * DIR2
In4 = PWM2 * /DIR2
but can be improved for braking between DIRx changes.
Unknown if tested.