500K or less triggering of a pin.


Results 1 to 8 of 8

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Oh Guys, stop struggling....

    10K between the PIC pin and 0v. Your 500K between the pic in and +5v. Use an ADC pin. If your device is subject to noise pick-up, then put a 100nF across the 10K. That's it.

    Calibration. Take an ADC reading with a Resistor at 500k. This is your minimum 'threshold'. Take another ADC reading with a Resistor at say 450k. This is your max threshold.

    You now have two values... at which point you decide to signal your 'event' condition between thos two points is up to you. You may have to use 10-bit ADC as the values will be pretty tight and 8-bit won't give you much leeway.
    I was going to suggest using a PIC with ADC, but I thought that the ADC's needed a fairly low source impedance to drive them...
    From the 16F727 data, 9.3 A/D Acquisition Requirements,
    "The maximum recommended impedance for analog sources is 10 kΩ."

    Is this not true for most of the PICs?


    Some of the PICs have analog voltage comparators don't they? Perhaps they'd be better suited to the voltage divider with 500K resistor? I guess I don't know what the input impedance is on those voltage comparator inputs.
    Last edited by Byte_Butcher; - 12th March 2009 at 16:03.

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07

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