NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Sensors, Actuators, and Robotics » Capacitance Output Humidity Sensor and LM34 Temperature - Breadboard and Data Processing Differences
November 11, 2011 by JimSmith4321 |
Can you please provide an overview of how to obtain data from capacitance output humidity sensors? I recently purchased a couple Honeywell HCH-1000 humidity sensors (not to be confused with the Lee-Dickens HC1000), thinking I could obtain humidity in the same manner as temperature using an LM34 and the ADC features of an AVR. After reading the reference material obtained from the Honeywell web site (which I'm sure to someone who knows what they are doing is well written) I'm thinking it's much more involved than that. Thank you. |
---|---|
November 13, 2011 by Ralphxyz |
Hi JimSmith4321 aka Jim. Google AVR Reading Capacitance or other phrase with AVR and Capacitance in it. Here is one link that looks promising, you have to step through the discussion points, but just at a glance it looks good it certainly is very detailed and nicely laid out. It sure would be nice to see a discussion of capacitance measurement here in the Nerdkit forum. Ralph |
November 13, 2011 by Ralphxyz |
And of course you started here! Ralph |
November 13, 2011 by JimSmith4321 |
Thank you Ralphxyz. |
November 14, 2011 by Ralphxyz |
I meant that you had at least started with the Nerdkit Capacitance project in order to get stated with your project. JimSmith said:
yup I agree, like I said I would like to see some more discussion about measuring capacitance or even more discussion on the Nerdkit Capacitance Touch Sensor. The Honeywell documentation seems to be all over the place, not that easy to follow. From that project Mike or Humberto say:
Essentially to measure capacitance you need to know resistance and time, Using a 555 for the time component is one method but the Nerdkit method uses just the mcu they use a know voltage with a discovered time.
So you end up with T = RC now if I could remember my high school algebra I could give you C knowing T and R. Actually if I googled RC I would probable find a web app to input the values and get the result. Here is one RC Calculator I used:
Just as a example. So now all you gotta do is learn how to use the mcu as a timer for pin change (voltage drop) :-) Ralph |
November 14, 2011 by JimSmith4321 |
After writing my last post I spent a good deal of time studying the Honeywell docs and other websites about capacitance and came to the same conclusion. In fact, the basic idea is quite simple. Capacitance = Time / R. I suspect the real issue is going to be knowing how much time (not how many mcu instruction cycles) has elapsed from the beginning of the discharge to 0 volts. |
November 14, 2011 by hevans (NerdKits Staff) |
Hi JimSmith4321, It looks like you guys have the basic idea behind how to do this down, I'm just going to throw in a few more things to think about. Saying Time=R*C can be a bit misleading. The product of R and C does come out as a time, however it is not the time it takes the capacitor to reach its final value, it is the time it will take the capacitor to charge up to about 63% of its final value. It will take some thought to figure out the relationship between the time you measure with an analog comparator, and the true RC time constant. A second issue you will have is figuring out what R is in your system. In our capacitive halloween video we didn't really care what the absolute time constant was since we only really needed to measure relative changes in the RC time constant. This means we only cared about the changes in the RC product, and as long as R wasn't changing it didn't matter what its absolute value was. If you want to backtrack what C is it will be a little tricker. This is a cool project that touches on a lot of interesting concepts. I look forward to seeing it progress. |
November 14, 2011 by Ralphxyz |
Well Jim should have a fixed resistor in parallel with the Humidity sensor so the resistance will be known. Even using 63% (instantaneous voltage) should be easy to handle as Honeywell does have a graph of capacitance value to RH. Jim can implement a curve in his code to make the transition. I was going to store a lookup table in onboard eeprom or external eeprom if needed for my weather station. Ralph |
Please log in to post a reply.
Did you know that you can connect digital calipers to a microcontroller? Learn more...
|