• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

2.4. Logic and Timer

The intelligence for this project will be provided by a script you create and run on your computer, such as the one in Exhibit B. This script (the logic component) will receive input from the computer's internal clock and motion detectors. It will then issue commands to the control mechanism to turn the porch light on or off.

For the script described in this section to work properly, you should have a serial port on your computer and you should leave your computer running at all times.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint