DC Motor Speed, Direction and Brake Control with NRF24L01 RF Module – Arduino Compatible

  • Rajkumar Sharma
  • 1.493 Views
  • medium
  • Tested
  • SKU: EL112472
  • Quote Now

This is Arduino compatible hardware that can control a single DC motor speed, direction, and brake using an RF remote control. The project is based on an ATMEGA328 microcontroller, H-Bridge DC motor driver chip LM18201, NRF24L01 RF module, 5V Regulator, 3.3V regulator and other components. This board can drive a DC Motor up to 24V DC with a load current up to 3A. Arduino pin configuration details are provided below, the user may write their own code and use this hardware. The  ATMEGA328 is the heart of the project, the LMD18201 chip drives the motor, LM317-ADJ provides 5V to the microcontroller, LM1117 3.3V regulator power the 3.3V to NRF24L01.

Note 1: This project is compatible with our two RF transmitters published in past: Single Joystick Remote Control and Dual Joystick Remote over NRF24L01 RF link.
Note 2:  The project drives 12V to 24V DC motor with single supply 12V to 24V, LMD18201 can support higher voltage motor up to 48V, in case of 48V supply, remove VCC Jumper J2, apply 48V to CN3 for motor and apply 5V DC separately to CN1 for the microcontroller power.
Note 3: It is advisable to use large size of heatsink on LMD18201 chip.
Note 4: Close Jumper J1 and J2 for normal operations of 12V to 24V DC Motor Speed and Direction Control using Joystick remote transmitter.

Arduino Pins

  • LMD18201 Motor Driver Chip: PWM-Pin5>> Arduino Digital Pin D5, Direction-Pin3>>Arduino Digital Pin D6, Brake-Pin4>> Arduino Digital Pin 7
  • NRF24L01 RF Module: GND>>GND, 3.3V>>3.3V Regulator, CE>> Arduino Digital Pin D9, CSN>> Arduino Digital Pin D10, MOSI>>Arduino Digital Pin D11, MISO>> Arduino Digital Pin D12, CSK>>Arduino Digital Pin D13

Code

Arduino code is available as a download, it is a modified code from the original author www.forbiddenbit.com. Make sure RX code is uploaded to the ATMEGA328 chip, TX code is for transmitter chip, follow the link below to learn more about programming and bootloader burning to the ATMEGA328 microcontroller. Users will be able to run DC motor with speed and direction with help of our One Joystick NRF24L01 Transmitter or Dual Joystick Remote over NRF24L01 RF link.

https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoToBreadboard

Testing the Project

Connect the 12V to 24V DC Motor to MG1 (Motor connector), connect 12V To 24V power supply to CN3, Close Jumper J2 and Jumper J1, Switch on the power, switch on the ON Joystick NRF24L01 Transmitter, the motor should run with Joystick.

Features

  • Operating Power Supply 12V to 24V DC (Also supports Higher Voltages Read Note 2)
  • DC Motor Load up to 3Amps
  • LMD18201 Supports PWM Duty Cycle 0 to 100%
  • LMD18201 Chip Supports Frequency up to 20Khz (With Example Code Frequency 900Hz)
  • Motor Speed, Direction, Brake control using RF Transmitter
  • D1 Power LED
  • PCB Dimensions 63.82 x 43.18 mm

Schematic

Parts List

NOQNTYREFDESCMANUFACTURERSUPPLIERSUPPLIER PART NO
11CN14 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5317-ND
21CN2NRF24L01AMAZON/ALIEXPRESSDIGIKEY
31CN32 PIN SCREW TERMINALPHOENIXDIGIKEY277-1247-ND
42C1,C30.01uF/50V SMD SIZE 1206MURATA/YAGEODIGIKEY
53C2,C4,C90.1uF/50V SMD SIZE 0805MURATA/YAGEODIGIKEY
61C51uF/50V SMD SIZE 1206MURATA/YAGEODIGIKEY
71C6470/50VWURTHDIGIKEY732-9194-1-ND
82C7,C822PF/50V SMD SIZE 0805MURATA/YAGEODIGIKEY
92C10,C1110uF/6.3V SMD SIZE 1206MURATA/YAGEODIGIKEY
101D1LED RED SMD SIZE 0805LITE-ONDIGIKEY160-1427-1-ND
111J12 PIN HEADER WITH SHUNTWURTHDIGIKEY732-5315-ND
121J22 PIN HEADER WITH SHUNTWURTHDIGIKEY732-5315-ND
131MG12 PIN SCREW TERMNINALPHOENIXDIGIKEY277-1247-ND
141R11K 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
152R2,R310K 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
161R4220E 1% SMD SIZE 0805MURATA/YAGEODIGIKEY
171R51M 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
181R6680E 1% SMD SIZE 0805MURATA/YAGEODIGIKEY
191R70E SMD SIZE 0805MURATA/YAGEODIGIKEY
201U1LMD18201TIDIGIKEYLMD18201T/NOPB-ND
211U2ATMEGA328 DIP 28MICROCHIPDIGIKEYATMEGA328-PU-ND
221U3LM117-3.3VTIDIGIKEYLM1117MP-3.3/NOPBCT-ND
231U4LM317-ADJ DPAK SMD TIDIGIKEYLM317MDTNS/NOPB-ND
241Y116MHZECS INCDIGIKEYX1103-ND
252J1,J2SHUNT SULLINSDIGIKEYS9001-ND
261SCK28 PIN DIP IC SOCKETDIGIKEYED3050-5-ND

Connections

Gerber View

Compatible Board

Photos

Video

LM18201 Datasheet

Please follow and like us:
Pin Share

PCB

Subscribe
Notify of
guest

1 Comment
Inline Feedbacks
View all comments
Arang

.I modified your source code a bit.And change large joystick to run smooth direction.Apreciate all your work,and thanks for your time..

RELATED PROJECTS

TOP PCB Companies