
Robotz012248
I am back again with the same problem with the motor driver. First, I have been experimenting for the past 3 weeks! without sucess! I have watched the L289N tutorial at least 2 dozen times. With out sucess. I really need some assistance here!!!! I have a lot of time and money invested in my robots. I think it is a reasonable expectation to have them operate correctly!!
I have exactly the same problem with "Gizmo" and "Servo" (Servo is a Radio Shack Robie Sr.)
The robots will move forward and reverse as they should; but left and right are reversed!
I assume that the H-bridge control is read as; top arrow is forward; bottom arrow is reverse; right arrow is right; and left arrow is left. Have I assumed correctly?
The configuration I started out with is as follows: IN1 to D18 IN2 to D17 IN3 to D16 In4 to D15 PWM to D19
Since then I have tried every configuration possible. ie; changing around all of the triggers, one at a time. I've tried reversing the motor output leads from side to side and reversing the motor leads at the screw terminals. Believe me when I say I have tried every configuration!!!!! I find it difficult to believe that I have gotten 3 of the motor drivers that are bad. What are the chances of that??????? Since I have the same problem on both of my bots leads me to believe that I am making the same error on both! So, I"m asking for some help here! I have 2 robots sitting here that I can't proceed with until I get this problem resolved. I would REALLY appreciate any help in resolving the problem. I'd be so very dissappointed if I had to just let my projects sit on a shelf unused. As I always do; I thank anyone in advance for any assistance.
I believe out/up is off. Or you could just remove the whole switch, which will permanently disconnect the onboard regulator. I think I'm gonna do that when I get my RAD tracked telepresence bot back together
The L289N board I have has a red LED which indicates that the +5 volt regulator is on,At least thats my understanding. I will continue to try different configurations. Hopefully with determination on my part and suggestions from other builders here in the community, the problem will be resolved. Unfortunately, even after this problem is resolved, it will be on to the next, which is camera tracking. Again, thank you all.
The LED will light whether it gets power from the onboard regulator or the EZ-B. To really test whether that switch is on or off, you have to disconnect the 5V wire between the EZ-B & L298N (or remove power from the EZ-B, but I wouldn't advise this method as the EZ-B will try to draw it's 5V from the L298N's miniscule regulator & the EZ-B's 3.3V regulator might not be powered at all), while supplying battery power to the L298N's VCC, then observe whether the LED is on or off.
@ Lumpy and nDavid79 and all others Just to help keep mis-communication at a minimun I'll review my trouble shooting from the beginning.
L289N Vcc directly from my main battery ( 7.2 volts, 3800 mAh Ni-MH) L289N ground directly from main battery.
IN 1 to EZ-B D15
IN 2 to " D16 IN 3 to " D17 IN 4 to " D18 PWM to " D19 signal pin +5 volts from Pin D19, +5 v pin
H-Bridge config. Left Trig. A = D15 Left Trig. B = D16 Right Trig.A = D17 Right Trig.B = D18
Result: Clicking top arrow made robot go forward " bottom arrow made robot go in reverse " Right arrow made robot go left " Left arrow made robot go right.
2nd configuration : All setting and connections same as above except H-Bridge config was reversed; as follows: Left Trig A = D18 Left Trig.B = D17 Right Trig.A = D16 Right Trig. B = D15
Result: same as above;
Note: Must come back later and continue this post.
To Continue:
Other H-Bridge configurations I have tried: Left Trigger A = D1 D4 D3 D2 D1 D4 Left Trigger B = D3 D1 D2 D1 D2 D3 Right Trigger A = D4 D2 D4 D3 D3 D2 Right Trigger B = D2 D3 D1 D4 D4 D1 Tried changing the PWM to EZ-B pin D0 signal pin And EZ-B +5v volts on Pin D0 +5 v pin. I have tried running PWM at full speed on all these configurations. There may be other configs. I didn't try, but all of these resulted in basically the same reversed directions. I've tried taking the ground off of the L289N from batt and ran from EZ-B. That did'nt work either. I feel fairly confident that I have tried just about every combination that "should" have worked. If some one sees something I've overlooked, PLEASE feel free to point it out to me! The only thing I havn't tried is changing out the L289N to another one. I do have one in "Gizmo" however, so I'm going to try swaping it into "Servo" and see if it changes anything. I'll post the results of that after I try it. Anyone have any other suggestions???? Thank you. Lloyd
Robotz,
I'll rip apart my Omnibot tonight and confirm wire to wire and post pics.
It's working good left/right/forward/reverse.
@ Lumpy : That would be great! I really appreciate yout time and effort. Lloyd
Robotz,
Here we go.
My Exact wiring. Current setup as per DJ's video. (Currently no GND to Main Source Battery)
EZ-B D15 -> IN1 EZ-B D16 -> IN2 EZ-B D17 -> IN3 EZ-B D18 -> IN4 EZ-B D19 (Signal) -> ENA + ENB
L298N Out1 -> Omnibot Yellow L298N Out2 -> Omnibot Orange L298N Out3 -> Omnibot Red L298N Out4 -> Omnibot Brown L298N White Switch -> UP (Off)* L298N +5 -> EZ-B D19 +5V L298N GND -> EZ-B D19 GND L298N VCC -> +12V (Source Battery)
ARC Settings -> See pic below.
Hope this helps!
Today update on the L289N motor driver problem.
I have 2 EZ-B boards. I had board #0 in "Gizmo", and board#1 in "Servo" Today I swapped them out. Now Board#0 is in "Servo" and Board#1 is out of both.
I checked my laptops device manager. Board#0 is on COM3 & 4, Board#1 is on COM10 & 11. The device manger says both boards are operating correctly.
I have 2, L289N motor driver boards. Both have been tried. Both give the same end result.
I removed everything and started all over today. First I tried lumpy's suggested configuration as above.When the main battery ground is removed from the L289N, it does not work at all! I reconnected. I then tried the configuration. Result: All four(4) directions were reveresed. I then reversed the H-bridge configuration to:
Left Trigger A to D15 Left Trigger B to D16 Right Trigger A to D17 Right Trigger B to D18
Result: Foward/ reverse are correct. Left/Right are reversed. Note: this takes me back to EXACTLY where I was in the very beggining of this mess!!!!
Once again; I understand that clicking on the TOP arrow in the H-bridge Movement Panel is FORWARD? Clicking on the BOTTOM arrow is REVERSE Clicking on the RIGHT arrow is TURN RIGHT Clicking on the LEFT arrow is TURN LEFT. IS THIS CORRECT, can anyone confirm please? I will also mention that the speech commands for movement DO NOT work either, and yes I've tripled checked that the speech recognition commands were worded correctly for code. Speech command for FORWARD will work periodically. All others do not! Would it be a fair asessment to say that I have pretty much tried EVERYTHING as far as troubleshooting? Does ANYONE see anything I may have missed? Does anyone have any other suggestions? @ DJ : At this point I would hope you'd agree that I have been very diligent and through in my efforts to troubleshoot and resolve this issue. I further hope that you might agree it is time for some assistance from you. I honestly don't know what else I can try. Your help would be greatly appreciated.