This system can change the speed of a DC motor and monitor the real-time rotating speed of the motor on a PC. The motor communicates with the PC via an NRF24L01 wireless module. The advantages of the data transmission are that it is stable, fast and can transmit over a long distance. This system is suitable for the occasion where the distance between motor and PC is far and they cannot be connected with wires. It can stably and efficiently monitor and control the motor's condition.
Functions
1. When the system is powered on, open the PC and choose the corresponding interface. The PC will display the rotating speed of the motor.
2. Click the controller buttons of the PC, and you can change the conditions and rotating speed of the motor. The PC will display the rotating speed of the motor.
Code for your reference
http://www.icstation.com/newsletter/eMarketing/PWM_control_system.zip
Step 1: Components list
Step 2: Schematic diagram of data transmission part (connected to the PC)
Step 3: Schematic diagram of the main control part (Connected with Motor)
Step 4: The effect
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 anode of battery
- GND — Cathode of battery
- INA — Digital pin
5
- INB — Digital pin 6
- OUTA — Anode of motor
- OUTB — Cathode of motor
4. Connect Hall Magnetic speed measurement Module to ICStation UNO
- DOUT — Digital pin 3
Step 6: Connection of the data acquisition transmission part
1. Connect 10uf electrolytic capacitor between ICStation Mega2560 and ground. It can reduce fluctuations in the 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
Comments