MEGA 2560 - LCD 4 bit 1602 - 50A H bridge motor driver - HELP?

So I am new to Arduino.

I’ve play around with a few libraries and more recently the LCD keypad shield. Found here http://www.robotshop.com/dfrobot-lcd-keypad-shield-arduino.html.

I’ve recently ordered from eBay a 50A H bridge single motor driver designed for the Arduino Intelligent Car. I bought it to drive a motor…

After buying it I was refer to http://item.taobao.com/item.htm?id=4057972881 for more information…

My problem is, finding some code to interface with this board. Not too sure where to start.

Hi, If you view Taobao in Chrome and translate the Chinese you will see some info, but not much...

Thanks for the reply, I will see what I can find using Chrome.

I will keep posted on what I find out.

This one gave more info: http://www.ebay.com/itm/New-50A-Single-H-bridge-motor-driver-module-PID-Arduino-intelligent-car-/300722330780

New 50A Single H bridge motor driver module PID for Arduino intelligent car

Descriptions:

  1. Designed for Arduino intelligent car, the whole bridge DC brush motor drive, for hollow cup motor is very good,PID program source send by email.
  2. This drive brake quickly, and easy to operation. The customers evaluation that its better than the MC33886 etc.
  3. The driver use the whole bridge drive chip + extremely low impedance MOSFET. make the MOSFET switching losses to lowest. Improve power utilization rate. MOSFET drive chip with hardware brake function and power feedback function.
  4. The current shock resistance MOSFET type, resistance is 0.005 ohm, can quickly make MOSFET open channel, improve the speed of the motor curvature, also can rapid in electrical braking. This can make of car can quickly start also can quickly kill car.
  5. Drive can work at 0%-98% of the PWM duty cycle, because the drive is NMOS circuit, NMOS circuit features is not to 100% PWM, when PWM 100% of control circuit, long time carries out the operation can lead to drive damage

Performance parameters:

Rated voltage: 3 V-15 V R1 short circuit, VCC and B + short circuit. VCC output voltage and drive the input voltage. R1 open circuit, VCC and B + disconnect. VCC input voltage 3-12 V. Rated current: 50 A (or 30A) Current peak: 110 A (or 70A) Switching frequency: 1 K to 200 kHz Dimensions: 5.0 cm (long) * 5.0 cm (wide) * 3.1 cm (high)

V + Power Input + GND Power Input - EN Driver Enable, high enable, low off RPWM Forward PWM input, high active LPWM Reverse PWM input, active high CT Current signal output,analog signal VT Voltage signal output, analog signal

But I can't find any Arduino sketch for this driver.

I looks the same as the dual channel version : http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=100_146&products_id=667 At least that page explains the use of the RPWM and LPWM signals:

Rotate forward: EN = 1, RPWM = PWM, LPWM = 1 Rotate reverse: EN = 1, RPWM = 1, LPWM = PWM Parking and brake: EN = 1, RPWM = 1, LPWM = 1 Parking but not brake: EN = 0, RPWM = 1, LPWM = 1

that should help, now to find the signal output of the CT and VT.

My Chinese partner is trying to track down the designer / factory. It's difficult because the sellers protect their factory connection and know I want it :P

How much interest is there in these higher-power driver boards and larger stepper motors?

DISCLAIMER: Mentioned stuff that I might someday hopefully maybe have in my own shop...

Interesting affordable h-bridges, but they seem to recomend using a fairly high pwm rate. I'd be interested in seeing if the internals of a cheap $2 servo could drive these bridges for making monster servos.

zoomkat: ...I'd be interested in seeing if the internals of a cheap $2 servo could drive these bridges for making monster servos.

I think they can. But you need the schematic to be sure, and so far, no one has been able to retrieve the schematic.

Krodal:

zoomkat: ...I'd be interested in seeing if the internals of a cheap $2 servo could drive these bridges for making monster servos.

I think they can. But you need the schematic to be sure, and so far, no one has been able to retrieve the schematic.

The below might be a little dated, but I think it shows a typical standard analog servo schematic.

zoomkat, it's nice to see what the inner of my S3003 is, but I ment the schematic of the wingxine NISI IMS-1 "Arduino50A" alfs-tech.taobao.com 50A single H-bridge.

I'm still working on this I got a PID.rar file from the company I bought it from but wont have a chance to look at it right away. I will see if I can attach it later tonight so you guys can have a look at it. It's suppose to have some code written in c.

So here is the file I received.

PID.rar (26.9 KB)

It's not Arduino code. It looks just like a standard PID. So you can use any PID for Arduino instead of that.

Is there supposed to be some code for your driver in there ?

Ya, this is what the company sent to me for this driver.

I still haven't had a chance to look at any of the files, I might do so this weekend and see if there is anything useful.

Hi

I purchased one of these controllers on ebay. I found a similar product that had some arduino code that allowed me to get motors running.

http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=100_146&products_id=2179

Here is a copy of the code.

Cheers
Bruce

/**
@file MotorDemo
@author ELECHOUSE
@version V0.1
@date 2012-6-22
@brief 50A-DualChannelMotorDriverBoard demo code.
*/

/** import motor library */
#include <MOTOR.h>

void setup(void)
{
/** motor driver initialize /
motor.begin();
/
*
NOTE:
motor.begin() will change the prescaller of the timer0,
so the arduino function delay() millis() and micros() are
8 times slow than it should be.
Please use motor_delay(), motor_millis(), motor_micros() instead them.
*/

/** set led pin output */
pinMode(13, OUTPUT);
}

void loop(void)
{
digitalWrite(13, HIGH); // set the LED on

motor.set(B, 127, REVERSE); // channel B REVERSE rotation
motor.set(A, 127, REVERSE); // channel A FORWARD rotation
motor_delay(3000); // wait for 3 seconds

digitalWrite(13, LOW); // set the LED off

motor.set(B, 127, FORWARD); // channel B FORWARD rotation
motor.set(A, 127, FORWARD); // channel A FORWARD rotation
motor_delay(3000); // wait for 3 seconds

digitalWrite(13, HIGH); // set the LED on

motor.set(B, 240, REVERSE); // channel B REVERSE rotation
motor.set(A, 240, REVERSE); // channel A REVERSE rotation
motor_delay(3000); // wait for 3 seconds

digitalWrite(13, LOW); // set the LED off

motor.set(B, 240, FORWARD); // channel B FORWARD rotation
motor.set(A, 240, FORWARD); // channel A FORWARD rotation
motor_delay(3000); // wait for 3 seconds

motor.close(A); // close motor channel A
motor.close(B); // close motor channel B
motor_delay(500); // wait for 500 milli second
}

Nice to have the designer of this board on here. Note that these are 45 volt devices: BTS7960B, with data freely available via DigiKey, etc. Not sure why they put a 25 volt cap on the board. I'm going to change that. I need to look into the driver circuit to make sure that it will do the level shifting to Arduino before I fire it up. Have fun.

Did anyone source the correct code for the single channel board? I'm just getting into arduino and want to use this board to control motor torque using the current output signal "CT" from this board. Any help will be appreciated. Bill :roll_eyes:

I have found myself in this quandary as well and yesterday started a series on my blog http://michaelwittmer.com/ on the topic. I've basically taken the board out of the package and read the details on taobao at this point. However, I have electronics experience and a pretty strong need to figure this out. So, I will be focusing on it until I have a solution. I'll post back here with some code samples when ready. Looks like the code posted earlier in the thread may be helpful. I'll start tinkering with that to start. Thanks guys for this thread. My hope is it bears some fruit. I'll be back.

As promised, I'm following up on this item. I have started working through this issue and have posted another video here. http://www.michaelwittmer.com/2013/12/13/ep-77-electronics-h-bridge-testing-and-progress-update/

I'm still working through the configuration and coding but will post source code when complete.

Just keeping you folks updated: I built a test apparatus for the IMS-1 today. See posts at http://michaelwittmer.com. Now that I have this set up, my next video(s) will cover wiring and coding the arduino to control the IMS-1.