12.12.2012 Views

universiti putra malaysia development of an electric vehicle ...

universiti putra malaysia development of an electric vehicle ...

universiti putra malaysia development of an electric vehicle ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UNIVERSITI PUTRA MALAYSIA<br />

DEVELOPMENT OF AN ELECTRIC VEHICLE DASHBOARD<br />

MONITORING SYSTEM USING MICROCONTROLLER<br />

MOHAMMED E. SALEM ABOZAED<br />

FK 2000 12


DEVELOPMENT OF AN ELECTRIC VEHICLE DASHBOARD<br />

MONITORING SYSTEM USING MICROCONTROLLER<br />

By<br />

MOHAMMED E. SALEM ABOZAED<br />

Thesis Submitted in Partial Fulfilment <strong>of</strong> the Requirements for the<br />

Degree <strong>of</strong> Master <strong>of</strong> Science in the Faculty <strong>of</strong> Engineering<br />

Universiti Putra Malaysia<br />

J<strong>an</strong>uary 2000


I Dedicate This Work<br />

to<br />

My Parents <strong>an</strong>d My Wife<br />

2


Abstract <strong>of</strong> thesis presented to the Senate <strong>of</strong>Universiti Putra Malaysia in<br />

partial fulfilment <strong>of</strong> the requirements for the degree <strong>of</strong> Master <strong>of</strong> Science.<br />

DEVELOPMENT OF AN ELECTRIC VEHICLE DASHBOARD<br />

MONITORING SYSTEM USING MICROCONTROLLER<br />

Chairm<strong>an</strong>: Ishak Aris, Ph.D<br />

Faculty: Engineering<br />

By<br />

MOHAMMED E. SALEM ABOZAED<br />

J<strong>an</strong>uary 2000<br />

A microcontroller is a complete microcomputer on a chip that integrates a<br />

CPU with memory <strong>an</strong>d various peripherals such as <strong>an</strong>al og-to-di gital converters<br />

(AID), serial communication units etc. Microcontrollers are designed to be<br />

embedded within event-driven control applications <strong>an</strong>d generally have all necessary<br />

peripherals integrated onto the same piece <strong>of</strong> silicon. An Intelligent Energy<br />

M<strong>an</strong>agement System (IEMS) is a microcontroller based system which is used in <strong>an</strong><br />

<strong>electric</strong> <strong>vehicle</strong> to monitor <strong>an</strong>d control the various parts <strong>of</strong> the <strong>vehicle</strong> such as the<br />

motor <strong>an</strong>d motor drives, the current <strong>an</strong>d voltage <strong>of</strong> the battery packs, dashboard,<br />

pedals <strong>an</strong>d other subsystems. This aids the driver to achieve optimal driving<br />

conditions from the <strong>vehicle</strong>.<br />

In tropical countries the temperature is very high especially during the day.<br />

As a result, when the <strong>vehicle</strong>s are parked in <strong>an</strong> open space the temperature in the<br />

<strong>vehicle</strong> rises <strong>an</strong>d this could lead to m<strong>an</strong>y problems. The objective <strong>of</strong> this project<br />

was to develop <strong>an</strong> Automatic F<strong>an</strong> Controlling System (AFCS), which may be used to<br />

control the temperature <strong>of</strong> the <strong>electric</strong>al <strong>vehicle</strong> cabin to counter <strong>an</strong>y potential<br />

3


problems. This new proposed system is one <strong>of</strong> the m<strong>an</strong>y systems that may be made<br />

available to the user via the IEMS. This proj ect also looked into the <strong>development</strong> <strong>of</strong><br />

the battery pack voltage level monitoring system for <strong>electric</strong> <strong>vehicle</strong>s.<br />

The MC68HC 11 evaluation board (EVB) NMIX-0020, which uses a<br />

Motorola F68HCll microcontroller for its CPU, is used to monitor <strong>an</strong>d control both<br />

<strong>of</strong> the systems mentioned above. The <strong>development</strong> work carried out for the<br />

automatic f<strong>an</strong> controlling system <strong>an</strong>d the battery pack voltage level monitoring<br />

system include the design, construct <strong>an</strong>d testing <strong>of</strong> the system.<br />

The automatic f<strong>an</strong> controlling system consists <strong>of</strong> a temperature sensor<br />

(AD590), a current-to-voltage converter, digital relay <strong>an</strong>d a microcontroller. The<br />

battery pack voltage level monitoring system comprises <strong>of</strong> a voltage divider, a digital<br />

display <strong>an</strong>d a microcontroller.<br />

Simulation <strong>an</strong>d experimental results are also included <strong>an</strong>d discussed in detail.<br />

Based on these results, the systems mentioned above have been successfully<br />

developed. The systems c<strong>an</strong> be extended for high temperature controlling <strong>an</strong>d high<br />

voltage monitoring by ch<strong>an</strong>ging some parameters in both systems.<br />

4


Abstrak tesis y<strong>an</strong>g dikemukak<strong>an</strong> kepada Senat Universiti Putra Malaysia sebagai<br />

memenuhi sebahagi<strong>an</strong> dari keperlu<strong>an</strong> untuk ijazah Master Sains.<br />

PEMBANGUNAN SEBUAB SISTEM PENGA WASAN PANEL KA W AL<br />

KENDERAAN ELEKTRIK MENGGUNAKAN PENGA WAL-MIKRO<br />

Pengerusi: Ishak Aris, Ph.D<br />

Faculti: Kejurutera<strong>an</strong><br />

Oleh<br />

MOHAMMED E. SALEM ABOZAED<br />

J<strong>an</strong>uari 2000<br />

Pengawal-mikro adalah komputer-mikro lengkap di dalam sebuah chip di<br />

m<strong>an</strong>a unit pemproses<strong>an</strong> pusat (CPU) beserta deng<strong>an</strong> ingat<strong>an</strong> digabungk<strong>an</strong> deng<strong>an</strong><br />

berbagai peralat<strong>an</strong> seperti pengubah <strong>an</strong>alog-kepada-digital, unit komunikasi siri d<strong>an</strong><br />

lain-lain. Pengawal-mikro direka untuk dimuatk<strong>an</strong> ke dalam aplikasi pemacu-<br />

keada<strong>an</strong> terkawal (event-driven), d<strong>an</strong> selalunya mempungai alat-alat y<strong>an</strong>g di<br />

integrasik<strong>an</strong> bersama di dalam unit silikon y<strong>an</strong>g sarna. Sistem pengurus<strong>an</strong> tenaga<br />

pintar [Intelligent Energy M<strong>an</strong>agement System (IEMS)] adalah sistem berasask<strong>an</strong><br />

pengawal-mikro y<strong>an</strong>g digunak<strong>an</strong> di dalam kendera<strong>an</strong> elektrik bagi mengawasi d<strong>an</strong><br />

mengawal berbagai bahagi<strong>an</strong> kendera<strong>an</strong> seperti motor d<strong>an</strong> pemacu motor, arus d<strong>an</strong><br />

volt<strong>an</strong> untuk pak bateri, pap<strong>an</strong> kawai, pengayuh d<strong>an</strong> juga lain-lain sub-sistem. Sistem<br />

ini ak<strong>an</strong> dapat memb<strong>an</strong>tu pengendali<strong>an</strong> kendera<strong>an</strong> dalam keada<strong>an</strong> y<strong>an</strong>g optimum.<br />

Bagi negara tropikal, cuaca bias<strong>an</strong>ya adalah p<strong>an</strong>as terutam<strong>an</strong>ya pada waktu<br />

si<strong>an</strong>g. Jika kendera<strong>an</strong> diletakk<strong>an</strong> ditempat lap<strong>an</strong>g, suhu di dalam kendera<strong>an</strong> ak<strong>an</strong> naik<br />

pada tahap y<strong>an</strong>g tinggi. Ini boleh membawa kepada berbagai masalah. Objektif<br />

projek ini adalah untuk membina sistem pengawal<strong>an</strong> kipas otomatik [Automatic F<strong>an</strong><br />

5


Controlling System (AFCS)] y<strong>an</strong>g boleh digunak<strong>an</strong> untuk mengawal suhu ru<strong>an</strong>g<br />

kendera<strong>an</strong> elektrik bagi mengelakk<strong>an</strong> masalah y<strong>an</strong>g disebabk<strong>an</strong> oleh suhu y<strong>an</strong>g<br />

tinggi. Sistem barn y<strong>an</strong>g dicad<strong>an</strong>gk<strong>an</strong> ini adalah di <strong>an</strong>tara sistem y<strong>an</strong>g boleh<br />

dibekalk<strong>an</strong> kepada pengguna-pengguna melalui teknologi IEMS. Projek ini juga<br />

ak<strong>an</strong> melibatk<strong>an</strong> pemb<strong>an</strong>gun<strong>an</strong> satu sistem pengawas<strong>an</strong> tahap volt<strong>an</strong> pak bateri bagi<br />

kendera<strong>an</strong> elektrik.<br />

Pap<strong>an</strong> penilai<strong>an</strong> MC68HC 11 NMIX-0020 (EVB) y<strong>an</strong>g menggunak<strong>an</strong><br />

pengawal-mikro Motorola F68HCll sebagai unit pemproses<strong>an</strong> pusat (central<br />

processing unit) digunak<strong>an</strong> untuk mengawasi d<strong>an</strong> mengawal kedua-dua sistem y<strong>an</strong>g<br />

dicad<strong>an</strong>gk<strong>an</strong> di atas. Kerja-kerja pemb<strong>an</strong>gun<strong>an</strong> y<strong>an</strong>g telah dijal<strong>an</strong>k<strong>an</strong> termasuklah<br />

rekabentuk, pembina<strong>an</strong> d<strong>an</strong> uji<strong>an</strong> ke atas sistem-sistem tersebut.<br />

Sistem pengawal<strong>an</strong> kipas otomatik terdiri dari penges<strong>an</strong> suhu (AD590),<br />

penukar arus kepada volt<strong>an</strong>, penyampai digital d<strong>an</strong> pengawal mikro. Sistem<br />

pengawas<strong>an</strong> tahap volt<strong>an</strong> pak bateri terdiri dari pembahagi volt<strong>an</strong>, layar digital d<strong>an</strong><br />

pengawal mikro.<br />

Hasil-hasil keputus<strong>an</strong> simulasi d<strong>an</strong> ujikaji juga disertak<strong>an</strong> d<strong>an</strong> dibinc<strong>an</strong>gk<strong>an</strong><br />

secara mendalam. Berdasark<strong>an</strong> dari keputus<strong>an</strong> tersebut, sistem-sistem y<strong>an</strong>g<br />

disebutk<strong>an</strong> di atas telah berjaya dib<strong>an</strong>gunk<strong>an</strong>. Sistem ini boleh diubahsuai d<strong>an</strong><br />

digunak<strong>an</strong> untuk mengawal suhu tinggi d<strong>an</strong> mem<strong>an</strong>tau volt<strong>an</strong> tinggi deng<strong>an</strong><br />

mengubah parameter y<strong>an</strong>g berkait<strong>an</strong> deng<strong>an</strong> kedua-dua sistem tersebut.<br />

6


ACKNOWLEDGEMENTS<br />

First <strong>of</strong> all, I would like to th<strong>an</strong>k my Lord Allah the most gracious <strong>an</strong>d merciful,<br />

who gave me the ability to carry out this project. Selawat <strong>an</strong>d Salaam to his Righteous<br />

Messenger, Prophet Muhammad S.A.W.<br />

I wish to express my pr<strong>of</strong>ound appreciation <strong>an</strong>d gratitude to the Chairm<strong>an</strong> <strong>of</strong> the<br />

Supervisory Committee, Dr. Ishak bin Aris, for his supervision, guid<strong>an</strong>ce <strong>an</strong>d<br />

constructive suggestions <strong>an</strong>d comments throughout the duration <strong>of</strong> this project.<br />

I am also grateful to the members <strong>of</strong> the Supervisory Committee, Dr. Norm<strong>an</strong><br />

Mariun <strong>an</strong>d Dr. Samsul Bahari Mohd. Noor, for their kind guid<strong>an</strong>ce, prompt decisions<br />

<strong>an</strong>d valuable assist<strong>an</strong>ce throughout this project.<br />

Great appreciation is also due to Mr. Yasin M. <strong>an</strong>d the other technici<strong>an</strong>s <strong>of</strong><br />

Electrical <strong>an</strong>d Electronics Engineering Department for their technical support. I wish also<br />

to th<strong>an</strong>k the Faculty <strong>of</strong> Engineering for providing the facilities <strong>an</strong>d the components<br />

required for undertaking this project.<br />

Last but not least, I would like to th<strong>an</strong>k my friends, especially En. Azzadden<br />

Mohammed Salah, for their encouragement <strong>an</strong>d support.<br />

7


I certify that Examination Committee met on 24 J<strong>an</strong>uary, 2000 to conduct the final<br />

examination <strong>of</strong> Mohammed E. Salem Abozaed on his Master <strong>of</strong> Science thesis entitled<br />

"Development <strong>of</strong> <strong>an</strong> Electric Vehicle Dashboard Monitoring System Using<br />

Microcontroller" in accord<strong>an</strong>ce with Universiti Pert<strong>an</strong>i<strong>an</strong> Malaysia (Higher Degree) Act<br />

1980 <strong>an</strong>d Universiti Pert<strong>an</strong>i<strong>an</strong> Malaysia (Higher Degree) Regulation 1981. The<br />

Committee recommends that the c<strong>an</strong>didate be awarded the relev<strong>an</strong>t degree. Members <strong>of</strong><br />

the Examination Committee are as follows:<br />

Nasrullah Kh<strong>an</strong>, PhD.<br />

Faculty <strong>of</strong> Engineering<br />

Universiti Putra Malaysia<br />

(Chairm<strong>an</strong>)<br />

Ishak Aris, PhD.<br />

Faculty <strong>of</strong> Engineering<br />

Universiti Putra Malaysia<br />

(Member)<br />

Norm<strong>an</strong> Mariun, PhD.<br />

Faculty <strong>of</strong> Engineering<br />

Universiti Putra Malaysia<br />

(Member)<br />

S. B. M. Noor, PhD.<br />

Faculty <strong>of</strong> Engineering<br />

Universiti Putra Malaysia<br />

(Member)<br />

. GHAZALI MOHA YIDIN, Ph.D.<br />

Pr<strong>of</strong>essorlDeputy De<strong>an</strong> <strong>of</strong> Graduate School<br />

8<br />

Date: - 2 FEB 2000<br />

-


This thesis was submitted to the Senate <strong>of</strong>Universiti Putra Malaysia <strong>an</strong>d was accepted as<br />

Partial Fulfillment <strong>of</strong> the requirements for the degree <strong>of</strong> Master <strong>of</strong> Science.<br />

KAMIS A WANG, Ph.D.<br />

Associate Pr<strong>of</strong>essorlDe<strong>an</strong> <strong>of</strong> Graduate school<br />

Universiti Putra Malaysia<br />

9<br />

1 a FEB 2000


DECLARA nON<br />

I hereby declare that the thesis is based on my original work except for the quotations <strong>an</strong>d<br />

citations, which have been duly acknowledged. I also declare that it has not previously or<br />

concurrently submitted for <strong>an</strong>y other degree at UPM or other institutions.<br />

Signed<br />

(�<br />

C<strong>an</strong>didate.<br />

Name: Mohammed E. Salem Abozaed<br />

Date: 2/2/2000<br />

10


TABLE OF CONTENTS<br />

Page<br />

DEDICATION . . . . . . . .. . . . .. . . . . . . . . . . . . .. . . . . .. . . . . . .. . . .. . .. . ... . . . . . . . ..... . . ... .. 2<br />

ABSTRACT . . .. . . . . . .. . . . . . . . . . . . . .. . . . .. . . . . . . . .. . . . . . . . .. . . . . .. . . . . . . . . . . . . . .. . . . . . 3<br />

ABSTRAK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />

ACKNOWLEDGEMENTS ...................... , .. ... .... .. . .. . .. . .. . .. . .. . .. . .. 7<br />

APPROVAL SHEETS ............................................................. 8<br />

DECLERATION FORM ................................................. ......... 10<br />

LIST OF TABLES .................................................................. 14<br />

LIST OF FIGURES ................................................................ 15<br />

LIST OF PLATES .................................................................. 17<br />

LIST OF SYMBOLS AND ABBREVIATIONS .............................. 18<br />

CHAPTER<br />

I<br />

II<br />

INTRODUCTION<br />

Temperature Control in Passenger Cabins ........................ .<br />

Battery Pack Voltage Level Monitoring System ............... . .<br />

Objective <strong>of</strong>the Project ............................................. .<br />

Layout <strong>of</strong> the Thesis ................................................ .<br />

LITERATURE REVIEW<br />

History <strong>of</strong> Electric Vehicles ........................................ .<br />

The Electric Vehicle Controller ...................................... .<br />

Electric Vehicle Power Systems (Motors <strong>an</strong>d Controllers) .. .<br />

Motors .......................................................... .<br />

Controllers<br />

What is a Microcontroller? ......................................... .<br />

Historical Background <strong>of</strong> Micro controllers ..................... .<br />

Central Processing Unit ............................................ .<br />

The Difference Between Microcontrollers <strong>an</strong>d Microprocessors.<br />

The Adv<strong>an</strong>tages <strong>of</strong> Using the 68HCl1 Microcontroller For<br />

Controlling ........................................................... .<br />

Intelligent Energy M<strong>an</strong>agement (Microcontroller) ............. .<br />

Temperature control using Microcontroller ..................... .<br />

Temperature Control <strong>of</strong> Hot-Tub Using the F68HC11 .......... .<br />

Batteries in Electric Vehicles ..................................... .<br />

Types <strong>of</strong> Batteries ................................................... . .<br />

Electric Vehicle Battery Chargers ................................. .<br />

Battery Voltage Level Monitoring system ...................... .<br />

Summary ............................................................ .<br />

11<br />

20<br />

21<br />

21<br />

22<br />

23<br />

24<br />

24<br />

25<br />

26<br />

27<br />

28<br />

31<br />

33<br />

34<br />

35<br />

36<br />

36<br />

37<br />

38<br />

39<br />

40<br />

41<br />

42<br />

42


III<br />

IV<br />

METHODOLOGY<br />

The complete Automatic F<strong>an</strong> Control System (AFCS) Circuit ..<br />

Hardware Development .. .. . ... ...... .... . ............. ... . .<br />

The Analog Interfacing <strong>of</strong> <strong>an</strong> Automatic F<strong>an</strong> Control System ... .<br />

Temperature Sensor ........... .. ... ....................... . .<br />

Temperature Display .. .. . .. ...... .... ............... .. ... .<br />

I-V Converter . .. ...... . ..... .................. ............ . . .<br />

The Digital Interfacing <strong>of</strong> <strong>an</strong> Automatic F<strong>an</strong> Control System . ... .<br />

Digital Relay (HEF 4066BP) ... ........ .. ... ... .. ...... .<br />

12V DC F<strong>an</strong> ............. ......... .... ......... . ........ . . .<br />

The Analog Interfacing <strong>of</strong> the Battery Pack Voltage<br />

Level Monitoring System . .... ...... . .. ....... .. ......... . ..... 56<br />

The Digital Interfacing <strong>of</strong> the Battery PackVoltage Level<br />

Monitoring System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59<br />

S<strong>of</strong>tware Design . . . . .... ....... .. . .. .. . .. . . . .. . . . .. . .. . ... .. . .. . ... 59<br />

S<strong>of</strong>tware Design <strong>of</strong> <strong>an</strong> Automatic F<strong>an</strong> Control System ....... . 61<br />

Counter Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 61<br />

Clear Memory Buffer Locations .... .. ... .................. . 61<br />

Temperature Measurement Routine ... .. ... ... . . . . . .. 61<br />

NO Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 62<br />

Sufficient Time Delay For NO .. . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . 63<br />

Read Temperature Measurement in NO Register . .. ..... . 64<br />

60-Second Time Delay Routine . . . . . . . . . . . . . . . . . . . . . . . . .. 64<br />

S<strong>of</strong>tware Design <strong>of</strong> the Battery Pack Voltage Level<br />

Monitoring System .. . ... .... .............................. .... . .... 64<br />

Initializing the ADCTL Register . . . . . . . . . . . . . . . . . .. . 64<br />

Time Delay for ND Conversion . . . . . . . . . . . . . . . . . . . .. 65<br />

Read Ch<strong>an</strong>nels Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . 65<br />

Multipling the Input Value by 51 . .. . .. .. .. .. . .. .. .. . . . . .. . 65<br />

Converting Hex to Binary Coded Decimal (BCD) ... .... 65<br />

Critical Battery Voltage Level <strong>of</strong> Electric Vehicles . . . . . . .. 66<br />

60-Second Time Delay Routine . . . . . . . . . . . . . . . . . . . . . . . 66<br />

Downloading the program to the EVB' s RAM . . . . . . . . . . . . . . . . .... 68<br />

Checking the Downloaded Program ..... ... ... .... . . .. ...... ... 69<br />

MC68HCll NMIX-0020 Uses F68HCll Microcontroller. . ... ... 70<br />

NMIX-0020 Parts . . ..... .. . .. ... ..... ... ..... .. ... ... .. 70<br />

Parallel Ports . .. ... .... .. ....... ......... ........ ... ... . 71<br />

AC Power Supply .. ..... .. .. . ... .............. .. . ....... 74<br />

Printed Circuit Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75<br />

RESUL TS AND DISCUSSION<br />

Experimental Results <strong>of</strong> AFCS . ....... .... .................. ...... .<br />

Suitability <strong>of</strong> AD590 for AFCS .. ....... .. .. ........ . ..... .... .<br />

12V DC F<strong>an</strong> Power Supply .. .. ... .... .. ...... . . ..... ... ... ..<br />

Monitoring Battery Voltage Level in the Laboratory ............. .<br />

Signal Condition Circuit (SCC) Simulation ............... ........ .<br />

12<br />

44<br />

44<br />

45<br />

46<br />

46<br />

48<br />

49<br />

53<br />

54<br />

54<br />

77<br />

77<br />

77<br />

80<br />

80<br />

87


The Simulation <strong>of</strong> Voltage Dividers For Battery Voltage Monitoring 90<br />

The Common Problems <strong>of</strong> Operating Microcontroller Encountered<br />

in this Project <strong>an</strong>d Solutions ........................................... 91<br />

V CONCLUSIONS AND FURTHER RECOMMENDED STUDIES 93<br />

REFERENCES ........ .. . ... ... ... .. . .. ... .... ...... .. .... .. ... ... ...... . .. . .. . .. . .. . . 95<br />

APPENDIX<br />

A Controlling Program for Monitoring Battery <strong>an</strong>d Temperature<br />

Controlling . . . . . . . . . . . . . . ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99<br />

B Temperature Sensor (AD590) Data Sheet ........................... 104<br />

C I-V Converter (OP07) Data Sheet ....................................... 115<br />

D<br />

E<br />

F<br />

VITA<br />

Digital Relay (HEF4066BP) Data Sheet ............................ .<br />

AID Converter (ICL7107) Data Sheet .............................. .<br />

Microcontroller Data Sheet ........................................... .<br />

13<br />

97<br />

120<br />

129<br />

146<br />

149


LIST OF TABLES<br />

Table Page<br />

1 The input battery voltage value, the voltage divider output <strong>of</strong> input voltage,<br />

the hex value <strong>of</strong> voltage divider <strong>an</strong>d the battery voltage display . . . . . . . . . . 82<br />

14


LIST OF FIGURES<br />

Figure Page<br />

1 The System-block diagram <strong>of</strong> <strong>an</strong> <strong>electric</strong> <strong>vehicle</strong> (EV) 26<br />

2 The block diagram <strong>of</strong> a <strong>vehicle</strong> control system .. .. . .. . .. ... ...... ... . .. . .. 30<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

10<br />

11<br />

Block diagram <strong>of</strong> a typical microcontroller ............................... .<br />

Block diagram <strong>of</strong> a hot-tub controller ..................................... .<br />

Basic battery charger operation<br />

General structure <strong>of</strong> the automatic f<strong>an</strong> controlling system ............... .<br />

Block diagram <strong>of</strong> <strong>an</strong> <strong>an</strong>alog interface .................................... ..<br />

Pinouts <strong>an</strong>d the circuit symbol <strong>of</strong> AD590 ................................ .<br />

Temperature display using ICL7107 AID converter .................... .<br />

Circuit diagram <strong>of</strong> the I-V converter (SCC) with AD590 sensor<br />

Graph <strong>of</strong> Vo vs Tc<br />

12 Graph <strong>of</strong> Vo vs 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 53<br />

13 Functional diagram <strong>of</strong> the HEF4066BP .................................... 55<br />

14 The connection <strong>of</strong> HEF4066 <strong>an</strong>d MC68HC11 outputs .................. 55<br />

15<br />

32<br />

39<br />

41<br />

45<br />

46<br />

47<br />

48<br />

50<br />

50


15<br />

16<br />

Block diagram <strong>of</strong> the battery pack voltage level monitoring system ..... .<br />

The voltage divider circuit<br />

17 Complete circuit diagram <strong>of</strong> the battery pack voltage<br />

level monitoring system .......... .................. '" ... . .. . .. . .. . . . . .. . .. . ... . 59<br />

18 Flowchart <strong>of</strong> the main program <strong>of</strong> the temperature controlling system<br />

<strong>an</strong>d the battery voltage level monitoring system 60<br />

19 Flowchart <strong>of</strong> the microcontroller control program for APCS ................. 62<br />

20 Flowchart <strong>of</strong> the microcontroller-monitoring program for<br />

the battery pack voltage level monitoring system . . ..... . . . . . . . . . .. . . . . 67<br />

21 Schematic PCB diagram <strong>of</strong> the control circuit for APCS ................... 76<br />

22 The output DC voltage <strong>of</strong> the current-to-voltage converter at 260 c 78<br />

23 The output DC voltage <strong>of</strong> the current-to-voltage converter at 28 a C 79<br />

24 Capacitor filter operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 81<br />

25 Graph <strong>of</strong> battery voltage input vs voltage divider .. .. . .. ... . .. . .. ...... . .. 83<br />

26 Graph <strong>of</strong> battery voltage display vs voltage divider . .. ... .... . .. . .. ... 84<br />

27 Graph comparing the battery voltage display to the battery voltage input 85<br />

28 First simulation <strong>of</strong> the signal condition circuit (SCC) . . . . . . . . . . . . . . . . . . . . 87<br />

29 Second simulation <strong>of</strong> the signal condition circuit (SCC) ... ........ ..... 88<br />

30<br />

31<br />

Third simulation <strong>of</strong> the signal condition circuit (SCC)<br />

Voltage divider simulation at battery voltage 130V<br />

56<br />

57<br />

.................... 89<br />

........................ 90<br />

32 Voltage divider simulation at battery voltage 65V ........................ 91<br />

16


LIST OF PLATES<br />

Plate Page<br />

1 Temperature display using lCL 71 07 AID converter . . .. . .. . .. . .. . .. . .. . .. .. 49<br />

2 The complete circuit for the AFCS . . . . .... . .. ... .. . . . ... . . . . ... .. . .. . .. . . . .. . . .. 56<br />

3 Photograph <strong>of</strong> the battery pack voltage level monitoring system .... ........ 58<br />

4 NMlX-0020 evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71<br />

5 The prototype <strong>of</strong> the APCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . . . . . . . . . . . . . . .. 86<br />

6 The prototype <strong>of</strong> the AFCS <strong>an</strong>d the battery voltage monitoring system . . . . . . 86<br />

17


AFCS<br />

ADCTL<br />

AS 11<br />

ADC<br />

ABS<br />

BUFFALO<br />

CPU<br />

DDR<br />

EMS<br />

EV<br />

EVB<br />

EROM<br />

ECU<br />

HCMOS<br />

IEMS<br />

10<br />

ICEV<br />

LCD<br />

LED<br />

MCU<br />

LIST OF SYMBOLS AND ABBREVIATIONS<br />

Automatic F<strong>an</strong> Control System<br />

Control-Status Register<br />

Assembler Program<br />

Analog-to-Digital Converter<br />

Antilock Braking System<br />

Bit User Fast Friendly Aid to Logical Operation<br />

Central Processing Unit<br />

Data Direction Registers.<br />

Energy M<strong>an</strong>agement System<br />

Electric Vehicle<br />

Evaluation Board<br />

Erasable Read-Only Memory<br />

Electronic Control Unit<br />

High-Density Complementary Metal-oxide Semiconductor<br />

Intelligent Energy M<strong>an</strong>agement System<br />

Output Current <strong>of</strong> the Temperature Tr<strong>an</strong>sducer<br />

Internal Combustion Engine Vehicle<br />

Liquid Crystal Display<br />

Light Emitting Diode<br />

Microcontroller Unit<br />

18


RAM R<strong>an</strong>dom-Access Memory<br />

ROM Read-Only Memory<br />

Rf Feedback Resistor<br />

R Current Limiting Resistor<br />

SI9 Assembling File<br />

SCC Signal Conditioning Circuit<br />

SCI Serial Communications Interface<br />

SPI Serial Peripheral Interface<br />

Vo Output Voltage <strong>of</strong> the Converter<br />

VI DC Voltage<br />

Vc Capacitor Voltage<br />

Vm Peak Rectifier Voltage<br />

19


CHAPTER I<br />

INTRODUCTION<br />

A microcontroller performs various functions in automobiles <strong>an</strong>d it c<strong>an</strong> be found in<br />

the heart <strong>of</strong> almost <strong>an</strong>y Electronic Control Unit (ECU) in use today. At least one<br />

microcontroller within the ECU is used to control the <strong>an</strong>tilock braking system (ABS),<br />

engine perform<strong>an</strong>ce, navigation, temperature, <strong>an</strong>d <strong>vehicle</strong> dynamics. Underst<strong>an</strong>ding the<br />

various features <strong>an</strong>d <strong>of</strong>ferings <strong>of</strong> microcontrollers that are available in the market today<br />

is import<strong>an</strong>t when making a selection for <strong>an</strong> application (Derato, 1994).<br />

The <strong>electric</strong> <strong>vehicle</strong> is one automobile, which uses microcontrollers to monitor <strong>an</strong>d<br />

control all its subsystems. Variables like temperature, speed, current, <strong>an</strong>d voltage which<br />

are basic to the <strong>vehicle</strong>s operation are measured with tr<strong>an</strong>sducers that convert operating<br />

condition measurements to <strong>an</strong>alog signals. These signals are then digitized <strong>an</strong>d relayed<br />

to the microcontroller. It evaluates the subsystem signals <strong>an</strong>d accordingly sends out<br />

control signals.<br />

20


Temperature Control in Passenger Cabins<br />

The microcontroller in <strong>electric</strong> <strong>vehicle</strong>s is <strong>an</strong> intelligent system, which c<strong>an</strong> monitor<br />

various operations at a high speed obtaining optimum results, <strong>an</strong>d c<strong>an</strong> also perform<br />

multifunction simult<strong>an</strong>eously. The controlling <strong>of</strong> temperature in passenger cabins is a<br />

new area that c<strong>an</strong> be added to the microcontroller's previous uses. This temperature<br />

control will protect the windscreen from damage <strong>an</strong>d prevent deformation <strong>of</strong> plastic­<br />

based instrumentation in the <strong>vehicle</strong>, in addition to prevent poor ventilation when the<br />

<strong>vehicle</strong> is parked in open space during the day<br />

Temperature control c<strong>an</strong> also be used in Gasoline Vehicles, but its primary use<br />

will be for <strong>electric</strong> <strong>vehicle</strong>s, the <strong>vehicle</strong> <strong>of</strong> the next millenium. Most adv<strong>an</strong>ced <strong>electric</strong><br />

<strong>vehicle</strong>s use microcontrollers <strong>an</strong>d adv<strong>an</strong>tages include eliminating emissions from the car<br />

thus protecting the environment, eradicating oil stains that run <strong>of</strong>f <strong>an</strong>d pollute<br />

watersheds, removing the necessity <strong>of</strong> having tune-ups, no more requiring messy oil<br />

ch<strong>an</strong>ges, or need for cool<strong>an</strong>ts (Suggs, 1994).<br />

Battery Pack Voltage Level Monitoring System<br />

The battery is the heart <strong>of</strong> the <strong>electric</strong> <strong>vehicle</strong> <strong>an</strong>d the monitoring <strong>of</strong> the battery<br />

pack voltage level in the dashboard is the key to the operation <strong>of</strong> the <strong>vehicle</strong>. The driver<br />

c<strong>an</strong> monitor the status <strong>of</strong> the battery voltage level by observing the voltage indicator in<br />

the dashboard <strong>an</strong>d thus knows when it is time to charge the battery again.<br />

21


Objective <strong>of</strong> the Project<br />

Objective <strong>of</strong> this project is to design, construct <strong>an</strong>d test the microcontroller-based<br />

temperature control <strong>an</strong>d battery pack voltage level monitoring systems in <strong>electric</strong><br />

<strong>vehicle</strong>s.<br />

Temperature control system is used as mentioned before to protect the windscreen<br />

from damage <strong>an</strong>d prevent deformation <strong>of</strong> plastic-based instrumentation used in the<br />

<strong>vehicle</strong>, in addition to preventing poor ventilation when the <strong>vehicle</strong> is parked in open<br />

space during the day. The monitoring <strong>of</strong> the battery pack voltage level in the dashboard<br />

is essential to prevent the battery from being totally discharged.<br />

The temperature controller <strong>an</strong>d the battery voltage monitor consist <strong>of</strong> both hardware<br />

<strong>an</strong>d s<strong>of</strong>tware. The hardware <strong>of</strong> the temperature controller includes <strong>an</strong>alog interfacing<br />

(temperature sensor <strong>an</strong>d signal conditioning circuit) <strong>an</strong>d digital interfacing. The<br />

hardware <strong>of</strong> the battery voltage monitor includes the <strong>an</strong>alog interfacing (voltage divider)<br />

<strong>an</strong>d output display using LEDs.<br />

With respect to s<strong>of</strong>tware, Assembly l<strong>an</strong>guage is used for controlling temperature<br />

<strong>an</strong>d monitoring battery voltage.<br />

22


Layout <strong>of</strong> the Thesis<br />

The thesis is divided into five chapters. Chapter I outlines the introduction <strong>an</strong>d the<br />

objectives <strong>of</strong> the project. The second chapter summarizes the literature review. Whilst<br />

Chapter III presents the methodology. The results <strong>an</strong>d discussions are presented in<br />

Chapter N. Finally, Chapter V, general conclusions <strong>of</strong> the research work are drawn<br />

<strong>an</strong>d recommendations on areas for future study are also made.<br />

23


CHAPTER II<br />

LITERATURE REVIEW<br />

History <strong>of</strong> Electric Vehicles<br />

Early <strong>electric</strong> <strong>vehicle</strong>s may have appeared as early as 1830. Histori<strong>an</strong>s generally<br />

credit lK. Starley, <strong>an</strong> English inventor, <strong>an</strong>d Fred M. Kimball <strong>of</strong> Boston, Massachusetts,<br />

for building the fIrst practical <strong>electric</strong> car in 1888. In 1896, the Woods Motor Vehicle<br />

Comp<strong>an</strong>y <strong>of</strong> Chicago became the fIrst Americ<strong>an</strong> m<strong>an</strong>ufacturer.<br />

By 1904, about one-third <strong>of</strong> all the cars in the cities <strong>of</strong> New York, Chicago, <strong>an</strong>d<br />

Boston were <strong>electric</strong>ally powered. By 1912, there were 20,000 <strong>electric</strong> cars <strong>an</strong>d 10,000<br />

<strong>electric</strong> trucks <strong>an</strong>d buses in the United States. A h<strong>an</strong>dful <strong>of</strong> m<strong>an</strong>ufacturers, notably<br />

Baker <strong>an</strong>d Detroit Electric, lingered into the 1930s. A few devotees continued to drive<br />

<strong>electric</strong> cars well into the 1940s. A h<strong>an</strong>dful <strong>of</strong> small m<strong>an</strong>ufacturers reappeared fIrst in<br />

the 1960s in response to environmental concerns <strong>an</strong>d then again in the 1970s, in the<br />

aftermath <strong>of</strong> the oil shortages that had been faced. More recently, in 1996, General<br />

Motors Corporation <strong>an</strong>nounced the fIrst modem, mass-produced car designed<br />

specifIcally as <strong>an</strong> <strong>electric</strong> car.<br />

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!