+ Reply to Thread
Results 1 to 10 of 10

Thread: pic to detect voltage change

  1. #1
    max_imum2000 Bad
    Join Date
    Mar 2006
    Posts
    83

    Default pic to detect voltage change

    hello
    i am trying to make a pic detect a small voltage change 0.2v to 0.6 volt
    not measure it , just detect its change
    i have to use 16f628, anything else is not an option
    any suggestions ?


  2. #2
    Marks256 Excellent Marks256 Excellent Marks256 Excellent Marks256 Excellent Marks256 Excellent
    Join Date
    Jul 2006
    Location
    Minnesota, USA
    Posts
    2,390

    Default

    Analog to Digital converter, maybe?
    There is no "I" in "team", unless Apple makes it... Then it would be iTeam.

  3. #3
    Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent
    Join Date
    Mar 2005
    Location
    Brisbane Australia
    Posts
    6,808

    Default

    Check out the comparator and voltage reference sections of the data sheet. You can set Vref to 5/24 * 2 = 0.4V and use a comparator to detect if the other input is above or below it.

    Mike.

  4. #4
    akg
    akg is offline
    akg Newbie
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,406

    Default

    as already suggested use the internal comparators
    Gods own Country
    Incredible !ndia

    www.flickr.com/photos/_akg/

    "Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."

  5. #5
    kamdy Newbie
    Join Date
    Mar 2006
    Location
    Baghdad Iraq
    Posts
    52

    Default

    I think it is better to amplify the voltage 10 times using low noise operational amplifier such as TLO71 to get greater ampltude and and then use a window comparator to detect the change of the voltage

  6. #6
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,794

    Default

    Quote Originally Posted by kamdy
    I think it is better to amplify the voltage 10 times using low noise operational amplifier such as TLO71 to get greater ampltude and and then use a window comparator to detect the change of the voltage
    Regardless of amplifying it or not, it makes obvious sense to use the internal comparators in the PIC - there's also no requirement for a window comparator, as he's not looking to detect a 'window', just above or below a certain value.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  7. #7
    max_imum2000 Bad
    Join Date
    Mar 2006
    Posts
    83

    Default

    thanks all
    i know about using an opamp
    but actually i am trying to minmize the use of components

    so is it possible to just connect the source to the input pins of the comparator and set the Vref. and thats it
    with no amplification or whatever ?

  8. #8
    kamdy Newbie
    Join Date
    Mar 2006
    Location
    Baghdad Iraq
    Posts
    52

    Default

    what is the maximum voltage of ths source you are using

  9. #9
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,794

    Default

    Quote Originally Posted by max_imum2000
    thanks all
    i know about using an opamp
    but actually i am trying to minmize the use of components

    so is it possible to just connect the source to the input pins of the comparator and set the Vref. and thats it
    with no amplification or whatever ?
    Read the datasheet about it!, there are low and high ranges for Vref, the low range covers from 0.2V to about 3V in 0.2V increments.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  10. #10
    Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent
    Join Date
    Mar 2005
    Location
    Brisbane Australia
    Posts
    6,808

    Default

    Quote Originally Posted by max_imum2000
    thanks all
    i know about using an opamp
    but actually i am trying to minmize the use of components

    so is it possible to just connect the source to the input pins of the comparator and set the Vref. and thats it
    with no amplification or whatever ?
    just do as I said earlier.

    Mike.

+ Reply to Thread

Similar Threads

  1. Voltage
    By ElectroMaster in forum Electronic Theory
    Replies: 44
    Latest: 8th August 2007, 05:35 PM
  2. measuring transconductance(gm)
    By walters in forum General Electronics Chat
    Replies: 24
    Latest: 6th February 2006, 08:50 AM
  3. Voltage reference with a zener diode
    By Futterama in forum General Electronics Chat
    Replies: 7
    Latest: 28th January 2006, 08:35 AM
  4. 12vdc -> 7.5vdc transformer
    By gulaz in forum Electronic Projects Design/Ideas/Reviews
    Replies: 10
    Latest: 7th May 2004, 07:59 PM
  5. Accurate low voltage diff measurement
    By Oznog in forum General Electronics Chat
    Replies: 3
    Latest: 3rd May 2004, 04:41 AM

Tags for this Thread