Top Banner
Electronic
43

Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Jan 18, 2016

Download

Documents

Milton Scott
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Electronic

Page 2: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Analog Vs. Digital

Page 3: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Analog Vs. Digital

• Analog– Continuous– Can take on any values in a given range– Very susceptible to noise

• Digital– Discrete– Can only take on certain values in a given

range– Can be less susceptible to noise

Page 4: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Analog versus Digital

• Analog systems process time-varying signals that can take on any value across a continuous range of voltages (in electrical/electronics systems).

• Digital systems process time-varying signals that can take on only one of two discrete values of voltages (in electrical/electronics systems).– Discrete values are called 1 and 0 (ON and OFF,

HIGH and LOW, TRUE and FALSE, etc.)

Page 5: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Benefits of Digital over Analog

• Reproducibility

• Not effected by noise means quality

• Ease of design

• Data protection

• Programmable

• Speed

• Economy

Page 6: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Diodes

Page 7: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

diodes

Page 8: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Diodes

symbol

•A diode is another semi-conductor device.

•A diode will only conduct electricity in one direction.

•They are useful for changing a.c. into d.c – this is called rectification.

Page 9: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

A diode is a component that allows a current to flow in one direction only.

It has a low resistance in one direction and a very high resistance in the other.

Current flows in the direction with low resistance but is not proportional to the voltage.

If the voltage is reversed or the diode is connected the other way around, the high resistance of the diode ‘blocks’ the flow of current.

Cu

rre

nt

/ A

Voltage / Vx x x x

xx

x

x

x

No current flows

Page 10: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Diodes

CathodeWired towards

the negative terminal

AnodeWired towards

the positive terminal

Page 11: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Which way through ?

This is the direction which current will easily pass through a diode.

Page 12: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

A diode has a current of 5.0 A running through it and a resistance of 5.0 .

What is the potential difference across the diode?

V = IR

= 5.0 A x 5.0

= 25 V

Diode calculation

Page 13: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Example circuits

An electric current can pass through the diode on the left, allowing the lamp to light. The diode on the right stops the current and hence the lamp remains out.

Page 14: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Changing a.c. to d.c.

t t

I I

INPUT OUTPUT

DIODE

The diode conducts in this direction.

So that we can get an output voltage.

The diode will not conduct in this

direction.

This means that there will be no output voltage.

Page 15: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Half wave rectification

Page 16: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Smoothing Although the above produces a direct voltage and current, it is not the steady sort of dc we get from a battery. To ‘smooth’ the voltage we add a capacitor. The capacitor, labelled C, is placed in the half-wave rectifier circuit as indicated below:

Page 17: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

The effect of the capacitor on the voltage across R is represented below:

Page 18: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Page 19: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Light Emitting Diodes

•A LED is a type of diode designed to emit light .

•The light can be visible such as a laptop light.

•It can also be infra red such as on a remote control.

•Here is its circuit diagram symbol.

Circuit symbol for an LED

Page 20: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Quick graph quiz

?Fixed resistor at constant

temperature?

?

Filament lamp

Diode

Page 21: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

• Initially the voltage across the resistor rises to its maximum, and the capacitor charges to its maximum, the top plate becoming positive. Without the capacitor, the voltage across R then drops to zero and stays there for half a cycle. But now, as soon as the voltage starts to fall, the capacitor start to discharge through the resistor – this maintains the voltage across it close to its maximum until the next cycle starts. Thus, the voltage across the resistor and the current though it are smoother than without the capacitor.

Page 22: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Potential Dividers

0V

VIN

VOUT

0V

R1

R2

(R1 + R2)

VIN x(R2)VOUT

The Potential Divider equation:

Page 23: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Some example questions

0V

12V

VOUT

0V

100

100

0V

1.5V

VOUT

0V

50

45

0V

50V

VOUT

0V

10

75

0V

3V

VOUT

0V

75

25

Page 24: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Practical applications

0V

Vin

VOUT

Here’s a potential divider that is used to control light-activated switches…

When the light intensity on the LDR decreases its resistance will ________. This causes VOUT to _______ so the processor and output will probably turn _____. The variable resistor can be adjusted to change the ________ of the whole device.

Words – decrease, sensitivity, increase, off

Page 25: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Reed switch

Page 26: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Reed switch in a Burglar alarm

Page 27: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

TransistorsA transistor acts like a switch:

Base

Collector

Emitter

When a SMALL current flows through the base-emitter part of the transistor a different current is switched on through the collector-emitter part.

It conducts between C and E when the voltage between B and E is above +0.6V.

Page 28: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Page 29: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Page 30: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

A Frost alarm

Page 31: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Page 32: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

A light dependent switch

6V

0V

Power supply

Output device

Page 33: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

A light dependent switch1) When the light on the LDR decreases its resistance _________,

which will decrease the ________ across the variable resistor

2) This will cause VOUT to ____. The____ gate will recognise this as a “0” and convert it into a “1”, i.e. a current will flow into the resistor

3) The resistor limits the amount of current flowing into the transistor, to avoid __________ it

4) When the transistor detects the current at its _____ it will “switch __” the collector-emitter current

5) A small current will then flow through the _______

6) The relay will then switch on a _____ current in the output circuit

7) The “reversed biased” diode is also placed in the circuit to act as a “_______” to prevent current flowing back into the transistor when the relay is switched _____Words – base, buffer, on, increases,

damaging, relay, off, larger, voltage, drop, NOT

Page 34: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

A light dependent switch

6V

0V

We could modify this circuit (if we wanted to…)

2) Adjust this resistor to vary the sensitivity

1) Swap these two around and the output will now switch on when it becomes LIGHT, not when it becomes dark

Page 35: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

The CapacitorA capacitor is a device that can store charge (it has a “capacity”). It is basically made of two plates:

…or…

Charge builds up on these plates and the voltage between them increases until it reaches the supply voltage.

Page 36: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Charging and discharging a capacitorP.d. across capacitor

Time

P.d.

Time

P.d.

Time Time

Increase resistance or capacitance

Increase resistance or capacitance

Page 37: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Time delay circuits6V

0V

Power supply

Output device

R

Page 38: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Time delay circuits

“ 1”

6V

0V

Power supply

Output device

R

Page 39: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Time delay circuits1) When the switch is closed the capacitor is being short circuited so no charge builds up on it

2) This means that the input to the NOT gate is __, so the output is 1 and the output device is ___

3) When the switch is released the capacitor starts to ________ up

4) When the voltage across the capacitor reaches a certain level the input to the NOT gate becomes __ so its output is 0

5) This means that the output device is now switched ___

6) To INCREASE the amount of time taken to switch the device off you could:

1) Increase the _________ of the capacitor

2) _________ the resistance of the resistor R

Words – charge, 1, capacitance, increase, 0, off, on

Page 40: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

Gates

• The most basic digital devices are called gates.

• Gates got their name from their function of allowing or blocking (gating) the flow of digital information.

• A gate has one or more inputs and produces an output depending on the input(s).

• A gate is called a combinational circuit.

• Three most important gates are: AND, OR, NOT

Page 41: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

LOGIC GATESLogic generally has only 2 states, ON or OFF, represented by 1 or 0. Logic gates

react to inputs in certain ways.

Symbol for AND gate

INPUT A

INPUT B

OUTPUT Q

Logic can be used to control devices according to certain conditions, such as “switch on a fan if it’s hot AND the sun is out”. Look at the diagrams below.

The AND gate will only switch on its output Q, if Input A is ON and Input B is ON. This can be

shown in a Truth Table, 0=OFF and 1=ON.

A B Q

0 0 0

0 1 0

1 0 0

1 1 1

If both inputs are OFF the output is OFF

Even if one input is ON the output is OFF

Only if A =1 and B =1 will the output switch on

Page 42: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

MORE LOGIC GATES

Try and work out the truth tables for these gates. The rule will help you.

A B Q

0 0

0 1

1 0

1 1

NOT

ORA

B

Q

NANDA

B

Q

NORA

B

Q

XORA

B

Q

A Q

RULE: Q = 0 if A OR B =1

A B Q

0 0

0 1

1 0

1 1

RULE: Q = 0 if A AND B =1

A B Q

0 0

0 1

1 0

1 1

ANDA

B

Q

RULE: Q = 1 if A AND B =1 RULE: Q = 1 if A OR B =1

A B Q

0 0

0 1

1 0

1 1

A B Q

0 0

0 1

1 0

1 1

A Q

0

1

RULE: Q = 0 if A =1

Q = 1 if A OR B =1, but NOT both

Page 43: Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.

LOGIC GATES

A B Q

0 0 0

0 1 1

1 0 1

1 1 1

NOT

ORA

B

Q

NANDA

B

Q

NORA

B

Q

XORA

B

Q

A Q

RULE: Q = 0 if A OR B =1

A B Q

0 0 1

0 1 0

1 0 0

1 1 0

RULE: Q = 0 if A AND B =1

A B Q

0 0 1

0 1 1

1 0 1

1 1 0

ANDA

B

Q

RULE: Q = 1 if A AND B =1 RULE: Q = 1 if A OR B =1

A B Q

0 0 0

0 1 0

1 0 0

1 1 1

A B Q

0 0 0

0 1 1

1 0 1

1 1 0

A Q

0 1

1 0

RULE: Q = 0 if A =1

Q = 1 if A OR B =1, but NOT both