Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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

2 Slide 2 Chapter #7: Measuring Light TestPhotoresistor.bs2 HIGH 2 PAUSE 100 RCTIME 2, 1, time Excerpt from page 192

3 Slide 3 Chapter #7: Measuring Light TestPhotoresistor.bs2 Excerpt from page 151, 192 ReadPotWithRcTime.bs2

4 Slide 4 Chapter #6: Measuring Light Excerpt from page 193, 195, 196 Activity #2: Graphing Light Measurements

5 Slide 5 Chapter #7: Measuring Light Excerpt from page 196-197

6 Slide 6 Chapter #7: Measuring Light Excerpt from page 198 Activity #3: Tracking Light Events

7 Slide 7 Chapter #7: Measuring Light Excerpt from page 200-203 StoreLightMeasurementsInEeprom.bs2ReadLightMeasurementsFromEeprom.bs2

8 Slide 8 Chapter #6: Digital Display Excerpts from pages 165

9 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, 172-173

10 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 173-174 √ 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.

11 Slide 11 Chapter #6: Digital Display Excerpt from: DisplayDigits.bs2 '{$STAMP BS2} '{$PBASIC 2.5} OUTH = %00000000 DIRH = %11111111 ' BAFG.CDE ' Digit: OUTH = %11100111 ' 0 PAUSE 1000 OUTH = %10000100 ' 1 PAUSE 1000 OUTH = %11010011 ' 2 PAUSE 1000 OUTH = %11010110 ' 3 PAUSE 1000 OUTH = %10110100 ' 4 PAUSE 1000 Excerpts from pages 174-178

12 Slide 12 Chapter #6: Digital Display FOR 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.

13 Slide 13 Chapter #9: Electronic Building Blocks Excerpts from pages 261, 263, 265

14 Slide 14 Chapter #9: Electronic Building Blocks Excerpts from pages 264-265 Transistor

15 Slide 15 Chapter #9: Electronic Building Blocks Excerpts from pages 266-268

16 Slide 16 Chapter 10: Running the Whole Show Excerpts from pages 280-285

17 Slide 17 Chapter 10: Running the Whole Show Excerpts from pages 287, 291


Download ppt "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."

Similar presentations


Ads by Google