Photo-gate timer

From ShawnReevesWiki
Revision as of 14:08, 22 February 2014 by Shawn (talk | contribs)
Jump to navigationJump to search

Specifications

  • Run on a battery.
  • Include a multi-character display, at least four digits.
  • Include a power switch to save the battery.
  • Use a breadboard so it can be modified.
  • Timing of periods of at least 10 s accurate to 0.01s

Circuit

Components

Power supply

Using a 3V LCD display will require us to use one 3V coin cell or two AA or AAA batteries. Or, we could use a 5V phone charger with a 2V power diode, or find a rarer 3V plug-in power supply.

Program

  1. Clear the display
  2. Loop.
    1. Watch for a break in the first gate. If so, reset counter and continue to next loop.
  3. Loop.
    1. increment a counter periodically. Use a period of 10ms or less.
    2. Watch for a break in the second gate. If so, continue to the next section.
  4. Convert the counter to a proper number, if necessary.
  5. Display the number
  6. Return to the idling loop.

Datasheets

See also

Circuits for teaching physics