Software ADC Comparator?


Results 1 to 14 of 14

Threaded View

  1. #4
    Join Date
    Sep 2006
    Location
    Indiana, USA
    Posts
    72


    Did you find this post helpful? Yes | No

    Default No..

    the first suggestion by mackrackit doesn't take into account the level of "difference"
    i.e. setting the output high based on the amount of change of a varible number, not just by the fact that it changed for one.
    and its classified skimask! but, heres an example:

    say my input is a light dependent resistor, or solar cell, whatever, and its sitting in a dark room, doing nothing, no output. then someone turns on a dim light, the pic would detect the change in light level in the span of one loop, and toggle an output on and off one time because it saw a positve change in voltage on the ADC.
    Then it readjusts for the new light level in the room and sits there, doing nothing, but someone makes the light a bit brighter, and again the output toggles because there is a positve change in light. so therefore, it only toggles the output because there is a positve change in light, it would ignore someone turning the light off, or dimming it. I also need control of how much of a positive change it responds to, like the amount that the voltage level is increased, so if its a very slight change, nothing happens, but if there is a large change, it will respond..
    this is really messing with my poor ol' brain! but i seem to end up asking more questions on here than answering anyway!

    Also, when i say "readjusts" i mean the circuit automatically readjusts its self, like autogain, or something!

    thanks again for your help!
    Last edited by Ryan7777; - 13th February 2008 at 04:17.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 03:18
  2. Comparator circuit thoughts....
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th October 2009, 07:04
  3. Software Stack
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th December 2007, 11:04
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 16:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 02:55

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