Connect with us

Humidity Sensor Problem

Discussion in 'Sensors and Actuators' started by shegxy, Mar 7, 2013.

Scroll to continue with content
  1. shegxy

    shegxy

    1
    0
    Mar 6, 2013
    My whole circuit is a humidity sensing/control circuit. I have got a sensor that senses humidity; however its output is capacitance (the capacitance across its terminals changes with change in humidity). The challenge with it is the range of the capacitance change is very small (about 200 Pico farads). Secondly, this capacitance has to be fed to a microcontroller. The microcontroller only accepts voltage signals as its inputs (or so I think). The controller is PIC 16F877A. I was advised to convert the capacitance to voltage using a weihn bridge then amplify the resulting voltage using LM744.
    I have done this but I am not making headway with both the weihn bridge circuit and the amplifier. Can anyone help with values of components I can use and help with the circuit design?
     
  2. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    You might find it best to use a dedicated chip to do the measurement like the AD7745/AD7746 as the accuracy and resolution will be very good and than just interface that to the micro...
     
  3. Electrobrains

    Electrobrains

    259
    5
    Jan 2, 2012
    see below...
     
    Last edited: Mar 7, 2013
  4. Electrobrains

    Electrobrains

    259
    5
    Jan 2, 2012
    I doubt that you need high accuracy measurement with signal conditioning etc. I suppose the humidity sensor itself has several % error margin.

    Instead I suggest a very simple, low-cost Capacitive Sensor Interface for your uC.

    With the circuit below, you can measure the capacitance.

    Function: The digital uC output keeps the Capacitor shortened. When "0" is output, T1 switches off and the capacitor will start charging. From that point you start measuring the time. When the voltage has reached "ref", the comparator will switch its output and tell you to end the time measuring.

    The voltage over C is linearly proportional to the time, if the current is constant.
    If you want high accuracy, you can put a Constant Current Source in place of R1 and a precision shunt voltage reference instead of R3.
    If you still want high accuracy with R1, you can linearize the RC curve in software.
    If you don't need high accuracy, you can measure the time linearly, but use a higher sensor voltage U+.
    The higher the voltage U+, the higher accuracy you will get. Just look that the maximum voltage over C is not exceeded (you could put a Zener diode over it as protection). The reference voltage should also be less than the max value specified for the comparator.

    You might as well be able to use a normal OP-Amp instead of the comparator.

    Micro controllers with built-in A/D converters could probably take over the task of the comparator, if the Capacitor would be large and the charging slow.

    [​IMG]

    p.s.1: Some uC's already have the comparator built-in.
    p.s.2: If you put a fixed (precision) Capacitor at C and use a Potentiometer with a serial Resistor instead of R1, you can in a similar way measure the Position of the Potentiometer or Rheostat (especially useful if your uC doesn't have A/D Converters).
     
  5. BobK

    BobK

    7,664
    1,677
    Jan 5, 2010
    Last edited: Mar 7, 2013
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-