18V Digital I/O Board?

Thread Starter

tecno40

Joined Feb 9, 2013
36
Hi,

I was wondering if anyone could recommend a good development board that could control an 18v motor (reverse and forward motion), and accept input from push buttons via usb. I have experience with programming, and can pick up new languages pretty quick, but I'm new to hardware programming so helping me find the right board would be greatly appreciated.
 

thatoneguy

Joined Feb 19, 2009
6,359
You'll need 2 items: H-Bridge capable of switching enough current to drive the motor, and a USB-> H-Bridge "interface", which can be done with a PIC microcontroller or other uC that has on-board USB client. The PIC will appear as a Serial Port to windows, so serial commands are sent over USB and the motor switches.

A version could be made with an FTDI USB-> TTL Serial IC, then a serial UART controlled H-Bridge, but the price would be higher, though embedded programming would be taken out of the loop, all the "work" would be in the application with with USB host.
 

thatoneguy

Joined Feb 19, 2009
6,359
That is only for On/Off control on the low side (switching the ground on and off on the motor).

If you want a reversible motor, you need an H-Bridge, if you only want to turn the power on/off, a logic level MOSFET like the one in his Sparkfun link would suffice, depending on the current your motor requires (this is a BIG requirement to know so the magic smoke stays inside your components).
 

thatoneguy

Joined Feb 19, 2009
6,359
The circuit above is all NPN, so they are only in parallel switching the motor on and off with a higher current ability.

Here is a solution Though not cheap.

I'm not sure if you could parallel two Of these or not, essentially treat the board as one H-Bridge.

Realize that you are talking about switching and reversing nearly 600 Watts of power. That is a lot of current and requires special connectors and heavy gauge wire.

If the voltage was lower, there would be more options, but 18V@30A won't be "cheap". The best solution wouldn't be a single IC, but an H-Bridge MOSFET Driver controller running 4 MOSFETS (2 N-Channel for low side, 2-Pchannel for high side - which is why the driver is required) with rather large heat sinks on the MOSFETs.
 

thatoneguy

Joined Feb 19, 2009
6,359
Where is the 30A coming from?

Draw each state as a separate schematic. You are either putting 18V on your uC, which will kill it, or wanting your uC to somehow produce a 20V signal at 3 Amps to turn on an NPN transistor on the high side, as well as source another 3Amps on the low side, either of which will also kill the uC.

Is 30A the running current or peak/stall current of the motor?
 

Thread Starter

tecno40

Joined Feb 9, 2013
36
30A is the black line and running current.

I will be using a smaller current to turn the switch so of the two options it would be the two 3A currents.

How do you calculate the current needed to flip a MOSFET, and where do you find the max amps of the board? I looked at http://arduino.cc/en/Main/arduinoBoardUno, and it said the I/O pins use a 40mA current, so does that mean a single 3A current would kill it?

EDIT: This is what I'm using for each MOSFET http://bildr.org/blog/wp-content/uploads/2012/03/rfp30n06le-arduino-solenoid.png
 

thatoneguy

Joined Feb 19, 2009
6,359
Power Mosfets with low RDSON need a driver circuit. Search this forum for H-Bridge to see how bootstrap drivers have been used in the past.

Logic Level MOSFETs (Identified by "Logic Level" in name, or in datasheet, RDSON is @5V) Though most low RDSon LL MOSFETS are all surface mount and lower voltage.

Your earlier diagram was showing bipolar transistors, specifically NPN of unknown type, which are held on with a base current of 1/10th collector current, or 3A. This is fine if you have a driver, BJTs switch faster than MOSFETs, but also have power dissipation issues. 30A is where the line is blurry on choice (or Bi-FET, which is a bit more complex).

In short, if you want to control forward and reverse by microcontroller, you'll need to spend money. It may not be a ton, but it will be more than just 4 transistors @ 1.60 ea from DigiKey (SparkFun charges about $6 for same item, more if on a PCB). You'll need wire capable of carrying 30A, which means 8 Gauge, which is not cheap. If the connections aren't soldered, you'll need 50A Rated connectors.

You may want to either start with smaller motors (1-2A @6-12V) or learn a bit of electronic theory (e-book across top of screen is an EXCELLENT source). If not spending money and wanting to use parts you already have are limitations, the system you are looking at cannot be done.
 

Thread Starter

tecno40

Joined Feb 9, 2013
36
After reading some more about MOSFETs my understanding is that they quickly draw or release a strong current when they turn on/off, then draw virtually no current while they're in an on/off state. After reading some more on drivers, it seems most people are saying they're just capacitors to hold the energy for when the mosfet needs to quickly draw the current. Also someone told me the amperage to turn the MOSFET on doesn't really matter (only the volts matter), is that true?

Based on this information I made a new MOSFET diagram that would only turn the motor on/off http://switchit001.com/motor2.png. Is this correct, or am I still missing something? I will move onto forward/reverse after I get the MOSFETs down, but I've realized that there is no chance of understanding H-Bridges if I can't understand MOSFETs.

As for the wiring, I'm using 16 Gauge, so the wire should be able to hold the current.
 

thatoneguy

Joined Feb 19, 2009
6,359
Your diagram is confusing. Now you have a 60V supply instead of an 18V supply.

The transistor drawn is a P-Channel JFET, which is Much different than a MOSFET (For switching ground off/on, an N-Channel MOSFET is used).

It is correct that MOSFETS only draw current while switching, this isn't much if used for a switch, but when switched tens of thousands of times per second, the current does add up a bit (PWM Speed Control), but most microcontrollers can source enough to switch one MOSFET.

The MOSFET Driver I was referring to is actually a way to overcome the internal capacitance of the gate, usually a small BJT Transistor which switches a higher voltage, which is then fed to the gate.

Does this make sense?
 

Thread Starter

tecno40

Joined Feb 9, 2013
36
I'm using 60V instead of 18V as an example since the MOSFET stat sheet I was reading was for 60V (I will adjust it for 18V when I create the correct concept). As for the MOSFET I used the wrong symbol :/, but that is fixed now.

As for the driver is it just a series of BJT transistors used to step the voltage up to the amount required by the MOSFET?
 

thatoneguy

Joined Feb 19, 2009
6,359
The 60V is the maximum voltage the MOSFET can switch. You can use 18V through it without a problem.

Important ratings:
Part Number:
Current capability:
RDSon@5V:
Gate Charge:

I'd suggest downloading LTSpice IV (free) so you can test the circuit in simulation. There are a decent number of getting started tutorials for LTSpice, and a lot of component libraries. It will save you a lot of headaches/money trying to make something work.
 

thatoneguy

Joined Feb 19, 2009
6,359
You have an 18V Voltage source in parallel with a 30 Amp Controlled Current Sink.

There isn't a motor, just two "virtuals". A motor can be modeled by a small inductor of about 1mH in series with a small resistor, such as 0.6Ω

There are actual motor models available.

Here is one I just threw together so you can mess with it.

One is a .png image of simulation, you can see the gate charge effects, and the inductive spike from the motor at the top of the green wave (motor voltage @ MOSFET), blue line is uC-input, Here just a random PWM. You'll want to change the MOSFET to a model that you are using, the gate charge can have a large effect on turn on time.

The 100k resistor is to ensure the MOSFET switches OFF when the Gate Voltage goes away (tie-down resistor). If it is left out, the MOSFET will stay on after the first pulse, try it in simulation. It's about the capacitance again.
 

Attachments

Thread Starter

tecno40

Joined Feb 9, 2013
36
Ok, so I got the motor working in LTSpice, and found a good tutorial on how to make an H-Bridge (http://www.pyroelectro.com/tutorials/h_bridge_4_transistor/index.html). The only problem is the tutorial is rated for a lower amperage (10 A). To get the tutorial/schematic(http://www.pyroelectro.com/tutorials/h_bridge_4_transistor/img/schematic.png) to work at the amperage I need, do I just need to replace the MOSFETS and BJTs with something similar to the ones I have listed below?

P & N MOSFETS
Pass through current: 55V 80A
Gate Charge: 20V

Transistor
Collector Emitter Voltage: 30V
Base Emitter Voltage: 5V
 

thatoneguy

Joined Feb 19, 2009
6,359
Please take some time and Please Read This completely. If you don't understand a section, just ask. That paper covers nearly every aspect you'll need to take into consideration.

BJTs are not used for high power H-Bridges due to the large amount of current drive needed to switch them on to saturation, and the VCE drop of a BJT generates a lot of heat when dealing with the currents you are looking at.

An H-Bridge with MOSFET Drivers, or sometimes parallel MOSFETs are common solutions.

Be sure to look at the datasheet of the components before buying. Never use the "MAX" for average current. If 30A is average, 60A could be the stall current!
 
Top