1 / 17

Chapter #7: Measuring Light

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.

elgin
Télécharger la présentation

Chapter #7: Measuring Light

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

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

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

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

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

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

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

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

  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. 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

  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. 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

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

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

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

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

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

More Related