03.08.2013 Views

Low Carbon Footprint Electric Lawn Mower

Low Carbon Footprint Electric Lawn Mower

Low Carbon Footprint Electric Lawn Mower

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.

<strong>Low</strong> <strong>Carbon</strong> <strong>Footprint</strong> <strong>Electric</strong> <strong>Lawn</strong> <strong>Mower</strong><br />

Final Report<br />

Kraig Kamp<br />

David Sharpe<br />

Jamin Williams<br />

Advisors:<br />

Dr. Huggins<br />

Mr. Gutschlag<br />

May 16, 2008


Abstract<br />

Environmental air pollution and carbon emissions are becoming significant<br />

problems. A contributor to this pollution is the use of gasoline-powered lawn mowers.<br />

Our overall project goal is to design a battery powered lawn mower and photovoltaic<br />

charging system that will diminish emissions. The project consists of two separate<br />

systems: a battery-powered lawn mower and a photovoltaic system to charge the battery.<br />

The mower will use a microcontroller to control the speed of the cutting blade and<br />

display the charge status of the battery. The charger will use the UC3909 battery<br />

charging chip to control the charging algorithm for the battery. The system will be<br />

designed to be competitive in function and cost versus benefits with gasoline powered<br />

lawn mowers.<br />

2


Table of Contents<br />

I. Introduction 4<br />

II. Functional Description and Block Diagrams 4-7<br />

a. <strong>Mower</strong> Functional Description 4<br />

b. Charger Functional Description 5<br />

III. Functional Specifications and System Requirements 8-10<br />

a. <strong>Mower</strong> Specifications 8<br />

b. Charger Specifications 10<br />

IV. Design and Analysis 11-29<br />

a. Battery 11<br />

b. DC Motor Modeling 12<br />

c. Snubber Circuit 15<br />

d. Heat Sink 16<br />

e. PSPICE Simulation 18<br />

f. <strong>Mower</strong> System Circuit 20<br />

g. Solar Panel Calculations 21<br />

h. Charging Algorithm 22<br />

i. Buck Converter 24<br />

j. UC3909 Equations 26<br />

k. Measuring State of Charge 28<br />

l. Measuring Battery Voltage 28<br />

m. Determining Throttle setting 29<br />

V. Implementation and Results 30<br />

VI. Recommendations for Future Work 31<br />

VII. Applicable Standards and Patents 33<br />

VIII. Equipment List 36<br />

IX. Bill of Materials 36<br />

X. References 37<br />

Appendix A: UC3909 Design Equations 38-44<br />

Appendix B: Charger Circuit Components 45-47<br />

Appendix C: Software Flowcharts 48-55<br />

3


I. Introduction<br />

This report describes the design, implementation and testing of the <strong>Low</strong> <strong>Carbon</strong><br />

<strong>Footprint</strong> <strong>Electric</strong> <strong>Lawn</strong> <strong>Mower</strong>. A top down design approach is followed with<br />

functionality first described at the system level including detailed block diagram is<br />

developed. Next the design equations are discussed to illustrate more specifically each<br />

part of the system, followed by simulations, and final system testing. The report<br />

concludes with a parts list, references and final conclusions.<br />

II. Functional Description and Block Diagrams<br />

The low carbon footprint electric lawn mower consists of two separate systems: a<br />

mower block and a charger block, which are shown in figs. 1 and 2. The lawn mower is<br />

powered using batteries, and the charger uses a photovoltaic array to recharge the battery.<br />

A. <strong>Mower</strong> Functional Description<br />

The main components of the mower, as seen in Fig. 1, are a dc motor, a battery, a<br />

controller, and a user interface. The user interface consists of a power switch, a throttle<br />

to control the speed of the mower blade, and a safety switch to start and stop the motor.<br />

The user interface also consists of a display. The lawn mower uses a 24V DC motor that<br />

is powered by two 12V lead-acid batteries. The motor shaft speed is controlled by a<br />

microcontroller, which accepts inputs from the user. A PWM signal from the<br />

microcontroller is applied to the gate driver which then drives power MOSFETS and<br />

controls the average voltage applied to the motor. Detail specifications for the motor and<br />

batteries are given in Section III.<br />

Figure 2 shows the overall software flowchart for the lawn mower system.<br />

Additional flowcharts for each software module are listed in Appendix C. The main<br />

purpose of the software is to control motor speed and to turn the motor on or off. To<br />

control the motor speed, the software converts a voltage measurement from a<br />

potentiometer into a PWM signal. This signal is sent to the motor driver circuitry to<br />

change the speed of the motor. The user must engage the safety switch in order to turn<br />

the motor on. If the switch is disengaged, the software turns the motor off.<br />

The software also handles other tasks. It determines the state-of-charge (SOC) of<br />

the battery by utilizing a method known as current counting and uses the SOC to protect<br />

the battery from being over-discharged. The software prevents the system from drawing<br />

too much current by measuring current via a current shunt. An LCD display is controlled<br />

by the software as well. The display provides information about the system to the user<br />

such as SOC and terminal voltage of the battery, the throttle setting, and the current that<br />

is flowing through the motor.<br />

4


B. Charger Functional Description<br />

The charger system, shown in fig. 3, consists of a solar panel which supplies<br />

electric power to the charger circuitry which then charges the batteries. The system is<br />

designed so that the solar charger can fully charge two completely discharged batteries in<br />

at least 5 days. The charger circuit is controlled by the UC3909 charge controller chip.<br />

This chip monitors battery voltage and charge current. It varies both voltage and current<br />

according to the state of charge of the battery based on the standard charge algorithm<br />

sequence for lead acid batteries. This allows for trickle charge, bulk charge, over charge,<br />

and float charge as needed to maximize battery life.<br />

Fig. 1 – <strong>Mower</strong> Block Diagram<br />

5


Fig.2 Overall Software Flowchart<br />

6


Input Voltage<br />

Regulation<br />

LM7815<br />

Charger Controller<br />

UC3909<br />

15 VDC<br />

Solar<br />

Energy<br />

5V<br />

PWM<br />

Fig.3 Solar Charger Block Diagram<br />

Voltage/Current<br />

Feedback<br />

Sunlight<br />

Solar Panel<br />

Gate Driver<br />

TC4424<br />

15V<br />

PWM<br />

Solar<br />

Energy<br />

Buck Converter<br />

IRF640<br />

Batteries<br />

DC V/I<br />

(Higher Current)<br />

DCM0035<br />

Charged in Parallel<br />

7


III. Functional Specifications and Requirements<br />

Section II presented a qualitative discussion of general functionality of the mower<br />

and solar charger systems. In this section, the various subsystems are described in more<br />

detailed including quantitative specifications and functional requirements.<br />

A. <strong>Mower</strong> Specifications<br />

The lawnmower is a push-type mower with an electric motor rotating an 18 inch<br />

blade to remove 1 ½ to 2 in. off the height of average density grass at a walking speed of<br />

approximately 2.66 ft/s. The mower weighs no more than 90 lbs. The motor is powered<br />

by batteries with enough capacity to mow a 10,000 sq. ft lawn in one hour. The mower<br />

has a power button to power up the controls on the handle and a separate start button to<br />

start the electric motor. The circuitry includes over current protection along with a safety<br />

switch that must be held down in order to keep the motor running. The batteries that<br />

power the mower can be removed from the mower deck but is not necessary while being<br />

recharged.<br />

Battery: The battery power needed for our application is provided by two 12 volt<br />

batteries connected in a series to make 24 volts. The capacity of each battery is 35 Amp-<br />

Hours (AH) so that the mower has enough power to mow a 10,000 sq. ft. yard in one<br />

hour. The chemistry make-up of the battery is deep discharge sealed lead acid with a<br />

combined weight of approximately 50 lbs.<br />

DC Voltage Regulators: The DC voltage regulators convert the variable battery voltage<br />

(12-24V) to either 5V or 15V. The 5V regulator is used to power the microprocessor<br />

and display and the 15V voltage regulator is used with the gate driver.<br />

Controller: The controller is used to start and stop the motor, control the speed of the<br />

motor, and control the display. The controller utilizes open-loop methods with a throttle<br />

control so the user can set the speed of the motor shaft. The signal that is output to the<br />

MOSFET’s is a PWM signal with a frequency of 4 kHz. The controller also monitors the<br />

current draw of the motor for over-current protection. The maximum continuous current<br />

is 40A for 5 seconds.<br />

User Inputs: The user inputs consist of a power button to turn the controller on/off, a<br />

start button to start the mower. This button also acts as a safety switch and must be held<br />

down in order to keep the blade rotating. A throttle control to vary the speed of the<br />

mower blade is also an input.<br />

8


Display: The Optrex 24X2 LCD is the operating display, which is shown in Fig. 4. The<br />

display has a battery symbol indicating the charge left on the battery and a speed bar<br />

graphic to show the user the relative RPM at which the blade is rotating. In addition, the<br />

display also shows the terminal voltage of the batteries and the current flowing through<br />

the motor.<br />

Fig. 4 LCD Operating Display<br />

Power MOSFETS: The MOSFETS used to drive the motor are two HEXFET IRF044N<br />

power MOSFETs wired together in a parallel configuration. The gate of the MOSFET<br />

receives a PWM input signal at a frequency of 4 kHz. The MOSFETs are protected with<br />

a snubber circuit that keeps voltages under the V ds rating of 55V.<br />

Heat Sinks: Two Wakefield 657-15AEPN heat sinks are attached to the MOSFETs and<br />

one Wakefield 287-1ABE heat sink is attached to the free wheeling diode in the snubber<br />

circuit. These heat sinks maintain safe thermal operating temperatures for these<br />

components.<br />

Gate driver chip: The TC4424 takes a 0-5 Volt signal from the microcontroller and<br />

outputs a 0-15 Volt PWM signal to drive the gate of the MOSFET at a switching rate of 4<br />

kHz.<br />

Motor: The motor rotating the blade is the Tecumseh 90000A permanent magnet<br />

reversible motor with an input voltage of 24 VDC and generates 1.54 HP at 3200 RPM.<br />

These specifications provide the power to rotate an 18 inch blade at a sufficient velocity<br />

to cut 1 ½ to 2 inches off the top of average density grass.<br />

Over current Protection: A 40 amp circuit breaker is used for over current protection on<br />

the battery for testing and a 30 amp inline fuse is placed between the positive terminal of<br />

the battery and the positive terminal of the Tecumseh 90000A DC motor.<br />

Disconnect Switch: A disconnect switch is essential in the circuitry. In the case that a<br />

MOSFET fails while mowing and acts as a short circuit, the motor still runs and cannot<br />

be turned off by normal procedures. This manual disconnect switch is mounted by the<br />

handle and breaks the circuit so the blade stops spinning.<br />

9


B. Charger Specifications<br />

The charger uses energy collected by a solar panel and directly transfers the<br />

energy to the battery. The system charges a maximum of two 12 Volt batteries at one<br />

time, wired in a parallel configuration. The charger needs 5 days at 530 kJ/day of solar<br />

energy to charge the two batteries to full capacity. The charger utilizes the Texas<br />

Instruments UC3909 lead-acid battery charger chip to control the charging process.<br />

15V Voltage Regulator: The DC regulator for charger electronics regulates the DC<br />

power input from the solar panel. This regulator powers the UC3909 and the buck<br />

converter gate drive chip<br />

Gate driver chip: The Charger system utilizes the same gate drive chip as mentioned in<br />

the <strong>Mower</strong> specifications because it is a dual input chip. The gate driver takes the PWM<br />

input from the UC3909 and converts it to 15V for the gate of the buck converter<br />

MOSFET.<br />

Solar Power: The solar power is collected with a BP350 50W panel with an open-circuit<br />

voltage of 21.8 V and a short circuit current of 3.17 A. The panel can collect at least 530<br />

kJ of energy per day to charge the two fully discharge 12V batteries to maximum<br />

capacity in 5 days.<br />

Charger Chip: The Solar Charger System is controlled by the UC3909 Switch mode<br />

lead acid battery charger chip. This chip is used in conjunction with the buck converter<br />

in the charger circuit. This method and the charge algorithm is further discussed in<br />

section IV, part G.<br />

Buck Converter: Because the charger controller chip uses a PWM signal to vary<br />

voltage and current applied to the batteries, a buck converter is necessary to ensure that<br />

voltage and current is constant even though the input is switching. This is further<br />

discussed in Section IV, part H.<br />

Batteries: The battery block consists of two 12V, 35 AH batteries, as discussed in the<br />

lawnmower subsystem breakdown but is wired in parallel for charging.<br />

10


IV. Design and Analysis<br />

Section III talked about the detailed subsystems of the mower and charger. This next<br />

section describes the design and analysis of several subsystems and how they were<br />

implemented into the project.<br />

A. Battery<br />

To meet the specification of mowing a 10,000 square foot yard in 1 hour, the<br />

batteries must be able to power the motor at full speed for the entire time. To size the<br />

batteries appropriately, tests were carried out. This testing revealed that the average<br />

running current of the mower system was approximately 18A. According to Fig. 5, at a<br />

discharge rate of about 20A, a 35Ahr battery will last about an hour. After that, the<br />

terminal voltage drops off abruptly, indicating a fully discharged battery.<br />

It is important to note that because the mower uses a 24V DC motor, it is<br />

necessary to use two 12V batteries in series, to obtain this voltage. Because the batteries<br />

are in series, the current through them will be the same, thus both batteries must have the<br />

35Ah (18Ah @ 20A rate) capacity rating to provide enough energy.<br />

Fig. 5 – 12V, 35Ahr Lead Acid Battery Discharge Characteristics<br />

11


B. DC Motor Modeling<br />

In order to draw a schematic of the power electronics and the Tecumseh 90000A<br />

in PSPICE, certain motor parameters must be determined. These parameters are the<br />

resistance in the windings, the motor torque constant, the viscous and static friction<br />

coefficients, and the mass moment of inertia. These mechanical parameters can be<br />

simulated as electrical circuits in PSPICE as shown in Fig. 8.<br />

The mass moment of inertia is modeled as an inductance in the model and the<br />

friction coefficients are modeled as a resistance. Torque can be modeled as a currentdependent<br />

voltage source. It is proportional to the current flowing through the motor.<br />

The following are steps taken to measure these parameters:<br />

1. Measure R a which represents the resistance in the windings<br />

To do this, a voltage ( V s ) is applied that is low enough such that the shaft of the motor<br />

does not spin, so as not to introduce the back EMF Voltage created by the motor. A<br />

current probe is used to measure the current and then Ra is determined from Ohm’s law.<br />

Fig. 6 Schematic used to find a R<br />

V<br />

R a =<br />

I<br />

s<br />

a<br />

Eqn. 1<br />

2. Find the motor constant K E = K t<br />

The input voltage in Fig. 6 is set to ½ of the rate input voltage of the motor ( V s =12 V)<br />

and I a is measured, then the speed of the motor shaft in radians/second is also measured.<br />

V<br />

K e = K t =<br />

s<br />

− I<br />

ω<br />

s<br />

a<br />

R<br />

a<br />

Eqn. 2<br />

12


3. Find the static friction coefficient, T S.F<br />

. and the viscous friction coefficient b.<br />

V s is first set to 8 volts and then 16 volts and ω s and I a are measured at each voltage.<br />

Then, the following equation is used to find both unknowns.<br />

T T − bω<br />

= K I −T<br />

− bω<br />

= 0<br />

developed − S.<br />

F.<br />

s T a S.<br />

F.<br />

s<br />

Eqn. 3<br />

4. Find the mass moment of inertia, J.<br />

This is accomplished with a coast down test by driving the motor at 24 volts. Once the<br />

shaft is up to speed the power is shut off and the motor voltage decay is captured with the<br />

oscilloscope:<br />

25<br />

20<br />

15<br />

10<br />

5<br />

0<br />

-5<br />

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1<br />

Fig. 7 Motor Coast curve averaged in MATLAB<br />

Voltage is on the y-axis and time is represented on the x-axis. Using this plot‘t’ is<br />

found ,which is the time the motor took to coast down from 24 volts to 0 volts. By the<br />

graph above t=.847 seconds. Using the next equations, the final parameter, J is<br />

determined.<br />

⎡ V<br />

ω(<br />

t)<br />

= ⎢<br />

⎣ Kt<br />

T<br />

+<br />

b<br />

S.<br />

F.<br />

⎤<br />

⎥e<br />

⎦<br />

−t<br />

τ<br />

Eqn. 4a<br />

13


Setting ω ( t)<br />

= 0 , τ can be found which will be used to find J. J = b * τ Eqn. 4b<br />

(Note: this can be checked at any speed, find V at any speed and set ω (t)<br />

= to that<br />

particular speed and the right side of the equation should approximately equal ω (t).<br />

)<br />

Using the four steps above the following values were measured and used to implement in<br />

the PSICE model shown in Fig. 8.<br />

R<br />

K<br />

T<br />

b = R<br />

J = L<br />

L<br />

a<br />

t<br />

S.<br />

F .<br />

M<br />

= R<br />

B<br />

J<br />

M<br />

N * m<br />

= K e = 0.<br />

068723<br />

A<br />

= 0.<br />

272504N<br />

* m<br />

N * m<br />

= 0.<br />

000535<br />

rad / sec<br />

= 0.<br />

000912kg<br />

* m<br />

= 153µ<br />

H<br />

= . 0825Ω<br />

Here, LM is inductance of the motor terminals measured with an LRC meter.<br />

Fig. 8 PSPICE DC Motor Model (www.ecircuitcenter.com)<br />

14


C. Snubber Circuit<br />

As stated earlier, a snubber circuit is required to protect the MOSFETs from being<br />

damaged when large currents could flow into the drain. This is a problem because the<br />

maximum voltage from the drain to source cannot exceed 55V for the MOSFETs. Diode<br />

1 on the left side of the circuit turns on and lets the current flow through it when the<br />

MOSFET switches off. The circuitry on the right side of the circuit essentially gives<br />

Diode1 time to turn on all the way and accommodate the high currents. Below is a<br />

schematic of the snubber circuit<br />

To positve terminal of<br />

the motor<br />

Fig 9 Snubber Circuit<br />

D1<br />

To negative terminal of<br />

the motor<br />

To Drain on the<br />

MOSFET<br />

Rs<br />

D2<br />

To Source on the<br />

MOSFET<br />

Cs<br />

In order to obtain values for R s and Cs the following constraints need to be taken<br />

into consideration. First, Rs should be small enough so that the largest current that could<br />

be flowing through the motor multiplied by Rs will not exceed the Vds rating of 55 volts.<br />

Therefore, approximately 400 amps is the greatest amount of current flowing though the<br />

motor according to simulations so,<br />

V=I*R<br />

55V = 400*R Eqn. 5<br />

R=.135 ohms.<br />

15


In addition, Cs is determined using Eqn. 6 as follows.<br />

C<br />

s<br />

I Do * t f<br />

= Eqn. 6<br />

12 * V<br />

off<br />

Where I Do is the max current of 400 amps, t f is the switching frequency of the<br />

MOSFETs (4 kHz), and<br />

V off = s D on V V 1<br />

+ or 24 V+.4512 V=24.4512V. Eqn. 7<br />

(Note: VD1 is the voltage drop across the diode)<br />

on<br />

D. Heat Sink<br />

While making initial tests in the motor driver circuit it was noticed that the<br />

IRFP044N power MOSFETS were becoming extremely hot. Looking into the problem<br />

these calculations were made to find out the junction temperature of the MOSFETS.<br />

Using the IRFP044N data sheets the following data was obtained.<br />

V<br />

R<br />

I<br />

R<br />

R<br />

R<br />

DSS<br />

DS ( on)<br />

D<br />

θ JC<br />

ϑCS<br />

θJA<br />

= 55V<br />

= 55A<br />

= 0.<br />

020Ω<br />

° C<br />

= 1.<br />

3<br />

W<br />

° C<br />

= 0.<br />

24<br />

W<br />

° C<br />

= 40<br />

W<br />

Also, datasheet supplies a Normalized On-Resistance Chart at a junction<br />

temperature of 100 ° C which yields R = 1.<br />

5Ω<br />

. This is normalized so this value needs<br />

DS (on)<br />

to be multiplied by the R DS (on)<br />

of 0.020 Ω to get .03 Ω .<br />

Next, the power dissipation needs to be calculated, and the average drain current<br />

must be known. The mower system will have a worst case scenario of 40 amps flowing<br />

through the drain at normal operating procedures and since there are 2 MOSFETS in<br />

parallel the current will be evenly distributed through the both of them. So the drain<br />

current is 20 Amps, therefore:<br />

PD D DS ( on)<br />

2<br />

2<br />

= I * R = 20 * 0.<br />

3 = 12W<br />

Eqn. 8<br />

16


Now the junction temperature is:<br />

TJ D JA A<br />

= P Rθ<br />

+ T = 12*<br />

40 + 37.<br />

7 = 517.<br />

7°<br />

C<br />

Eqn. 9<br />

Note: T A was chosen by the design team to be 37.7 ° C .<br />

517.7 ° C is not an acceptable temperature for the IRFP044N power MOSFET, so a heat<br />

sink is needed. Using a heat sink:<br />

T +<br />

J = PD<br />

Rθ<br />

T TA<br />

where Rθ T RθJC<br />

+ RθCS<br />

+ RθSA<br />

= Eqn. 10<br />

Rθ SA can be found by using the natural convection characteristic chart of a specified heat<br />

sink found on the data sheets. The heat sink chosen for this application is the Wakefield<br />

657-15ABEP and at a power dissipation of 12 W the heat sink temperature rise above<br />

ambient is about 58 ° C which yields:<br />

∆TSA<br />

58°<br />

C ° C<br />

Rθ<br />

SA = = = 4.<br />

83<br />

Eqn. 11<br />

P 12W<br />

W<br />

D<br />

° C<br />

θ = 1.<br />

3 + 0.<br />

24 + 4.<br />

83 = 6.<br />

37<br />

Eqn. 12<br />

W<br />

R T<br />

So now the new junction temperature can be calculated<br />

T J<br />

= 12 * 6.<br />

37 + 37.<br />

7 = 114.<br />

14°<br />

C . Eqn. 13<br />

114.14° C is within the 175° C maximum operating junction temperature of the<br />

IRFP044N power MOSFET.<br />

17


E. PSPICE Simulation<br />

Having determined the electrical and mechanical properties of the motor as well<br />

as the components of the snubber circuit, a mower simulation circuit can be developed.<br />

The following circuit diagram is drawn in PSPICE to simulate the basic operating<br />

conditions of the mower motor control system.<br />

24Vdc<br />

+<br />

V2<br />

Motor <strong>Electric</strong>al Model<br />

D4<br />

MUR405<br />

V1 = 0<br />

V2 = 15<br />

TD = 0<br />

TR = 10n<br />

TF = 10n<br />

PW = .0005<br />

PER = .001<br />

PWM<br />

I<br />

FET1<br />

IRFP044N<br />

Drain<br />

Source<br />

-<br />

I<br />

V+<br />

Fig. 10 Motor Model, Snubber Circuit, and MOSFETs Simulation Circuit<br />

FET2<br />

IRFP044N<br />

V-<br />

2<br />

Motor<br />

153uH<br />

1<br />

Ra<br />

.0825<br />

+ -<br />

EMF<br />

H1<br />

R1<br />

.14<br />

D3<br />

OPEN<br />

50Meg<br />

MUR405<br />

C1<br />

8u<br />

Motor Mechanical Model<br />

Torque<br />

H2<br />

+<br />

-<br />

18<br />

0<br />

2<br />

LJ<br />

I<br />

912uH<br />

1<br />

OPEN2<br />

50Meg<br />

RB<br />

.000535


Fig. 11 Simulation Results of Circuit in Fig. 10<br />

The above simulation done in PSPICE shows the voltage and current curves with<br />

respect to the motor shaft speed which is the curve in blue. As seen above the teal curve<br />

represents the current flowing through the motor. At initial start up the inrush current is<br />

around 400 amps and as the shaft approaches top speed the current decreases to about 3<br />

amps. The green curve shows the current through the freewheeling diode 1 in the<br />

snubber circuit. In this particular simulation the current is measured through one of the<br />

MOSFETS instead of measuring it through the two of them so the simulated current is<br />

double of the motor current. The magenta curve shows the voltage with respect to speed<br />

and as shown it stays at a constant 24V. Note that the simulation does not take into<br />

consideration all of the motor losses, so the simulation shows the motor pulling less<br />

current, but the simulation shaft speed was almost the same as the experimental.<br />

19


F. <strong>Mower</strong> System Circuit<br />

After simulations and software programming the mower system circuit was<br />

implemented. The system schematic is shown in Fig. 12 below.<br />

3<br />

Vcont<br />

2<br />

VCC<br />

5<br />

R/W<br />

7<br />

D0 LCD<br />

8<br />

D1<br />

9<br />

D2<br />

10<br />

D3<br />

GND<br />

1<br />

4<br />

RS<br />

6<br />

E<br />

14<br />

D7<br />

13<br />

D6<br />

D5 12<br />

D4 11<br />

Safety<br />

Switch<br />

1<br />

2<br />

3<br />

28<br />

PC6<br />

PC5<br />

27<br />

PD0<br />

PC4<br />

26<br />

PD1<br />

PC3<br />

4<br />

PD2<br />

25<br />

PC2<br />

5<br />

PD3<br />

24<br />

PC1<br />

6<br />

PD4<br />

23<br />

PC0<br />

7<br />

VCC<br />

22<br />

GND<br />

8<br />

GND<br />

21<br />

AREF<br />

9<br />

PB6<br />

AVCC 20<br />

10<br />

PB7<br />

PB5<br />

11<br />

PD5<br />

18<br />

PB4<br />

12<br />

PD6<br />

17<br />

PB3<br />

13<br />

PD7<br />

16<br />

PB2<br />

14<br />

PB0<br />

15<br />

PB1<br />

19<br />

Atmega<br />

168<br />

Fig. 12 <strong>Mower</strong> System Circuit Diagram<br />

12V 12V<br />

24V<br />

Batteries<br />

1kΩ<br />

10kΩ<br />

220u/50V<br />

1kΩ<br />

217Ω<br />

.33u<br />

7805<br />

I G O<br />

From UC3909<br />

Stat 0<br />

From UC3909<br />

Stat 1<br />

7815<br />

I G O<br />

.33u<br />

1<br />

NC<br />

2<br />

In A<br />

3<br />

GND<br />

4<br />

In B<br />

.1Ω<br />

IRFP044N<br />

.68u<br />

.68u<br />

5<br />

NC<br />

6<br />

Out A<br />

7<br />

VCC<br />

8<br />

Out B<br />

.005Ω 5W<br />

The mower circuit above contains all of the circuitry used to power and control<br />

the mower system. The controller (Atmega 168) software flowcharts are further<br />

discussed in Appendix C. The circuit also references the UC3909, which is discussed in<br />

part I of this section.<br />

20<br />

M<br />

STPS20120D<br />

IRFP044N<br />

STPS20120D


G. Solar Panel Calculations<br />

The charger system is powered by a photovoltaic panel. This component is the<br />

most expensive part of the entire project, so the smallest size that can charge the batteries<br />

in 5 days must be used. The solar panel must be able to supply enough voltage and<br />

current to charge the two 12V batteries, as well as collect enough energy in 5 days to do<br />

this. A 50W solar panel, the BP350, was the most appropriate solar panel to meet the<br />

requirements. It is important to note that in the solar charger system, the batteries are<br />

charged in parallel, so that they can be charged at 12V, because to charge at 24V, it<br />

would require a much larger solar panel. The solar panel is selected based on the<br />

minimum solar energy the U.S receives in places that can still grow grass. According to<br />

Fig. 13 from the National Renewable Energy Laboratory website, the upper parts of the<br />

country receive the least amount of solar energy, and therefore this number should be<br />

used when calculating the amount of solar energy the panel can collect.<br />

Fig. 13 Minimum Daily Solar Radiation Per Month (NREL.gov)<br />

The efficiency of the BP350 is 10%, which means 10% of the solar radiation<br />

energy incident on the panel collected is converted to electric energy. Taking into<br />

account this efficiency combined with the panel area and minimum radiation of 3.5<br />

KWh/m 2 /day yields the energy collected per day by the panel.<br />

21


2<br />

2⎛<br />

. 092903m<br />

⎞⎛<br />

3.<br />

5KWh<br />

⎞⎛1000W<br />

⎞⎛1J<br />

/ s ⎞⎛<br />

3600s<br />

⎞<br />

ft ⎜<br />

/<br />

2<br />

⎟⎜<br />

⎟<br />

1ft<br />

⎟<br />

⎟⎜<br />

⎟⎜<br />

⎟⎜<br />

⎝ ⎠⎝<br />

m / day ⎠⎝<br />

1KW<br />

⎠⎝<br />

W ⎠⎝<br />

1hr<br />

⎠<br />

4 2<br />

( 10%<br />

) = 0.<br />

4682MJ<br />

day<br />

Eqn. 14<br />

Another important note is that the solar energy the US receives varies monthly<br />

based on the seasons. So given all the above information, a charge time per month chart<br />

was developed.<br />

Table 1 Monthly Battery Charge Times<br />

Month<br />

KW-Hrs/ m 2 /day Solar<br />

Energy Emitted<br />

KJ / day of Solar<br />

Energy Collected<br />

Actual days to<br />

charge 2 - 35AH<br />

batteries<br />

January 2.0 353 8.6<br />

February 3.0 530 5.7<br />

March 4.0 706 4.3<br />

April 4.0 706 4.3<br />

May 5.0 883 3.4<br />

June 5.0 883 3.4<br />

July 5.0 883 3.4<br />

August 5.0 883 3.4<br />

September 4.0 706 4.3<br />

October 3.0 530 5.7<br />

November 2.0 353 8.6<br />

December 1.0 177 17.1<br />

From the data presented in table 1, it is evident that the 50W solar panel works for<br />

this project. During the grass cutting months of March through September, the batteries<br />

can be charged in under 5 days. The winter months have a much higher charge time<br />

because less the US receives less solar energy. This is acceptable because the charger<br />

system only needs to keep a float charge on the batteries while they are not used during<br />

the winter.<br />

H. Charging Algorithm<br />

Now that the solar panel has been selected, it is interfaced with the charger circuit.<br />

But first, some of the basics of charging a lead acid battery must be discussed. Lead acid<br />

batteries are charged in different stages because of the nature of the battery chemistry.<br />

The charging stages can be seen on the following figure taken from the technical paper<br />

by Laszlo Balogh.<br />

22


| Trickle | Bulk | Over | Float |<br />

Fig. 14 Charge Algorithm Voltage and Current Characteristics<br />

1. Trickle Charge<br />

This is the first stage of charging, where the battery is completely discharged.<br />

Here, battery current kept low and constant in order to bring the terminal voltage high<br />

enough to start the next stage of charging.<br />

2. Bulk Charge<br />

This is the high current stage where most of the battery’s charge is returned. Here<br />

battery current is kept constant while terminal voltage gradually increases further until it<br />

reaches the over charge cut off voltage.<br />

3. Over-Charge<br />

This stage is constant voltage stage where the remaining charge is returned to the<br />

battery. The voltage is held a couple volts higher than the rated operating voltage, but<br />

23


only for a short period of time. Again, the charge algorithm is based on the internal<br />

chemistry characteristics of lead acid batteries.<br />

4. Float Charge<br />

This is the final stage of the battery charge algorithm. Once the charger reaches<br />

this stage, the battery is fully charged. This is a constant voltage stage just slightly over<br />

the operating terminal voltage. This stage just maintains the battery so it is ready for use<br />

by charging at the same rate the battery naturally self-discharges.<br />

I. Buck Converter<br />

The charger circuit is controlled by the UC3909 Switchmode lead acid battery<br />

charger chip. The circuit consists of the controller, voltage dividers for voltage and<br />

current, input voltage regulation, and a buck converter to supply constant current and<br />

voltage to the batteries. The controller controls the current and voltage via PWM signal<br />

sent to the buck converter’s MOSFET. The basic concept of a buck convert can be seen<br />

in the following circuit (wikipedia.org):<br />

Fig. 15 Basic Buck Converter Circuit<br />

The red parts of the circuit represent current flow. The switching is done by a<br />

MOSFET that is connected directly to the solar panel. When the switch is on, the source<br />

both supplies power to the load as well as the inductor and capacitor. When the switch is<br />

24


off, the diode conducts to complete the circuit, and the energy stored in the inductor and<br />

capacitor is then supplied to the source. This effectively provides constant current and<br />

voltage even though the source is switching as seen in the next figure (wikipedia.org).<br />

Fig. 16 Buck Converter Characteristics<br />

The figure above illustrates the constant current and voltage. The UC3909 can<br />

control the current and voltage by varying the duty cycle of the switching waveform. A<br />

higher duty cycle means the MOSFET is on longer, thus the average current and voltage<br />

are higher, and the converse is true for a lower duty cycle.<br />

25


J. UC3909 Circuit Equations<br />

Now that the basics of the buck converter operation have been discussed, it is<br />

necessary show how the UC3909 charger circuit works. The controller measures the<br />

battery terminal voltage as well as the current through a current sense resistor. The<br />

controller also must know what voltage and current cutoff points are in order to change to<br />

the next stage of the charging algorithm previously mentioned. It does this by various<br />

resistor and capacitor networks. The formulas for calculating these values and the rest of<br />

the components in the charger circuit are provided in a technical paper published by the<br />

chip’s manufacturer (Balogh). See the UC3909 Battery Charger Appendix A for the<br />

formulas required to design the charger circuit.<br />

All the charger circuit equations are based on the parameters inherent to the<br />

battery. Again, it is important to note that because the batteries are charged in parallel,<br />

the voltage is the same at 12V, but the capacity must be doubled to obtain the correct<br />

charging currents. Using the characteristics of the batteries selected for this project, the<br />

DCM0035 by Interstate, the component values were calculated using the extensive design<br />

equations given in Appendix A. The components are connected as shown to the UC3909<br />

as shown in Fig. 17, which is the complete charger circuit.<br />

26


Fig. 17 UC3909 Charger Circuit<br />

27


K. Measuring State of Charge (SOC)<br />

As discussed in the Functional Description section, the microcontroller on the<br />

mower displays the state of charge of the battery. This requires that the State of Charge<br />

(SOC) be measured. Of all the methods researched, current counting (Zhu), as given in<br />

Eqn. 15, is implemented on mower controller to determine the SOC.<br />

⎛<br />

⎞<br />

= ± ⎜ ∗∫<br />

⎟<br />

⎝<br />

⎠<br />

Idt<br />

1<br />

SOC SOC0<br />

Eqn. 15<br />

Capacity<br />

SOC is the calculated state-of-charge of the battery, SOC0 is the initial state-of-charge of<br />

the battery, Capacity is given by the battery manufacturer, and current (I) is measured.<br />

Current is measured using a current sense resistor. These are typically resistors<br />

that are very small and accurate. A current sense resistor is placed in the ground path of<br />

the circuit and the voltage drop was measured across it. Using a .005Ω resistor made it<br />

possible to omit a conversion step to determine the actual current because the A/D<br />

register was very close to the actual current.<br />

V = I ∗ R<br />

Eqn. 16<br />

sense<br />

sense<br />

V ∗1024<br />

V<br />

Imeasured<br />

sense<br />

= Eqn. 17<br />

Ex.<br />

AREF<br />

I=30A<br />

Rsense=.005Ω<br />

VAREF=5Vdc<br />

Vsense=30*.005=.15 Eqn. 18<br />

Imeasured=30.72<br />

L. Measuring Battery Voltage<br />

The microcontroller on the mower also displays the terminal voltage of the<br />

batteries which requires measurement of the voltage. The maximum voltage of each<br />

battery at full charge is approximately 14Vdc. Since the batteries are in a series<br />

configuration, the maximum total battery voltage is 28Vdc. Since the A/D channels on<br />

the microcontroller can only measure 0-5Vdc, a voltage divider circuit must be used. The<br />

maximum output voltage of the divider circuit needs to be 5Vdc. This corresponds to<br />

28Vdc as well as the maximum value that the A/D register can store (2 10 -1=1023 = 5V<br />

when VAREF=5V).<br />

28


5Vdc<br />

28Vdc<br />

R<br />

R + R<br />

2 = Eqn. 19<br />

1<br />

2<br />

A 1kΩ was selected for R1 to limit current at the microcontroller. This yields a value of<br />

217Ω for R2.<br />

V ∗ 217 2<br />

∗<br />

1000 + 217 V<br />

10<br />

V batt(Register Value) = batt<br />

Eqn. 20<br />

AREF<br />

If Vbatt = 28Vdc and VAREF = 5Vdc, then V batt(Register Value) is1022. V batt(Register Value) is<br />

divided by the actual voltage to determine how they are related.<br />

1022<br />

= 36.<br />

5<br />

Eqn. 21<br />

28<br />

Eqn. 20 is used to convert V batt(Register Value) to the actual voltage on the<br />

microcontroller. The microcontroller can only divide by whole numbers. To fix this, it is<br />

multiplied by 10 then divided by 10*36.5=365.<br />

V batt(Register<br />

Value)<br />

365<br />

∗10<br />

= V batt(actual). Eqn. 22<br />

M. Determining the Throttle Setting<br />

A voltage divider with a 10kΩ potentiometer is used as the user input for the<br />

throttle. The input voltage to the divider is 5Vdc. The output voltage will be between 0<br />

and 5Vdc. 0Vdc will correspond to a 50% speed setting, and 5Vdc will correspond to a<br />

100% speed setting. Timer1 on the microcontroller controls the PWM signal. A counter<br />

is incremented until it equals 2046 and then resets to 0. Every time the counter is<br />

incremented, the count is compared to a compare register. If they are equal, a pin is<br />

toggled. This creates the PWM signal. For example, if the compare register had 1023<br />

stored, this would result in a 50% duty cycle. In order to have 0Vdc correspond to a 50%<br />

duty cycle, 1023 should be added to the A/D register value and then stored in the<br />

compare register.<br />

Vout<br />

∗1024<br />

Compare Register = + 1023<br />

V<br />

AREF<br />

Eqn. 23<br />

29


V. Implementation and Results<br />

<strong>Mower</strong> System Results<br />

The various subsystems of the mower system and charger system, discussed in<br />

Section IV, were implemented and tested. In case of the motor control subsystem, the<br />

microcontroller PWM signal with throttle control input, voltage regulators, gate driver<br />

and power MOSFETs were successfully implemented. The motor control subsystem was<br />

first tested in the lab using a PWM signal supplied by a function generator and system<br />

operation was verified. Next the microcontroller was interfaced to the gate driver and<br />

speed control of the motor using the throttle input to the microcontroller was verified.<br />

With these successful tests, the complete motor control subsystem was finally mounted<br />

on the mower platform with the Tecumseh motor with blade and tested by mowing grass.<br />

The test was carried out by mowing dense wet grass and cutting 1 ½ inches off the top of<br />

the grass. The pace at which the mower was pushed was at a walking speed of<br />

approximately 2.66 ft/s. The mower ran for almost an hour and a half and mowed<br />

approximately 13,000 sq. ft, before the batteries were completely discharged. This<br />

mowing test exceeded the requirement to mow a 10,000 sq. ft yard in one hour. As far<br />

as the weight expectation, the final mower system weighed 91 pounds as a prototype.<br />

The 90 pound specification certainly could be met by improved mower deck design,<br />

optimizing battery size and weight and using a brushless DC motor. Furthermore, the<br />

speed control worked correctly. When the throttle knob was adjusted, the motor RPM<br />

would decrease or increase as the microcontroller varied the PWM signal accordingly.<br />

This change in speed was also displayed correctly. Unfortunately the current and state of<br />

charge were not measured or displayed correctly due to problems with the current sense<br />

resistor. Though the SOC algorithm was correct, the current measurement was wrong<br />

precluding a correct SOC calculation. The problem with the current measurement was<br />

noise due to the small current sense resistor. The problem with the voltage display is due<br />

to the battery voltage divider not working correctly.<br />

Solar Charger System Results<br />

The solar charger system was implemented as shown in figure 17. The solar<br />

panel input was simulated by the Agilent power supply, and the battery was simulated as<br />

a load resister. First, the UC3909 chip operation was verified by supplying an input<br />

voltage similar to the solar panel output at peak power, about 19V. Then the PWM signal<br />

was measured with the oscilloscope along with the timing capacitor for the switching<br />

frequency. Once they were verified, the output of the UC3909 was interfaced to the buck<br />

converter which was loaded by the resistor. Then, voltage and current measurements<br />

were made on the load. The input voltage was slowly increased until peak power to<br />

simulate how the sun moves from dawn to the peak power point. The Chip turned on<br />

around 8V, and the load voltage increased to about 10.5V, and current was about 150 mA<br />

when the input voltage was at 19V. Once the load voltage reached this level, the charger<br />

system regulated it there for further increases of the input voltage up to the power supply<br />

limit of 26V. This indicates the charger system was functioning, but not within the<br />

specifications necessary to charge two 12V batteries. This is most likely due to the<br />

30


tolerance of the components calculated in appendices A and B. These components are<br />

used to set the voltage and current levels for the charge algorithm. Another issue may be<br />

noise. Because the UC3909 is analog, it is more susceptible to noise issues, and most of<br />

the measurements made were fairly noisy. Similar to the current sense issue mentioned<br />

for the mower system, the charger system also uses a low value resistor for current<br />

sensing.<br />

VI. Recommendations for Future Work<br />

In conclusion, the mower exceeded most of the initial specifications and the<br />

charger system remained out of the initial specifications. This project is interesting and<br />

offers the opportunity for future work as follows.<br />

<strong>Mower</strong> System Recommendations<br />

• Design the mower with a brushless DC motor. This would dramatically increase<br />

efficiency and therefore battery sizing and other parts of the power electronics<br />

may have to be redesigned<br />

• Add a self propelling functionality, because of the increased weight of the<br />

batteries. This change would also need further design considerations for the<br />

battery size and power usage.<br />

• Utilize a Hall Effect sensor for measuring motor current. This would increase the<br />

accuracy of sensing current for the SOC algorithm.<br />

• Implement the AC power back up. This was included in the original<br />

specifications to allow for quick charging and cases of prolonged cloudy weather,<br />

but it was omitted to reduce the scope of the project<br />

• Obtain a sturdier mower deck. This project used a plastic deck that was not<br />

designed to work with the motor and batteries in the system, so it was awkward to<br />

push around.<br />

31


Charger System Recommendations<br />

• Redesign and simulate the charger circuit. Because the circuit displayed correct<br />

functionality in the laboratory, it appears the problem is with the choice of<br />

components. It is recommend that new component values computed and<br />

simulated. However this will require a model for a lead acid battery.<br />

• Interface the redesigned charger circuit to the solar panel.<br />

• Develop a digital charging system. A digital system would be much less<br />

susceptible to noise, and it could be implemented on the same microcontroller<br />

used in the mower system. This may turn out to be a project in itself because it<br />

will most likely need a closed loop feedback controls design to integrate the<br />

charge algorithm.<br />

32


VII. Applicable Standards and Patents<br />

Standards<br />

Document # Title Developer<br />

ASAE S440.3<br />

MAR2005<br />

Safety for Powered <strong>Lawn</strong> and Garden<br />

Equipment ASABE<br />

UL 1447 (Ed. 4) Standard for <strong>Electric</strong> <strong>Lawn</strong> <strong>Mower</strong>s<br />

The Standard for Safety for <strong>Electric</strong> <strong>Lawn</strong><br />

UL<br />

UL 1447-2006 <strong>Mower</strong>s UL<br />

UL 82 (Ed. 6) Standard for <strong>Electric</strong> Gardening Appliances<br />

Balance-of-system components for photovoltaic<br />

UL<br />

IEC 62093 Ed. 1.0 systems - Design qualification natural<br />

b:2005<br />

IEC 60086-1 Ed. 10.0<br />

environments IEC<br />

b:2007 Primary batteries - Part 1: General IEC<br />

IEC 60086-2 Ed. 11.0 Primary batteries - Part 2: Physical and electrical<br />

b:2007<br />

specifications IEC<br />

<strong>Electric</strong>ity. Magnetism. <strong>Electric</strong>ity. Magnetism. General Aspects<br />

General Aspects (IEC)<br />

Other Standards Related<br />

Collection IEC<br />

to <strong>Electric</strong>ity and Other Standards Related to <strong>Electric</strong>ity and<br />

Magnetism (IEC) Magnetism Collection<br />

<strong>Electric</strong> cables - Calculation of the current rating<br />

IEC<br />

IEC 60287-1-1 Ed. 2.0 - Part 1-1: Current rating equations (100 % load<br />

b:2006<br />

factor) and calculation of losses - General<br />

Electromagnetic compatibility - Requirements<br />

for household appliances, electric tools and<br />

IEC<br />

CISPR 14-2 Ed. 1.1 similar apparatus - Part 2: Immunity - Product<br />

b:2001<br />

family standard IEC<br />

IEC 60730-2-10 Ed. 2.0 Automatic electrical controls for household and<br />

b:2006<br />

similar use - Part 2-10: Particular IEC<br />

C 4512 Small Switches for Single-Phase Motors (E)<br />

Automatic <strong>Electric</strong>al Controls for Household<br />

KSA<br />

and Similar Use; Part 2: Particular Requirements<br />

UL 60730-2-10A (Ed. 1) for Motor Starting Relays<br />

DC ferrite permanent magnet motors (TEXT OF<br />

UL<br />

GB/T 6656-1986 DOCUMENT IS IN CHINESE) SPC<br />

UL 1004 (Ed. 5) Standard for <strong>Electric</strong> Motors UL<br />

33


UL 1012 (Ed. 7) Standard for Power Units Other Than Class 2 UL<br />

IEC 60335-2-29 Ed. 4.1<br />

b:2004<br />

IEC/TR 61955 Ed. 1.0<br />

en:1998<br />

Household and similar electrical appliances -<br />

Safety - Part 2-29: Particular requirements for<br />

battery chargers IEC<br />

Primary batteries - Summary of research and<br />

actions limiting risks to reversed installation of<br />

primary batteries IEC<br />

A-20 Battery Charging Devices ABYC<br />

TA-27 Batteries and Battery Chargers<br />

BATTERY CHARGER (FOR 6/12/18/24<br />

ABYC<br />

A-A-1741<br />

VOLTS)<br />

Balance-of-system components for photovoltaic<br />

US DoD<br />

IEC 62093 Ed. 1.0 systems - Design qualification natural<br />

b:2005<br />

environments<br />

MOWER, LAWN, ROTARY, WALK BEHIND<br />

(HAND PROPELLED WITH BLADE STOP)<br />

IEC<br />

A-A-744 NOT 1 (NO S/S DOCUMENT)<br />

Circuit-breakers for over current protection for<br />

US DoD<br />

IEC 60931-3 Ed. 1.0 household and similar installations - Part 2:<br />

b:1996<br />

Circuit-breakers for a.c. and d.c. operation IEC<br />

34


Patents<br />

Patent<br />

Number Description<br />

US Pat.<br />

4987729 <strong>Lawn</strong> <strong>Mower</strong> w/ solar panel attached<br />

US Pat.<br />

4942723 <strong>Lawn</strong> <strong>Mower</strong> w/ solar panel attached<br />

US Pat.<br />

5906088 <strong>Lawn</strong> <strong>Mower</strong> w/ solar panel attached<br />

US Pat.<br />

5084664 Solar Powered Lead-acid battery charger<br />

US Pat.<br />

4871959 Solar Powered Lead-acid trickle charger<br />

US Pat.<br />

6236175<br />

Process and device for detecting the speed of rotation of a DC electric<br />

motor<br />

US Pat.<br />

5321627 Battery monitor and method for providing operating parameters<br />

US Pat.<br />

5656920 Method and apparatus for charging a lead-acid battery<br />

35


VIII. Equipment List<br />

Test Equipment:<br />

• Agilent DC Power Supply E3634A<br />

• Agilent DC Power Supply 3630A<br />

• GE DC Ammeter<br />

• Pioneer Digital Photo Tach DT-36M<br />

• Power Patrol SLA1079 Sealed Lead Acid Batteries<br />

• GME PM89 Ammeter and Current Shunt<br />

• Fluke 87 Digital Multimeter<br />

• Fluke 45 Digital Multimeter<br />

• Fluke 337 Clamp Ammeter<br />

• Tektronix TDS3012B Digital Oscilloscope<br />

IX. Bill of Materials<br />

Part Part Number Bulk Unit Cost Quantity Line Cost<br />

DC Motor Tecumseh 9000A 57 1 $57.00<br />

24V Battery Interstate DCM0035 26 2 $52.00<br />

50W Solar Panel BP350 269 1 $269.00<br />

<strong>Mower</strong> Frame (estimate) 20 1 $20.00<br />

Motor MOSFET IRFP044N 1.3398 2 $2.68<br />

Buck MOSFET IRF640 1.799 1 $1.80<br />

MOSFET Heat Sink Wakefield 657-15ABPN 0.98 3 $2.94<br />

Diode Heat Sink Wakefield 287-1ABE 0.659 1 $0.66<br />

30A Fuse Little Fuse 0297030.WXNV 0.2973 1 $0.30<br />

Fuse Holder Little Fuse 01530009Z 0.6627 1 $0.66<br />

Std. 0.25W Resistors (various) 0.00855 20 $0.17<br />

Std. Ceramic Capacitors (various) 0.027 13 $0.35<br />

Speed Potentiometer 3852A-282-103AL 4.27 1 $4.27<br />

Safety Switch 8125SHZBE 2.5558 1 $2.56<br />

Buck Inductor 2216-V-RC 1.7085 1 $1.71<br />

Input Capacitor UHE1H681MHD 0.2241 1 $0.22<br />

Output Capacitor UHE1E471MPD 0.1232 1 $0.12<br />

5V Regulator LM7805 0.22828 1 $0.23<br />

15V Regulator LM7815 0.252 1 $0.25<br />

Gate Driver TC4424 1.33 1 $1.33<br />

Buck Diode MUR405 0.14204 1 $0.14<br />

Protection Diode STPS20120 0.493 5 $2.47<br />

Microcontroller ATMEGA 168 2.39 1 $2.39<br />

Charger Controller UC3909 3.721 1 $3.72<br />

LCD MDLS-24269-HT-HV-S 5 1 $5.00<br />

Total Parts Cost $431.97<br />

36


X. References<br />

http://www.ecircuitcenter.com<br />

http://www.mindfully.org<br />

http://www.batteryuniversity.com<br />

http://www.wikipedia.org<br />

http://NREL.gov<br />

Balogh, Laszlo. “Implementing Multi-State Charge Algorithm with the UC3909<br />

Swichmode Lead Acid Battery Charger Controller.” (Unitrode) Texas<br />

Instruments. 1999.<br />

Zhu, C.B.; Coleman, M.; Hurley, W.G. “State of Charge Determination in a Lead-acid<br />

battery: combined EMF estimation and Ah-balance approach” Power Electronics<br />

Specialists Conference, 2004, PESC 04. 2004 IEEE 35 th Annual vol.3,20-25 June<br />

2004 pp.1908 – 1914<br />

37


Appendix A<br />

Battery Data Equations (Unitrode)<br />

38


Appendix A<br />

Buck Converter Operating Parameters (Unitrode)<br />

39


Appendix A<br />

Power Stage Design Equations (Unitrode)<br />

40


Appendix A<br />

41


Appendix A<br />

Controller Design Equations (Unitrode)<br />

42


Appendix A<br />

Controller Design Equations Cont. (Unitrode)<br />

43


Appendix A<br />

Controller Design Equations Cont. (Unitrode)<br />

44


Appendix B<br />

Charger Circuit Components List<br />

Parameter Description Value/Part# Unit<br />

Battery Data for DCM0035 Lead-Acid Battery<br />

V Nominal Battery Voltage 12 Vdc<br />

NC Number of Cells 6<br />

Crate Battery Capacity 3.6 Ah<br />

Vc Cell Float Voltage 2.25 Vdc<br />

Vc,max Maximum Cell Voltage 2.483 Vdc<br />

Vc,min Minimum Cell voltage 1.75 Vdc<br />

Itrickle Trickle Charge Current Limit 0.036 A<br />

Ibulk Bulk Charge Current Limit 1.8 A<br />

IOCT Over-charge Terminate Current Threshold 0.45 A<br />

TC Cell Voltage Temperature Coefficient -0.0035 V/C<br />

Tmin Minimum Operating Battery Temperature -23 C<br />

Tmax Maximum Operating Battery Temperature 60 C<br />

Vbat Battery Float Voltage 13.5 Vdc<br />

Vbat,min Minimum Battery Voltage 9.765 Vdc<br />

Vbat,max Maximum Battery Voltage 15.906 Vdc<br />

Pch,max Maximum Output Power 28.6308 W<br />

Buck Converter Operating Parameters<br />

Vin,min Minimum Input Voltage 12 Vdc<br />

Vin,max Maximum Input Voltage 22 Vdc<br />

fs Switching Frequency 50000 Hz<br />

Vd1f D1 Forward Voltage Drop (estimate) 0.59 Vdc<br />

Vd2f D2 Forward Voltage Drop (estimate) 0.73 Vdc<br />

Dmax Maximum Duty Ratio 1.353181461<br />

Dmin Minimum Duty Ratio 0.487681478<br />

Buck Converter Power Stage Components Design Sheet<br />

VRMM<br />

(D1) Diode Breakdown Voltage 23.859 V<br />

IO,MIN<br />

(D1) Diode Current Rating 3.6 A<br />

D1 Discharge Protection Diode MUR405<br />

PD1 Diode Power Dissipation 1.062 W<br />

VRMM<br />

(D2) Diode Breakdown Voltage 33 V<br />

IO,MIN<br />

(D2) Diode Current Rating 3.6 A<br />

D2 Buck Freewheeling Diode MUR405<br />

tRR Diode Reverse Recovery Time 3.50E-008 s<br />

IRRM Diode Peak Reverse Recovery Current 0.5 A<br />

PD2 Diode Power Dissipation 0.677999038 W<br />

45


VDSS (Q1)<br />

ID,MIN<br />

Switch Breakdown Voltage 33 V<br />

(Q1) Transistor Current Rating 7.2 A<br />

Q1<br />

RDSON<br />

Buck Main Switch IRLZ14PBF<br />

(Q1)<br />

COSS<br />

Switch ON Resistance 0.28 Ω<br />

(Q1) Drain Source Capacitance 1.70E-010 F<br />

IGATE Gate Charge/Discharge 0.8 A<br />

QGS (Q1) Gate-To-Source Charge 3.50E-009 C<br />

QGD (Q1) Gate-To-Drain Charge 6.00E-009 C<br />

tOFF; tON Approximate Switching Times 1.19E-008 s<br />

PQ1 Switch Power Dissipation 1.902 W<br />

PHS Heat sink Power Dissipation 3.64162787 W<br />

DIL,MAX Inductor Ripple Current 0.72 A<br />

L1 Buck Inductance 1.53E-004 H<br />

IL1,PEAK Inductor Peak Current 2.16 A<br />

L1 Buck Filter Inductor 2.20E-04 H<br />

VC3 Input Capacitor Voltage Rating 33 V<br />

IC3,RMS Input Capacitor RMS current 0.9 A<br />

C3 Input Capacitor (electrolytic) 680µF/63V<br />

C18 High Frequency Bypass For Switches 1µF/63V<br />

VC5 Output Capacitor Voltage Rating 23.859 V<br />

IC5,RMS<br />

C5<br />

Output Capacitor RMS Current 0.208 A<br />

C5 Output Capacitor (electrolytic) 2.20E-04 F<br />

RC5,ESR Output Capacitor’s ESR 0.084 Ω<br />

PSN,MAX Snubber Power Dissipation 0.429462 W<br />

VC4 Snubber Capacitor Voltage Rating<br />

Snubber Capacitor(polypropylene or metalized<br />

33 V<br />

C4<br />

film) 3.55E-008 F<br />

C4<br />

Snubber Capacitor(polypropylene or metalized<br />

film) 10nF/63V<br />

R3 Snubber Resistor (non-inductive) 11.21039121 Ω<br />

R3 Snubber Resistor (non-inductive) 43 Ω<br />

PR4,MAX Current Sense Resistor Power Dissipation 0.429462 W<br />

R4 Current Sense Resistor 0.1 Ω<br />

R4 Current Sense Resistor 0.1 Ω<br />

F1 Output Fuse Rating 2.25 A<br />

Controller Part Values<br />

C6 Bypass Capacitors 100 nF<br />

C7 Bypass Capacitors 100 nF<br />

C13 Bypass Capacitors 100 nF<br />

C14 Bypass Capacitors 100 nF<br />

C15 Bypass Capacitors 100 nF<br />

C16 Bypass Capacitors 100 nF<br />

C17 Bypass Capacitors 100 nF<br />

Auxiliary Power Supply<br />

(Voltage Regulator) 15 V<br />

46


Gate Drive<br />

(Dual Channel Gate Driver from the motor driver circuit)<br />

Differential Voltage Sense<br />

(optional)<br />

Charger Control - IC Setup - Housekeeping and Temperature Sensing<br />

U1 TI UC3909<br />

C8 Timing Capacitor 1.5 nF<br />

fs Switching Frequency 50000 Hz<br />

R8 RSET Oscillator 11000 Ω<br />

R7 reference resistor - thermistor 10000 Ω<br />

RP1 thermistor emulation Potentiometer 50000 Ω<br />

Charger Control - IC Setup - Current Levels<br />

R9 OVCTAP set resistor 100000 Ω<br />

R10 OVCTAP set resistor 8333.1 Ω<br />

R11 Trickle Current Limit Set 1721.74068 Ω<br />

R12 Bulk Current Limit Set 5165.22204 Ω<br />

Charger Control - IC Setup - Voltage Levels<br />

R15 Battery Voltage Divider 1% recommended 77564.19048 Ω<br />

R16 Battery Voltage Divider 1% recommended 6422.47619 Ω<br />

R17 Battery Voltage Divider 1% recommended 17247.2619 Ω<br />

R18 Battery Voltage Divider 1% recommended 138175.4888 Ω<br />

Charger Control - IC Setup - Current Error Amplifier<br />

R14 Current Error Amplifier Compensation Resistor 3078.46354 Ω<br />

C11 Current Error Amplifier Compensation Capacitor 1.03399E-08 F<br />

C12 Current Error Amplifier Compensation Capacitor 1.03399E-09 F<br />

Charger Control - IC Setup - Voltage Error Amplifier<br />

fo Voltage Loop Cross Over Frequency 1000 Hz<br />

R13 Voltage Error Amplifier Compensation Resistor 3.22E+05 Ω<br />

C9 Voltage Error Amplifier Compensation Capacitor 5.73055E-11 F<br />

C10 Voltage Error Amplifier Compensation Capacitor 4.34048E-08 F<br />

Charge State Controller<br />

(N/A - will be used by the micro controller)<br />

47


Appendix C: Software Flowcharts<br />

Software Initialization<br />

Start<br />

Setup Stack<br />

Pointer<br />

Clear Variables<br />

Setup Timer1<br />

for Fast PWM<br />

mode using<br />

16 bit<br />

resolution<br />

Setup Timer2<br />

for 1ms<br />

interrupt<br />

Enable Interrupts<br />

Initialize LCD<br />

Jump to<br />

State 01<br />

Set pin<br />

PB2 as an<br />

output<br />

Clear<br />

TCNT2<br />

Call LCD Init<br />

Clear<br />

TCNT1<br />

Load<br />

OCR2A<br />

with $A5<br />

Return from<br />

LCD Init<br />

Clear<br />

OCR1B<br />

Load OCR1A<br />

with $7FE<br />

Setup TCCR2 for<br />

Counting up and<br />

resetting on<br />

match with<br />

OCR2A<br />

Setup TCCR1<br />

for Fast PWM<br />

mode and 16 bit<br />

resolution<br />

Divide<br />

internal<br />

clock by 32<br />

The SOC calculations are made during an interrupt that occurs every 1ms.<br />

Start<br />

Timer1<br />

Start<br />

Timer2<br />

48


Appendix C<br />

Interrupt Service Routine<br />

49


Appendix C<br />

State 1<br />

50


Appendix C<br />

State 2<br />

Jumped to<br />

from State<br />

01<br />

Measure<br />

Throttle<br />

Potentiometer<br />

Voltage<br />

Measure<br />

current<br />

Jump to<br />

State 03<br />

Choose A/D<br />

channel<br />

AD5<br />

Choose A/D<br />

channel<br />

AD4<br />

Store A/D<br />

register as<br />

Current<br />

variable<br />

Disable<br />

remaining<br />

pins on<br />

Port C<br />

Disable<br />

remaining<br />

pins on<br />

Port C<br />

Set PB2 to ‘0’<br />

Stop<br />

Timer2<br />

Setup A/D control<br />

register to enable<br />

A/D, start<br />

conversion, and<br />

enable interrupt<br />

Set PB2 to ‘1’<br />

Yes<br />

Start Timer2<br />

No<br />

Is A/D<br />

conversion<br />

complete<br />

Setup A/D control<br />

register to enable<br />

A/D, start<br />

conversion, and<br />

enable interrupt<br />

Enable pins on<br />

Port C<br />

Yes<br />

Store A/D<br />

register as<br />

Speed<br />

variable<br />

No<br />

Is A/D<br />

conversion<br />

complete<br />

51


Appendix C<br />

State 3<br />

52


Appendix C<br />

State 4<br />

Jumped to<br />

from State<br />

01<br />

State 5<br />

Copy Speed<br />

Variable to PWM<br />

Register<br />

Jump to<br />

State 05<br />

Jumped to<br />

from State<br />

03<br />

53


Appendix C<br />

State 6<br />

Jumped to<br />

from State<br />

05<br />

Update<br />

Battery Icon<br />

on LCD<br />

Convert<br />

Voltage to<br />

ASCI value<br />

Convert<br />

Current to<br />

ASCI value<br />

Update<br />

Speed Icon<br />

on LCD<br />

Jump to<br />

State 01<br />

Is<br />

SOC greater<br />

than<br />

80%?<br />

Display 5<br />

Battery Bars<br />

Display Voltage<br />

Value<br />

Display Current<br />

Value<br />

Is<br />

Speed Variable<br />

Icon =5?<br />

Display 5<br />

Speed Bars<br />

Is<br />

SOC between<br />

60% and<br />

79%?<br />

Display 4<br />

Battery Bars<br />

Is<br />

Speed Variable<br />

Icon =4?<br />

Display 4<br />

Speed Bars<br />

Is<br />

SOC between<br />

40% and<br />

59%?<br />

Display 3<br />

Battery Bars<br />

Is<br />

Speed Variable<br />

Icon =3?<br />

Display 3<br />

Speed Bars<br />

Is<br />

SOC between<br />

20% and<br />

39%?<br />

Display 2<br />

Battery Bars<br />

Is<br />

Speed Variable<br />

Icon =2?<br />

Display 2<br />

Speed Bars<br />

Is<br />

SOC between<br />

10% and<br />

19%?<br />

Display 1<br />

Battery Bar<br />

Is<br />

Speed Variable<br />

Icon =1?<br />

Display 1<br />

Speed Bar<br />

Display<br />

Empty<br />

Battery Icon<br />

Has<br />

1 second<br />

elapsed?<br />

Display<br />

“Please<br />

Recharge<br />

Battery”<br />

Don’t<br />

Display<br />

Speed Icon<br />

54


Appendix C<br />

LCD Initialization<br />

55

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

Saved successfully!

Ooh no, something went wrong!