Slide 1 Chapter #7: Measuring Light Light Sensor Circuit Parts (1) (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 Light TestPhotoresistor.bs2 HIGH 2 PAUSE 100 RCTIME 2, 1, time Excerpt from page 192
Slide 3 Chapter #7: Measuring Light TestPhotoresistor.bs2 Excerpt from page 151, 192 ReadPotWithRcTime.bs2
Slide 4 Chapter #6: Measuring Light Excerpt from page 193, 195, 196 Activity #2: Graphing Light Measurements
Slide 5 Chapter #7: Measuring Light Excerpt from page
Slide 6 Chapter #7: Measuring Light Excerpt from page 198 Activity #3: Tracking Light Events
Slide 7 Chapter #7: Measuring Light Excerpt from page StoreLightMeasurementsInEeprom.bs2ReadLightMeasurementsFromEeprom.bs2
Slide 8 Chapter #6: Digital Display Excerpts from pages 165
Slide 9 Chapter #6: Digital Display Display Parts (8) Resistors – 1 kΩ (brown-black-red) (5) Jumper wires (1) 7-segment LED Excerpts from pages 166-7,
Slide 10 Chapter #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 Excerpts from pages √ 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 Display Excerpt from: DisplayDigits.bs2 '{$STAMP BS2} '{$PBASIC 2.5} OUTH = % DIRH = % ' BAFG.CDE ' Digit: OUTH = % ' 0 PAUSE 1000 OUTH = % ' 1 PAUSE 1000 OUTH = % ' 2 PAUSE 1000 OUTH = % ' 3 PAUSE 1000 OUTH = % ' 4 PAUSE 1000 Excerpts from pages
Slide 12 Chapter #6: Digital Display FOR index = 0 TO 9 LOOKUP index, [ % , % , % , % , % , % , % , % , % , % ], OUTH DEBUG " ", DEC2 index, " ", BIN8 OUTH, CR PAUSE 1000 NEXT Excerpt from: DisplayDigitsWithLookup.bs2 Excerpts from pages 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 Blocks Excerpts from pages 261, 263, 265
Slide 14 Chapter #9: Electronic Building Blocks Excerpts from pages Transistor
Slide 15 Chapter #9: Electronic Building Blocks Excerpts from pages
Slide 16 Chapter 10: Running the Whole Show Excerpts from pages
Slide 17 Chapter 10: Running the Whole Show Excerpts from pages 287, 291