After following the connection tutorial, my Roli was going backwards but turning in the right direction. After some tinkering and using the direction/correction charts in Rich's excellent l298n tutorial I determined that the wiring harness was connected backwards. Reversed the connection on all the wires except the powerband ground. So, to save other owners time figuring it out..... If you connect Roli following the tutorial and he goes bacwards, just flip the 6 pin cable around, hooking up the black wire to d0 and the green to d5 and all the others in order of the cable.
Alan
Asked
— Edited
j
If you connect Roli following the tutorial and he goes bacwards, just flip the 6 pin cable around, hooking up the black wire to d0 and the green to d5 and all the others in order of the cable.
This is normal, so
D0 - Green (Left PWM)
D1 - Blue (Left Trigger A)
D2 - Purple (Left Trigger B)
D3 - Grey (Right Trigger A)
D4 - White (Right Trigger B)
D5 - Black (Right PWM)
Yours would be
D0 - Black
D1 - White
D2 - Grey
D3 - Purple
D4 - Blue
D5 - Green
Correcting the polarity of the motors which are running incorrectly is, in my opinion the best way but this isn't the easiest or quickest way.
It can be corrected in the H-Bridge control panel config, with adjusting the In1 to In4 of the H-Bridge or by changing which ports connect to which In1 to In4 at the EZ-B end.
Config option is going to be quickest but will need adjusting after any Example Project updates by EZ-Robot.
Plenty of options, choose whichever seems easiest for you.
P.S. Glad my tutorial/write up helped
Thanks d.cochran for spelling out exactly what I meant. I was typing from my phone, so tried to make the post as simple as I could but still enough information to help anyone who was stuck.
Alan