PC Based PWM Speed Control of DC Motor System

by ICStation in Circuits > Arduino

17094 Views, 32 Favorites, 0 Comments

PC Based PWM Speed Control of DC Motor System

4.jpg

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

Components List

6.jpg
7.jpg

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

Mega2560_1.png

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

UNO_1.png

The Effect Picture

3.jpg
4.jpg

The Connection of Main Control Part

5.jpg

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

The Connection of Data Acquisition Transmission Part

8.jpg

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

Video to Show the Effect

Tutorial for Arduino▶ 13 PC Based PWM Speed Control of DC Motor