I've been out of the ez-community for quite a while but I finally ordered and just received my long awaited h-bridge(s). Unfortunately mine seems to be quite different. Instead of VCC, mine says 12v. Before I blow up my EZ-B, can I assume these are the same connections?
Also, as you see in the attached photos, my pins are located differently from the others I've seen in my search results on the forum. Which enA and enB pins do I use? Front or back? Or just trial and error?
Upgrade to ARC Pro
ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!
Ena and Enb use the front pins if you remove the jumpers, or leave the jumpers on if you don't need PWM control.
Follow the traces on the board. Look on the L298 datasheet (it's on my google drive datasheet repository) and see what the pin is. Pin 4 is supply voltage (50v max), 9 is logic supply voltage (7v max). Pins 6 & 11 are ena and enb.
Also, I really like your idea of the y-cable for the enA and enB. ON this board it's mush easier than soldering the 2 together.
However I'm a bit confused. If I solder the enA and enB together will I still get PWM? or does each require a signal cable to supply independent PWM control?
Reason being, I don't know if each DC motor runs the same speed and since my robot uses tracks, I need to be sure one track doesn't spin faster than the other. Sorry if this is obvious on your tutorial. I think it's just a bit over my head lol
If you made a Y cable for the PWM and connected it to the ena and enb then you would have PWM control over the speed but one control for both motors - i.e. both would run at the same speed percentage. If one motor is slightly faster than the other then this wouldn't help, changing the PWM would make both motors spin slower but the one would still be slightly faster than the other.
If you connect each ena and enb by theirselves, so taking up 2 digital ports (i.e. D18 to ena and D19 to enb) you can change each motors speed independently, you could for instance have motor 1 spinning at 25% speed and motor 2 spinning at 75% speed.
Personally I prefer to use 2 separate PWMs for the motors, one each, giving that independent control.
Hopefully that made sense.
Thanks yet again!