
Robotz012248
USA
Asked
— Edited
I ordered this before my stroke and now I can't remember how to wire it up? I attac hed pics and diagram. Any help would be greetly appreciated.
Lloyd
Good to see you remembered how to upload photos!
I drew a diagram for you. And in summary, this is how it works...
1) Connect L298 VCC to your battery supply positive
2) Connect L298 GND to your battery supply negative
3) Connect L298 +5 to a +5 pin on the EZ-B (in the diagram I used +5 from Pin D0)
4) Connect L298 IN1 to EZ-B Pin D1
5) Connect L298 IN2 to EZ-B Pin D2
6) Connect L298 IN3 to EZ-B Pin D3
7) Connect L298 IN4 to EZ-B Pin D4
8) Connect L298 OUT1 to Motor 1
9) Connect L298 OUT2 to Motor 2
In ARC, use the HBridge Motor Control. Press the Config button and select the pins that you connected the L298's INPUT Pins too (example D1, D2, D3, D4).
If the directions are reversed, simply go back into the CONFIG menu of the HBridge Control and change the configuration around to D4, D3, D2, D1. You may need to try a few combinations to get it right. Sometimes it confuses me too!
PS, the only reason i didn't begin the connections of the L298 INPUTS to the EZ-B at port D0 in the diagram was because there wasn't much room when drawing it
I have a friend that has offered to give some of his time to hep me with my robot progects. Thanks again for answerrig my call for help.
Lloyd
If I find I have difficulty doing something, I just find a new or different way to do it! If that meens I have to build a device to enable me then thats what I attempt to do. Enough of that for now. I have another questiion about the L298N driver. The driver still doesnt allow for controlling motor speed. Could I put linear taper pots in between the motor outputs and the motor itslef? Motor power will be from 12 volt, 9 aMh battery. What value would I use for this? 5K, 10K, or what? Would this work at all?
Thanks again,
Connect the one pin from the PWM of the EZ-B to the ENABLE pins of the HBridge. To figure out what pins to connect on the HBridge, first pull the jumpers off. Then probe with a volt meter to see what pin does NOT have voltage. Do not connect the EZ-B to the pins with +5. Instead, connect the EZ-B PWM to the two pins that do not have +5.
The one PWM will control both enable pins of the HBridge
@ bret.tallent: This is not the motor controller that DJ is selling, that only takes one connection to the EZ B.
"PWM of the EZ-B" is it simply any digital port???
I would never speak for DJ..but I am very sure the answer is....'YES'. All the digital port signal pins can provide PWM.
Question I have is how you control PWM control in an EZ script...do I use servo(DX,XX)?
Also, will VB script work in next ARC version?
v/r
Kevin
I'm thinking these are the "ENABLE PINS" Does that sound right? So the PWM would be connected to the enable pins????????
The other question. It looks like you attached only the (red) 5 volt pin on the three terminal screws that are motor voltage ( ie. VCC - Gnd - 5v ) Wouldn't the battery power leads (12 volts in my case) got to VCC, which would be positive, and battery ground to the GND terminal?
So that single red wire from the EZ-B powers the circuitry in the board, and thr connections from the battery power the motors. This is a pretty good set up but it takes 5 ports to run your motors. Not bad if you don't have too much other stuff, or are using more than one EZ-B.
When setting up the controller I had to configure the ports so that it would turn in the correct directions. Before I had configured the ports to turn the correct direction, the robot was able to move in all 4 directions. but the directions were incorrect. ie left was forward, forward was turning right, backwards was right, and right was backwards. I wouldn't have a problem with it but it effects the radar control while the robot is moving.
I can also configure the ports so the the robot will go forwards and backwards correctly but not be able to turn.
I have double checked all my connections and am not seeing any loose wires, or wires plugged into an incorrect port on the board.
thank you for the help!
Aaron
Thank you so much