WIRELESS CONTROLLER FOR DC MOTOR

Download Report

Transcript WIRELESS CONTROLLER FOR DC MOTOR

By:
Supervisor:
Khalid Hawari
Dr. Jamal Kharousheh
Muath Nijim
Dr. Nasser Hamad
Thaer shaikh Ibrahim
27 December 2010











Introduction
Applications
Block Diagram
Full Schematic
Hardware Layout and Design Specs
User Interface
Tests
Challenges
Successes
Results
Next Step
Motivation:

Wireless becoming more and more available and
widely used.

Wireless control technology is effective in the world.

It is general project so it is can be installed for any
devices in many places.
Features:






Wireless Controller for DC Motor
Offset QPSK Wireless Standard
Windows based GUI
12 V DC Motor
Battery powered
Variable speed
Benefits:

Practical

Provides Flexibility

Economical

User-friendly

Can be ran from any PC running Windows

Robotics

Remote control car

Industrial Uses

Household Uses
Microcontroller:




PIC16F877 40 pin.


1 kHz internal clock used for timers.
Programmed in PIC C using PIC C Compiler.
Receives control signal from user software.
Translates desired speed to necessary duty
cycle.
Sends duty cycle to H-bridge inputs using
onboard PWMs.
H-Bridge:


L298N Dual H-Bridge Driver.



Motor direction can be controlled.
Duty cycle determines speed by controlling
how long switches are active.
IN1 and IN2 fed from PWM.
Adjusted voltage is output to motor
terminals.

GUI developed in Visual C-sharp.

It can detect the active port automatically.

User can accelerate, decelerate, start and stop
motor.

Motor direction can be chosen.

Speed is output to serial port (RS232) by
software.
Functional Tests:

Used HyperTerminal to get initial connection
between XBee Modules and another XBee with
their implemented receiver and transmitter
circuits.

Sent serial input to PIC, tested basic outputs
(oscilloscope, serial text echo).

Tested H-Bridge using function generator.
Operation Tests:

For a given duty cycle, the resulting speed was
measured.

Using a collection of these points, a linear
translation from duty cycle to speed was
calculated.



At 10 RPM: Duty cycle = 110
At 120 RPM: Duty cycle = 950
Y = mx + b  Duty = 7.93(speed) + 30.87

Replaced Voltage Divider consisting of resistors
with Voltage Regulators.

H-Bridge suffer from little maximum current.

ASCII Translation Issues.

Motor ran in both directions.

0-120 RPM range.

Maximum continuous load = 30 W
Motor Operations:
No-Load Motor Current vs. Terminal Voltage
no load output voltage Vs input
current
1.8
1.6
1.2
1
0.8
0.6
0.4
0.2
0
14
12
10
8
6
output voltage
4
2
0
input current
1.4
Motor Operations
Max Load Motor Current vs. Terminal Voltage
With load output voltage Vs input current
1.6
1.4
1
0.8
0.6
0.4
0.2
0
12
10
8
6
output voltage
4
2
0
input current
1.2
Duty Cycle to H-Bridge:
PIC To H-Bridge Control Signal
@ 42 RPM
PIC To H-Bridge Control Signal
@ 90 RPM

Designed feedback loop for closed system
control.

Designed optical encoder wheel on motor shaft
with one notch to read RPM.


Directed signal to PIC, began programming.

Install the system in a practical application as a
car control.
Modified the interface program to display the real
and active RPM.