PC Based PWM Speed Control of DC Motor System

By on March 27, 2015

Web site:

http://www.instructables.com/id/PC-Based-PWM-Speed-Control-of-DC-Motor-System/

Project Summary:

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.

Full Project:

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.

Step 1: The effect picture

Step 2: 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 3: 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 4: Video to show the effect

 

 

Circuit diagram:

The schematic diagram of data transmission part

The schematic diagram of the main control part

Bill of Materials:

1.ICStation ATMEGA2560 Mega2560 R3 Board Compatible Arduino
2.ICStation ATMEGA328 UNO V3.0 R3 Board Compatible Arduino UNO R3
3.L298N DC Motor Driver Module Robot Dual H Bridge for Arduino PIC
4.1pcs NRF24L01+2.4GHz Wireless Transceiver Module for Arduino MCU
5.KY-024 Linear Hall Magnetic Module for Arduino AVR PIC
6.For Arduino IIC/I2C/TWI 1602 Serial LCD Module Display
7.Dupont 20cm Color Cable Line 1p-1p Pin Connecto
8.DC motor

Software & Code Snippets:

Code for your reference
http://www.icstation.com/newsletter/eMarketing/PWM_control_system.zip

PCB:

About

Leave a Reply

Your email address will not be published. Required fields are marked *