PC Based PWM Speed Control of DC Motor System

14,021

32

4

Introduction: PC Based PWM Speed Control of DC Motor System

About: www.ICStation.com is a top store of electronic, which specializes in all kinds of IC products, such IC accessories, Module, Robots, Development Board, Transistor, Capacitor and so on. We're located in Shenz…

ICStation Research and Development Team has made the projects about the PWM Speed Control of DC Motor System which can change the speed of DC motor and monitor the real-time rotating speed of motor by upper computer.The part of motor communicates with PC by NRF24L01 wireless module.The advantages of the data transmission are stable, fast and between far distance. This system is suitable for the occasion where the distance between motor and PC is far and can not connect with wires. It can stably and efficiently to monitor and control the motor condition.

Functions

1.When the system is power on, open the upper computer. And choose the corresponding interface. The upper computer will display the rotating speed of motor.

2.Click the controlled button of upper computer, and you can change the conditions and rotating speed of motor. The upper computer will display the rotating speed of motor.

Code for your reference

http://www.icstation.com/newsletter/eMarketing/PWM_control_system.zip

Step 1: Components List

Step 2: The Schematic Diagram of Data Transmission Part (Connected With PC)

Step 3: The Schematic Diagram of the Main Control Part( Connected With Motor)

Step 4: The Effect Picture

Step 5: The Connection of Main Control Part

1.Connect NRF24L01 wireless transmission module to the ICStation UNO
SCK--Digital pin 13 ;MOSI-- Digital pin 11 CS——Digital pin 7;CS——Digital pin 8;MOSI-- Digital pin 12

2.Connect 1602 LCD display to the ICStation UNO

SCL—A5 ;SDA—A4

3.Connect motor drive L298N to ICStation UNO

VCC—7.2V The anode of battery GND- the cathode of battery INA—Digital pin 5; INB—Digital pin 6 OUTA-The anode of motor OUTB-the cathode of motor

4.Connect Hall Magnetic speed measurement Module to ICStation UNO

DOUT—Digital pin 3

Step 6: The Connection of Data Acquisition Transmission Part

1.Connect 10uf electrolytic capacitor between ICStation Mega2560 and ground. It can reduce the shake of power supply and make the system work more stably.

2.Connect NRF24L01 wireless transmission module to the ICStation Mega 2560
SCK--Digital pin 52 ;MOSI-- Digital pin 51 MOSI--Digital pin 50;CS——Digital pin 9 CE——Digital pin 8

Step 7: Video to Show the Effect

Sensors Contest

Participated in the
Sensors Contest

Be the First to Share

    Recommendations

    • Pi Day Speed Challenge

      Pi Day Speed Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Microcontroller Contest

      Microcontroller Contest

    4 Comments

    1
    TheNinja1322
    TheNinja1322

    4 years ago

    Can you upload the MotorCtr aplication?

    0
    harshitk21
    harshitk21

    4 years ago

    please post the code

    0
    kodfarki
    kodfarki

    5 years ago

    As far as I know, motor driver only starts or stops the motor.

    How do you control motor speed?