ucla ieee natcar 2004 summer class magnetic sensors & power regulation

27
UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Upload: ophelia-morris

Post on 17-Jan-2018

222 views

Category:

Documents


0 download

DESCRIPTION

Magnetic Field and Coil What does a 75kHz, 100mA rms AC current mean? Magnetic Field around a wire (1/r 2 ) Brief review of inductor V = L (di / dt)

TRANSCRIPT

Page 1: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

UCLA IEEENATCAR 2004 SUMMER

CLASS

Magnetic Sensors&

Power Regulation

Page 2: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Introduction

Wilson Chen Internal Vice President IEEE NATCAR member 03

Sensor Circuit P.I.D Algorithm Power Management

Page 3: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Magnetic Field and Coil What does a 75kHz, 100mA rms

AC current mean? Magnetic Field around a wire

(1/r2) Brief review of inductor

V = L (di / dt)

Page 4: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Different Orientation of Inductor

Horizontally above the wire

Advantage Provide continuous

band of reading Disadvantage

Relatively short range Can sacrifice reading

amplitude for range

Page 5: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Cont. Vertically above the wire Advantage

Very long range of detection

Disadvantage 0 reading when on

directly on top of the wire Must program with

caution

Page 6: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Comparison between Optical Sensor and Magnetic Sensor

Magnetic sensor provides a relatively long range of analog reading while optical sensor only provides discrete reading of 1 or 0.

Magnetic sensor is very sensitive to noise. The signal obtained thus is not often clean; Optical sensor outputs a clean signal of 1s and 0s.

Page 7: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Building a Magnetic Sensor Circuit

Different Stages

LC Tank Filter Amplifier

RectifierProcessor

Page 8: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

LC Tank

+

-

C 4

1 7 0 p

L 1

2 2 m H

1

2

Vout

LC tank, which is an energy storage device, is our sensing unit.

Resonance Frequency ωr = √(1/(LC))

Theoretical value vs. practical value

Page 9: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Filters Review of bandpass filters

Center Frequency, Cut-off Frequencies Minimize bandwidth

Types of bandpass filters RC lowpass and RC high pass Active bandpass filter

Page 10: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Filters

+

C 1

1 7 0 p

R 1

3 k

--

I N

VoutVin

O U T1

0

O U T2C 3

1 7 0 p

R 3

1 0 0 k

+

RC lowpass cascaded with RC highpass filter

Page 11: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Designing a Filter It’s very crucial to set the center

frequency at 75kHz Make sure gain is closed to 1 Determine cut-off frequencies

Low end: 60Hz (surrounding noise) High end: 400kHz (AM radio)

Design Techniques Calculate theoretical values Use PSpice to run simulations with different

values. Use the simulation results.

Page 12: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Filter Yes, after all these

talks, filter is only an optional component in this particular sensor circuit. =(

Frequency

1.0KHz 3.0KHz 10KHz 30KHz 100KHz 300KHz 1.0MHz 3.0MHz 10MHzV(OUT1) / V(IN) V(OUT2) / V(OUT1)

0

0.5

1.0

Frequency

1.0KHz 3.0KHz 10KHz 30KHz 100KHz 300KHz 1.0MHz 3.0MHz 10MHzV(OUT2) / V(IN)

0

0.5

1.0

Page 13: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Amplifier Circuit Amplifier circuit is the most important

part of our sensor circuit design. What does an amplifier do and how

does it work? Choosing an amplifier circuit

Simple and straight forward Can precisely adjust the gain easily Don’t use any inverting amplifier

Page 14: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Building an Amplifier Circuit Choose the right type of OPAMP chip

Use Qua-OPAMP Voltage operational range (+/- 5V) Frequency operational range Notice that you will only have VCC+

Use potentiometer to set amplifier gain Make sure your gain is not large enough

to saturate the OPAMP when the sensor is directly on top of the wire

Page 15: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Amplifier Cont.

Don’t use this! This is an inverting amplifier. 0

Vin

V 31 0 V d c

-

+

U 1 A

M C 3 3 1 7 4 / S O

3

21

411

R 1

5 0 0 k

0

Vout

V 2-1 0 V d c

R 2

1 0 0 k

Page 16: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Rectifier Review of diode What is a rectifier

Full wave rectifier Half wave rectifier

C3

100n

OUT

D1

D1N4148

R5

100k

0

Page 17: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Building a rectifier Realize there is a 0.7v drop

across the diode Choose the RC value carefully

RC should be much greater than 1/f

However, if RC is too big, the response of the sensor circuit output would be slow.

Page 18: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Complete Sensor Circuit

C3

100n

C2

170p

FilterR3

3k

IN

R1

500k

U2

OPAMP

+

-

OUTC1

170pOUT

R2

50k

D1

D1N4148

OPAMPV1

FREQ = 75kVAMPL = 1vVOFF = 0

R5

100k

0

R4

100k

0

Page 19: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Input and Output

Time

0s 10us 20us 30us 40us 50us 60us 70us 80us 90us 100usV(OUT) V(IN)

-2.0V

0V

2.0V

4.0V

6.0V

Page 20: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Sensor Systems The more sensors you have, the more

information we can obtain about the current position of your car. Prepare for at least 5 sensor circuits

Design the range of your sensors It’s not necessary to be good to have too

long of a range Again, lifting sensors will give u a longer

range

Page 21: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

How do we orient sensors The most basic

configuration Left, right and center Self correction P.I.D. ready Sufficient enough to handle

most of the track Advance configuration

More side sensors to handle special cases

Front sensors to detect curve

Page 22: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Dealing with sensors Sensor reading plot is EXTREMELY

important!!! sensor readi ng

-1-0. 5

00. 5

11. 5

22. 5

33. 5

4

-100 -80 -60 -40 -20 0 20 40 60 80 100

posi t i on

volt

age Center

Lef tRi ghtSeri es4

Page 23: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Dealing with sensors Discover a lot of small, but

every important behaviors of your sensors

Reading is a exponential function Manipulate all the readings and

generate a linear output

Page 24: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Dealing with noises Noises from power source

Filters Ground noises

Filters? Avoid ground loops as much as

possible PCB Ground Strap

Page 25: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Other Tips Use twisted wire for sensors Stabilize sensors as much as

possible Tape? Glue?

Use terminal blocks only for power connections; For sensors, use connection pins.

Page 26: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

Power Regulation Why do we need power regulation? Device the needs to be regulated

Servo Sensor Circuit Motor??

Types of regulator Switching Regulator (bad guy for us!!)

Possibly reduce power consumption Linear Voltage Regulator

Low drop-out

Page 27: UCLA IEEE NATCAR 2004 SUMMER CLASS Magnetic Sensors & Power Regulation

The End