Detecting a pulse


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default OK...

    It seems a sentence was left out of my posting!

    I wish to log the power failure durations, times and dates as well and that's why I would like to use a PIC as well an an RTC.
    The PIC cirucit would either form part of an existing circuit or be battery/solar powered and have little or no draw on my home circuit.

    Kind regards
    Dennis

    Quote Originally Posted by Dennis View Post
    Hi all

    Because of the amount of power failures in our area , I am building a circuit to auto-switch my generator because it's quite a mission getting up at 2am sometimes to go and switch it on when there is a power failure.

    I plan to use an opto-isolator initially to detect the power failure however some form of zero-crossing detection may also be a consideration.

    This of course raises a good few (maybe silly for some) questions:
    1.Which would most accurately detect the pulses ? PULSIN or COUNT? are there other methods?
    2.Using either of these does the incoming pulse have to be a known value or can on just check to see if a pulse (of any/unknown size) exists ?
    3.Have I chosen the correct RTC (DS1302) for the job ?

    I have been searching the forum for the last few days but haven't yet found the right example.

    I really would appreciate some advice or guidance on how to detect the pulse and absence of a pulse just to get me started.


    Kind regards

    Dennis

  2. #2
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Aha!
    I figured there must be more to it than just getting the beastie running at 2AM.

    Data logging is a good use for a PIC.

    Just detecting lack of AC power to start a motor is not.

    steve

Similar Threads

  1. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  2. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  3. How to reverse polarity on output pulse??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th June 2009, 13:25
  4. Replies: 3
    Last Post: - 13th September 2008, 17:40
  5. Pulse Frequency Multiplication
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st August 2005, 10:39

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts