DC Motor Controller using Relay and MOSFET – Arduino Interface

  • Rajkumar Sharma
  • 844 Views
  • moderate
  • Tested
  • SKU: EL118230
  • Quote Now

The project presented here is a low-cost solution to control high power brushed DC motor speed and direction. Traditional DC motor controllers are based on solid-state circuitry known as H-Bridge. Here we have made an H-bridge configuration using high current 2 x relays which can handle high voltage as well as high current. Additional MOSFETs are used to control the speed of motor. These MOSFETs can be removed in case of only direction control required, short the Drain and source pin of MOSFETs. The project requires 3 control input signals, all inputs are optically isolated to prevent noise and high voltage going in to logic circuitry. A large-size heatsink is a must on MOSFET.

The project requires 3 input signals, 2 x TTL 3V to 5V for direction control and one PWM 0 to 100% Duty Cycle for speed control. Operating supply is 12V DC for logic circuit and relay, Motor supply 12V to 90V DC, Load up to 20A.

Arduino Code

Example Arduino code is provided to test the board. Arduino Uno or Nano is the right choice, refer to the details below for the interface.

  • Arduino Pin D4 = CN4 Pin 1 – A1 (DIR 1)
  • Arduino Pin D3 = CN4 Pin 3 – A2 (DIR 2)
  • Arduino Pin D5= CN4 Pin 5 – A3 (PWM)
  • Arduino GND = CN4 Pin 2,4,6 (C1, C2, C3 cathode of Optocouplers)
  • Arduino A0 = Joystick or Potentiometer

Input Control Signals (Connect all 3 x Cathode C1, C2, C3 to GND of Arduino) Connector CN4  

  • DC Motor Forward >> A1 High(3-5V), A2 Low (GND) or Floating, A3 PWM Signal, Duty Cycle 0 to 100%
  • DC Motor Reverse >> A1 Low (GND) or Floating, A2 High (3-5V), A3 PWM Signal, Duty Cycle 0 to 100%

Features

  • Power Supply for Relay and MOSFET 12V DC @ 100mA
  • Power Supply Motor 12V to 90V DC
  • Motor Load 20A (Maximum 30A)
  • All Inputs are Optically isolated
  • 2 x Inputs for Direction Control and Brake
  • One PWM Signal to Control the speed of Motor 0 to 100 % Duty Cycle
  • PWM Frequency 300Hz to 20 Khz
  • 2 x LEDs for direction indication
  • PCB dimensions: 75.41 x 74.30 mm

Schematic

Parts List

NOQNTYREFDESCMANUFACTURERSUPPLIERPART NO
11CN12 PIN SCREW TERMINAL PITCH 5.08MMPHOENIXDIGIKEY277-1247-ND
21CN22 PIN BARRIER CONNECTOR PITCH 9.53MMTE CONNECTIVITYDIGIKEY1437664-6-ND
31CN32 PIN BARRIER CONNECTOR PITCH 9.53MMTE CONNECTIVITYDIGIKEY1437664-6-ND
41CN46 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5319-ND
51C1220uF/25VRUBYCONDIGIKEY1189-3720-3-ND
61C20.1uF/50V SMD SIZE 0805MURATA/YAGEODIGIKEY
72C3,C4100uF/100VNICHICONDIGIKEY493-13184-3-ND
81C50.1uF/100VKYOCERADIGIKEY478-6107-1-ND
92D1,D3SM4007SMC DIODE DIGIKEY1655-1N4007FLCT-ND
101D2RED LEDLITE ON INCDIGIKEY160-1427-1-ND
111D4RED LEDLITE ON INCDIGIKEY160-1427-1-ND
122Q1,Q2BC517ONSEMIDIGIKEYBC517OS-ND
131Q3FDH3632ONSEMIDIGIKEYFDH3632FS-ND
142RE1,RE212V RELAYGOODSKY/PANASONICDIGIKEYJTV1G-TMP-12V
152R1,R51K 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
162R2,R6470E 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
174R3,R4,R7,R82K2 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
182R9,R11220E SMD SIZE 0805MURATA/YAGEODIGIKEY
191R1010E 5% SMD SIZE 0805MURATA/YAGEODIGIKEY
202U1,U2PC817TAIWAN SEMIDIGIKEYTPC817BC9G-ND
211U3TLP350/TLP250TOSHIBAMOUSER757-TLP350HF

Connections

Gerber View

Photos

Video

TLP350 Datasheet

Please follow and like us:
Pin Share

PCB



Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

RELATED PROJECTS

TOP PCB Companies