Slide 1 Chapter #7: Measuring Light Light Sensor Circuit Parts (1) (1)Resistor – 220 Ω...
-
Upload
jeffry-clifford-mills -
Category
Documents
-
view
218 -
download
0
Transcript of Slide 1 Chapter #7: Measuring Light Light Sensor Circuit Parts (1) (1)Resistor – 220 Ω...
Slide 1
Chapter #7: Measuring LightChapter #7: Measuring LightLight Sensor Circuit Parts(1) Resistor – 220 Ω (red-red-brown) (1) Capacitor – 0.1 F(1) Capacitor – 0.01 F
(1) Jumper wire (1) Photoresistor
Light Sensor Circuit
Excerpts from pages 190 – 192…(Activity #1: Building and Testing the Light Meter
Slide 2
Chapter #7: Measuring LightChapter #7: Measuring Light
TestPhotoresistor.bs2
HIGH 2
PAUSE 100
RCTIME 2, 1, time
Excerpt from page 192
Slide 3
Chapter #7: Measuring LightChapter #7: Measuring Light
TestPhotoresistor.bs2
Excerpt from page 151, 192
ReadPotWithRcTime.bs2
Slide 4
Chapter #6: Measuring LightChapter #6: Measuring Light
Excerpt from page 193, 195, 196
Activity #2: Graphing Light Measurements
Slide 5
Chapter #7: Measuring LightChapter #7: Measuring Light
Excerpt from page 196-197
Slide 6
Chapter #7: Measuring LightChapter #7: Measuring Light
Excerpt from page 198
Activity #3: Tracking Light Events
Slide 7
Chapter #7: Measuring LightChapter #7: Measuring Light
Excerpt from page 200-203
StoreLightMeasurementsInEeprom.bs2
ReadLightMeasurementsFromEeprom.bs2
Slide 8
Chapter #6: Digital DisplayChapter #6: Digital Display
Excerpts from pages 165
Slide 9
Chapter #6: Digital DisplayChapter #6: Digital Display
Display Parts(8) Resistors – 1 kΩ (brown-black-red)(5) Jumper wires(1) 7-segment LED
G
F
A
B
E
D
C
10 9 7 6
1 2 4 5
Com monCathode
Com monCathode
E D C DP
G F A B
8
3
E C B A F
LED ’s
3 8
G DP
1 4 6 7 9 10 5
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2 X3
Vdd
Vss
Vin
EDP
CD G F A B
Excerpts from pages 166-7, 172-173
E C BAF
LED ’s
com m on
GDP
Vss
1 k
P8
P9
P10
P11
P12
P13
P14
P15
Slide 10
Chapter #6: Digital DisplayChapter #6: Digital Display
SegmentTestWithHighLow.bs2'{$STAMP BS2}'{$PBASIC 2.5}
pinCounter VAR Nib
DEBUG "I/O Pin", CR, "-------", CR
FOR pinCounter = 8 TO 15
DEBUG DEC2 pinCounter, CR HIGH pinCounter PAUSE 1000 LOW pinCounter
NEXT
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2 X3
Vdd
Vss
Vin
EDP
CD G F A B
Excerpts from pages 173-174
G
F
A
B
E
D
C
10 9 7 6
1 2 4 5
Com monCathode
Com monCathode
E D C DP
G F A B
8
3
√ Predict which segment will glow. How long will each segment glow? In what order will they glow?
√ Run the example program shown on this slide and compare to your predictions.
Slide 11
Chapter #6: Digital DisplayChapter #6: Digital Display
Excerpt from: DisplayDigits.bs2
'{$STAMP BS2}'{$PBASIC 2.5}
OUTH = %00000000 DIRH = %11111111' BAFG.CDE ' Digit:OUTH = %11100111 ' 0PAUSE 1000OUTH = %10000100 ' 1PAUSE 1000OUTH = %11010011 ' 2PAUSE 1000OUTH = %11010110 ' 3PAUSE 1000OUTH = %10110100 ' 4PAUSE 1000
OUTH = %00000000DIRH = %11111111
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2X3
Vd
dV
ssV
in
OUTH = %11010110
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2X3
Vdd
Vss
Vin
‘ BAFG.CDE
Excerpts from pages 174-178
G
F
A
B
E
D
C
10976
1245
CommonCathode
CommonCathode
E DC DP
G FA B
8
3
Slide 12
Chapter #6: Digital DisplayChapter #6: Digital DisplayFOR index = 0 TO 9
LOOKUP index, [ %11100111, %10000100, %11010011, %11010110, %10110100, %01110110, %01110111, %11000100, %11110111, %11110110 ], OUTH
DEBUG " ", DEC2 index, " ", BIN8 OUTH, CR
PAUSE 1000
NEXT
Excerpt from: DisplayDigitsWithLookup.bs2
Excerpts from pages 180-181
Lookup tables are useful for many things.
√ Make notes on how the LOOKUP command is used to
place a predetermined sequence of bit patterns into the
OUTH variable.
Slide 13
Chapter #9: Electronic Building Chapter #9: Electronic Building BlocksBlocks
Excerpts from pages 261, 263, 265
Slide 14
Chapter #9: Electronic Building Chapter #9: Electronic Building BlocksBlocks
Excerpts from pages 264-265
Transistor
Slide 15
Chapter #9: Electronic Building Chapter #9: Electronic Building BlocksBlocks
Excerpts from pages 266-268
Slide 16
Chapter 10: Running the Whole Chapter 10: Running the Whole ShowShow
Excerpts from pages 280-285
Slide 17
Chapter 10: Running the Whole Chapter 10: Running the Whole ShowShow
Excerpts from pages 287, 291