170 likes | 346 Views
Chapter #7: Measuring Light. Light Sensor Circuit Parts 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.
E N D
Chapter #7: Measuring Light • Light Sensor Circuit Parts • 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
Chapter #7: Measuring Light TestPhotoresistor.bs2 HIGH 2 PAUSE 100 RCTIME 2, 1, time Excerpt from page 192
Chapter #7: Measuring Light ReadPotWithRcTime.bs2 TestPhotoresistor.bs2 Excerpt from page 151, 192
Chapter #6: Measuring Light Excerpt from page 193, 195, 196 Activity #2: Graphing Light Measurements
Chapter #7: Measuring Light Excerpt from page 196-197
Chapter #7: Measuring Light Excerpt from page 198 Activity #3: Tracking Light Events
Chapter #7: Measuring Light StoreLightMeasurementsInEeprom.bs2 ReadLightMeasurementsFromEeprom.bs2 Excerpt from page 200-203
Chapter #6: Digital Display Excerpts from pages 165
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
Chapter #6: Digital Display √ Predict which segment will glow. How long will each segment glow? In what order will they glow? 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 √ Run the example program shown on this slide and compare to your predictions. Excerpts from pages 173-174
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
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 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. Excerpts from pages 180-181
Chapter #9: Electronic Building Blocks Excerpts from pages 261, 263, 265
Chapter #9: Electronic Building Blocks Transistor Excerpts from pages 264-265
Chapter #9: Electronic Building Blocks Excerpts from pages 266-268
Chapter 10: Running the Whole Show Excerpts from pages 280-285
Chapter 10: Running the Whole Show Excerpts from pages 287, 291