Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Robotics with the Board of Education Shield for Arduino

Robotics with the Board of Education Shield for Arduino

Activity 2: Measure Light Levels Over a Larger Range

The circuit in the previous activity only works over a limited light range.  You might get the Activity #1 circuit all nice and calibrated in one room, then take it to a brighter room and find that all the voltage measurements will sit at the maximum value.  Or, maybe you’ll take it into a darker room, and the voltages will end up never making it past 0.1 V.

This activity introduces a different phototransistor circuit that the Arduino can use to measure a much wider range of light levels.  This circuit and sketch can return values ranging from 0 to over 75,000.  Be aware: this time the smaller values indicate bright light, and large values indicate low light.  

Introducing the Capacitor

A capacitor is a device that stores charge, and it is a fundamental building block of many circuits.  Batteries are also devices that store charge, and for these activities it will be convenient to think of capacitors as tiny batteries that can be charged, discharged, and recharged.

How much charge a capacitor can store is measured in farads (F).  A farad is a very large value that’s not practical for use with these BOE Shield-Bot circuits.  The capacitors in your kit store fractions of millionths of farads.  A millionth of a farad is called a microfarad, and it is abbreviated μF.  This one stores one tenth of one millionth of a farad: 0.1 μF. 

Common Capacitance Measurements

microfarads:           (millionths of a farad), abbreviated μF        1 μF = 1×10-6 F

nanofarads:           (billionths of a farad), abbreviated nF         1 nF = 1×10-9 F

picofarads:             (trillionths of a farad), abbreviated pF        1 pF = 1×10-12 F

The 104 on the 0.1 μF capacitor’s case is a measurement in picofarads or (pF).  In this labeling system, 104 is the number 10 with four zeros added, so the capacitor is 100,000 pF, which is 0.1 μF. 

(100,000) × (1 × 10-12) F     =      (100 × 103) × (1 × 10-12) F

= 100 × 10-9 F                    =       0.1 × 10-6 F

     = 0.1 μF.

 


Printer-friendly version
Ohm’s Law
Prev
Building the Photosensitive Eyes
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress