Page 1 of 1

Help with H-bridge!

Posted: Nov 26th, 2013, 2:42 pm
by jpWA
Image
I've been trying to control a 12v bilge blower with an arduino, via this H-bridge motor driver. The pins are labeled:
VCC, R_IS, R_EN, RPWM
GND, L_IS, L_EN, LPWM
I know RPWM and LPWM are inputs for either direction of the motor, and VCC and GND are power and ground. One person selling these on ebay said that these four are all you need for it to work, but it doesn't do anything with standard arduino analog inputs, and I don't know what the abbreviations of the others mean

Re: Help with H-bridge!

Posted: Nov 26th, 2013, 10:59 pm
by FJM
If you go to the arduino forums (forum.arduino.cc) and search for IBT-2, one of the threads is marked [Solved] and may help you. However, I looked at the code and it doesn't seem correct. The poster says it works but I don't understand the logic.

A PWM normally should be an analog value, not a LOW. The code may work by fluke and the user may not understand how the pins should really be used. I suspect you should analogWrite(0) to one pin and a AnalogWrite a value to the other (for the speed). To reverse the direction, you reverse the values written. Higher values would give higher voltage and thus higher speeds. Just a (somewhat educated) guess...

Not sure why there are two enable lines.

The IS lines may be current (I) sense lines to measure the current draw. Test with a multimeter before connecting to an analog input pin. Hopefully they are logic level voltages.

BTW, I can't see your test setup image.

Fred

Re: Help with H-bridge!

Posted: Nov 27th, 2013, 11:26 am
by jpWA
Thanks! that person on the forum had exactly the same problem
Enable, that could be useful :D

Re: Help with H-bridge!

Posted: Dec 15th, 2013, 9:20 am
by Sunktwice
At 2A (Cont) Rating on std h-bridge units on ebay though - i'd assume you'll be using a set of x-over relays to take the load for your motors ?

Re: Help with H-bridge!

Posted: Feb 7th, 2014, 1:14 pm
by jpWA
I'm pretty sure that that contact rating is for the input pins, not the motor/battery connections

Re: Help with H-bridge!

Posted: Feb 19th, 2014, 3:05 pm
by Colmomalley811
Hey you may want to look here
http://forum.arduino.cc/index.php?topic=148482.0
they have it set up and running
have the same myself still trying to get my heads around it

Re: Help with H-bridge!

Posted: Feb 21st, 2014, 9:17 am
by Colmomalley811
Actually this link provides better information for anyone playing with these drivers
http://www.hessmer.org/blog/2013/12/28/ ... h-arduino/

Re: Help with H-bridge!

Posted: Feb 24th, 2014, 12:43 pm
by a_shorething
Colmomalley811 wrote:Actually this link provides better information for anyone playing with these drivers
http://www.hessmer.org/blog/2013/12/28/ ... h-arduino/
Great link Colm, thanks.

Did you have any joy with that code I sent?