# Control a Powerful DC Motor With LabVIEW

26,802

37

7

This article will show you how to control a DC motor power, using an H-bridge made with complementary MOSFET. Avatanjele to the use of bipolar transistors MOSFET is that they have lower conduction losses than bipolar. Orders are given by an ATMEGA328 microcontroller which receives serial data via bluetooth from an application built in LabVIEW by me. This application can be used where we need a complex control engine: electric cars, fans etc..

This article shows just how to control the motor on the direction of rotation and speed of rotation.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Let's Talk About H Bridge

My concept is a montage H bridge using only low side mosfet to control engine speed, and high side mosfet is used only to open and close the circuit. For low side mosfet i use IRF3205 that have very low RDS on and low gate charge. For hig side the use IRF5305, which also rds-on small and low gate charge. To switch low side MOSFET I used driver current 2A, MAX627.

According to the diagram, to rotate the electric motor in a sense we need to apply the command on to the point A (5V from ATMEGA328) and low side MOSFET diagonally ordering the PWM duty cycle between 0 and 100% . Variation of duty cycle will vary the speed of rotation. Meanwhile other MOSFET will be placed in logical 0 by the controller.

To avoid skin effect due to motor windings maximum PWM frequency is 10KHz.

This assembly was tested with an engine that had a rated current of 4A and transistors temperature no more than 30 degrees. Additionally you can put the radiator, but the current does not exceed 5A do not think is appropriate.

## Step 2: Programing the H Bridge

H bridge is controlled by an Arduino module designed by me with a ATMEGA328 smd.

I have upload this code to this step.

## Step 3: LabVIEW VI

This is my VI for this project, I upload it to this step. I created in LabVIEW 2013.

Video I hope you understand something. If you have question i will anwser. Regards!

## Recommendations

• ### Internet of Things Class

21,543 Enrolled

## 7 Discussions

I couldn't download the pdf file of the project titled 'Control a powerful DC motor with LabVIEW' Pl help.

hello, i am dede, i can't open the .ino file, would you like to repost ? thank u so much

Dear friend,

Would you please provide me with the .vi file but with 2010 version?

3 replies

Hi, I've recompiled the LabVIEW GUI for 2010 version and is attached to this instructable. Good luck!

Thank you so much I'm trying to making your project, but now I got an error when running the Labview vi file, labview told me that there's a problem in the VISA something related to the drivers!!!

have you installed the NI-VISA tool kit? is a must be driver for RS232 communication in LabVIEW.