Go Down

Topic: BTN7970 Motor Driver (Read 5 times) previous topic - next topic

Drew Davis

Jul 26, 2013, 10:09 pm Last Edit: Aug 07, 2013, 02:36 pm by Drew Davis Reason: 1
Hello,

I would like to build a dual motor driver based off of the BTN7970. I looked at the data sheet, and it gives a schematic on how to make a dual motor driver, however, I hardly understand it. Does anybody know what parts I need (besides 2 BTN7970's) to make an Arduino compatible motor driver? Also, any good books that would teach me how to read a schematic?


Thanks!

http://www.infineon.com/dgdl/BTN7970_DS_11.pdf?folderId=db3a3043156fd5730116144c5d101c30&fileId=db3a304316f66ee80117642373746a89&sId=db3a30443ff79439014017f2d616338c

dc42

In view of your lack of knowledge, and because you have to be careful with layout when building high-current motor drivers, it might be better for you to buy ready-made motor driver boards based on that chip. I found a few on ebay, such as http://www.ebay.co.uk/itm/BTS7970B-BTN7970B-power-motor-driver-Controller-module-70A-A2630-78M05-5V-25V-/300921027008?pt=Intercoms_Access_Controls&hash=item46104a79c0.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Drew Davis

I found some good pre-built ones two. But I figured the best way for me to learn was by experience. To be honest I would rather have to re-buy parts because I failed at a design then to buy a motor driver that is working and gain no experience. Do you know of any resources that show you how to read a schematic? I don't mind buying a few books if you know of any that would help! I really would like to build this project my self so any info would be awesome :)


Thanks!

Drew Davis

I'm muddling my way through the data sheet, and I have a question will one BTN7970 per motor be able to control the direction? Or do I need two for each motor?


Thanks!

dc42

That chip is a half bridge, so you need 2 for each motor.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Drew Davis

I got the parts in I need but the Pin spacing on the chip is much smaller then what would fit into a breadboard… something I did not expect! Does anybody know how to overcome this? I have wanted to make a PCB board through one of those online places for a long time, but for this project it would take to long for me to learn how to make a PCB design on eagle. Do they sell standard breakout boards? Any Ideas would be awesome!



Thanks!

dc42

Well, you did say you wanted to learn! I don't know of any breakout boards for that chip, also good layout and short wiring is important for high-current switching ICs. So you can either download Eagle and design your own pcb, or buy a ready made BTN7970-based module via eBay, Or perhaps both - start with the eBay module, and later on design your own pcb, perhaps with the microcontroller integrated so you don't need an Arduino.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Drew Davis

Well as it appears that their is no easy way I will take your suggestion, and buy one from eBay while working on my own PCB design.

Thanks for the help!

Drew Davis

I started working on the design but I have looked all over and can't find a library that has a  BTN7970 driver in it. I also could not find anything that has the same pinout (TO263). Any ideas?



Thanks!

dc42

It should be straightforward to drive a bridge made from two BTS7970s from an Arduino. Connect the IN pin of each BTS7970 to an Arduino output pin with PWM capability (two separate pins) and a 10K resistor to ground. Connect the two INH pins to Vcc if you want the bridge to be active all the time; alternatively, connect it to a digital output pin (one pin can drive both INH inputs) and a 10K resistor to ground.

To drive the motor in one direction, digitalWrite LOW to the first IN pin, analogWrite to the second IN pin, and set the INH pin high. To brake the motor, digitalWrite LOW to both pins. To run the motor in the other direction, write LOW to the second IN pin and PWM the first. To let the motor coast, write LOW to the INH pins.

Optionally, connect a current sense resistor between each IS pin and ground, and feed it to an Arduino analog input via an R-C filter.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Drew Davis

Thank you for the info, but  I have gotten through the data sheet and I understand how to hook it up. I'm trying to make a PCB on eagle but according to the youtube videos i'm watching I should make the schematic on eagle first. The problem is I can't find anything to represent the BTS7970.  Should I start with the PCB instead?


Thank you so much for helping me! Your info has always been very accurate and I would trust your opinion over the youtube videos…

dc42

OK, I thought you meant an Arduino library, but you meant an Eagle library. If it's the pad outline for the SMD version you want, try searching for "to263-7 eagle library".
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Drew Davis

I have been looking all day but I'm unable to find a library that has the driver or the TO263-7 package . Is there any way to make the schematic/PCB without it?


Thanks!

dc42

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Drew Davis

Thank you so much! I have stared working on my design.

Go Up