PID Speed Controller for DC Motor

[@version 1 ] PID loop is used in this project to control the speed of a permanent magnet DC motor.

Jul 22, 2020

85506 views

20 respects

Components and supplies

1

INA219 I2C POWER MONITOR SENSOR

1

Voltage regulator 5v

1

wire

1

Dc motor 24v/150w

1

Voltage regulator 9v

1

Gt2 pulley 20 teeth 8mm (for motor)

1

Gt2 closed loop belt

1

Gt2 pulley 20 teeth 6mm (for encoder)

1

Bread board 830 tie

1

Arduino UNO

2

On –off switch

2

Cooling fan

1

Encoder 600ppr incremental

1

IRF540 Power MOSFET

1

SERIAL I2C TO LCD

1

Push button

1

Power supply 300w - 24/12 v

1

Bluetooth hc-05

1

LCD

Tools and machines

1

3D Printer (generic)

1

digital multimeter

1

cnc machine

Apps and platforms

1

Arduino IDE

1

MATLAB

1

Visual Studio 2015

Project description

Code

results of parameters estimation.

markdown

this is estimation values of our dc motor after applied nonlinear least square method from matlab.

step input data

matlab

this is a step input data from arduino after applied 24v to the motor. step1: convert freqency to rps then to rpm. step2:convert time from us to s. step3: time start from zero.

all libraries

markdown

all libraries you need to import it.

final code

arduino

step input response

arduino

just apply 24v to the motor terminal and copy the result that appears in the serial monitor of Arduino ide. this is for parameter estimation of the transfer function.

GUI code

markdown

download it as (.exe)

step input response

arduino

just apply 24v to the motor terminal and copy the result that appears in the serial monitor of Arduino ide. this is for parameter estimation of the transfer function.

final code

arduino

step input data

matlab

this is a step input data from arduino after applied 24v to the motor. step1: convert freqency to rps then to rpm. step2:convert time from us to s. step3: time start from zero.

all libraries

markdown

all libraries you need to import it.

results of parameters estimation.

markdown

this is estimation values of our dc motor after applied nonlinear least square method from matlab.

Downloadable files

Image of Circuit diagram

Image of Circuit diagram

Circuit diagram

Circuit diagram

Image of Circuit diagram

Image of Circuit diagram

Circuit diagram

Circuit diagram

Documentation

motor base

motor base

2D enclosure box

Acrylic 5mm thick

2D enclosure box

encoder base

encoder base

2D enclosure box

Acrylic 5mm thick

2D enclosure box

encoder base

encoder base

motor base

motor base

Comments

Only logged in users can leave comments

tareqwaleed1996

0 Followers

0 Projects

Table of contents

Intro

20

0