Introduction: PC Based PWM Speed Control of DC Motor System

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

Comments

author
TheNinja1322 (author)2017-02-22

Can you upload the MotorCtr aplication?

author
harshitk21 (author)2017-02-11

please post the code

author
kodfarki (author)2015-12-20

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

How do you control motor speed?

author
LifengC (author)2015-09-03

Could u post ur code for the GUI?

About This Instructable

9,899views

28favorites

License:

Bio: 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 ... More »
More by ICStation:Hourglass Shape Flashing LED DIY KitsESP8266 ESP-03 Remote Wireless Module WIFI to UART ModuleDid You Ever Want to Have a Video Doorphone?
Add instructable to: