
mbmaplethorpe

Morning all,
I've a query about the L298 H-bridge that I hope that someone may be able to point me in the right direction with
I've followed the same directions as in the thread here
So in my setup, I've got it wired as follows
H-Bridge:
ENA & ENB - D19 SW1 OFF
IN1 - D15 IN2 - D16 IN3 - D17 IN4 - D18
5V - D19 5V GND - D19 GND VCC - + battery
Omnibot wiring: yellow - out1 orange - out2 brown - out3 red - out4
EZ-B: PWM - D19 LFT TRG A - D15 LFT TRG B - D16 RGHT TRG A - D17 RGHT TRG B - D18
All good apart from the fact that on my keyboard and in ARC, the left and right controls make the Omnibot move forwards and backwards and the up and down make it move left and right.
I can't find a combination of controls or wiring that seems to correct this.
Any pointers as to where I've gone wrong would be gratefully received.
Thanks
Mark
Hi Mark, try swapping D17 and D18 and see if that corrects it.
Hi Jeremie,
Thanks for your help - I'll give that a go this evening and see if that works.
Mark
Have a read of this tutorial. I covered pretty much everything that can be covered with this controller.
So pretty much what Jeremie said
Brilliant - that's the exactly what I was looking for
Thanks for the tips Rich!
Did you get this sorted?
If so don't forget to mark the question as answered and give the relevant person the credit they deserve.
If not I'll gladly help guide you through the process of setting up the triggers to move the robot correctly.
Hi Rich,
Yes pretty much there now thanks - forwards and backwards are reversed now but left and right work correctly. I'll have another tweak later but I reckon I can sort it with your help from the tutorial.
Thanks Rich - all sorted now.