Intro to Electronics Week 5 Intro to Electronics, Week 5 Last - - PowerPoint PPT Presentation

intro to electronics
SMART_READER_LITE
LIVE PREVIEW

Intro to Electronics Week 5 Intro to Electronics, Week 5 Last - - PowerPoint PPT Presentation

Intro to Electronics Week 5 Intro to Electronics, Week 5 Last updated Nov. 14, 2012 1 Build a Larson scanner (red moving Cylon eye) TODAYS P PROJECT Intro to Electronics, Week 5 Last updated Nov. 14, 2012 2 Analog vs.


slide-1
SLIDE 1

Intro to Electronics

Week 5

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 1

slide-2
SLIDE 2

TODAY’S P PROJECT

Build a Larson scanner (red moving Cylon eye)

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 2

slide-3
SLIDE 3

Analog vs. digital

  • Continuous range of

voltages

– Can use any value within certain limits – More susceptible to noise

  • Useful for sound, light,

sensing, etc.

  • Two voltages — high

and low

– Can only use these two values (0 and 1) – Can lose some information

  • Useful for data storage,

processing, etc.

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 3

slide-4
SLIDE 4

Analog vs. digital

  • Continuous range of

voltages

– Can use any value within certain limits – More susceptible to noise

  • Useful for sound, light,

sensing, etc.

  • Two voltages — high

and low

– Can only use these two values (0 and 1) – Can lose some information

  • Useful for data storage,

processing, etc.

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 4

  • Plenty of reasons to use both!
slide-5
SLIDE 5

Digital logic

  • We’ll focus here on digital
  • Started with this a couple of weeks ago

– Mainly talked about logic gates

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 5

slide-6
SLIDE 6

Digital logic

  • More complex parts exist than just gates:

– Multiplexers

  • Use one signal to control several outputs

– Latches

  • Fundamental storage element — store a bit at a time

– Adders, multipliers

  • Mathematical elements (add/multiply numbers)

– etc.

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 6

slide-7
SLIDE 7

Making zeroes and ones

  • Need to hold stable high and low voltages
  • How do we do that?

– Already know how to set a high or low voltage

  • Use a switch to connect something to either positive
  • r negative

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 7

slide-8
SLIDE 8

Pull-up resistor

6 V 1 k

Out

  • When switch is

connected, output is 0 V (low)

  • When switch is

disconnected, output is ~6 V (high)

  • Avoids “floating”

(unpredictable) output

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 8

slide-9
SLIDE 9

Pull-up resistor

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 9

slide-10
SLIDE 10

Pull-up resistor

  • Measure it with a multimeter!

– Watch the voltage between the negative end of the batteries and the leg of the resistor that connects to the switch – Note the difference at different positions of the switch

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 10

slide-11
SLIDE 11

Decimal counter

  • New component!
  • Ten (main) outputs

– We’ll refer to them as outputs 0 through 9

  • One (main) input

– Called the “clock”

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 11

slide-12
SLIDE 12

Decimal counter

  • Clock oscillates (goes back and forth)
  • Each time it goes high:

– The currently active output turns off – The next output turns on

  • Counts from 0 to 9 and then loops back to 0

– Like a wheel in an old odometer

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 12

slide-13
SLIDE 13

What works as a clock?

  • Anything that alternates between high

and low

– Quartz crystals – Resonant LC networks – Part of your credit cards’ magnetic stripes – 555 timer outputs!

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 13

slide-14
SLIDE 14

Let’s try it

6 V

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 14

Just the clock first: This is same 555 circuit as last week, just with different resistors (and therefore a different frequency).

slide-15
SLIDE 15

Let’s try it

6 V

4017

All gray resistors are 220 1 5 4 2 6 7 3 9 8

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 15

LEDs (just to show which

  • utput’s on)

Elsewhere on the same breadboard: Connect up the counter. All of the resistors are the same.

slide-16
SLIDE 16

Let’s try it

6 V

4017

All gray resistors are 220 1 5 4 2 6 7 3 9 8

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 16

Clock LEDs (just to show which

  • utput’s on)

Put them together!

slide-17
SLIDE 17

Let’s try it

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 17

slide-18
SLIDE 18

What now?

  • We have a sequence of flashing lights
  • Can we make them go in a line

back and forth?

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 18

slide-19
SLIDE 19

Make a table!

  • Let’s use six LEDs

instead of 10

  • At each step, let’s pick

which LED turns on

Step ( (output) Whi hich L h LED t D to li light ht? 1 1 2 2 3 3 4 4 5 5 6 4 7 3 8 2 9 1

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 19

slide-20
SLIDE 20

Make another table!

LED D Steps w whe hen i n it s sho hould ld b be o

  • n

n 1 1 or 9 2 2 or 8 3 3 or 7 4 4 or 6 5 5

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 20

Step ( (output) LED D 1 1 2 2 3 3 4 4 5 5 6 4 7 3 8 2 9 1

slide-21
SLIDE 21

This or that

  • Need some way to say “when A or B is on,

make Y turn on as well”

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 21

slide-22
SLIDE 22

This or that

  • Already got one: the OR gate

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 22

A B Y A A B B Y Y 1 1 1 1 1 1 1

slide-23
SLIDE 23

OR gate chip (74HC32)

  • Has four OR gates built in

– How handy — we need four of them

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 23

slide-24
SLIDE 24

The setup

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 24

slide-25
SLIDE 25

LED 1

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 25

slide-26
SLIDE 26

LED 2

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 26

slide-27
SLIDE 27

LED 3

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 27

slide-28
SLIDE 28

LED 4

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 28

slide-29
SLIDE 29

LEDs 0 and 5

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 29

slide-30
SLIDE 30

Done!

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 30

6 V

4017 32

All gray resistors are 220

555

0.22 µF 0.01 µF 180 k 180 k

slide-31
SLIDE 31

Done!

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 31

slide-32
SLIDE 32

That’s everything!

  • Thanks again for coming to the class!

Last updated Nov. 14, 2012 Intro to Electronics, Week 5 32