Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Analog input varying too much on temp sensor (LM335A)


  • Please log in to reply
21 replies to this topic

#21 Michel Trahan

Michel Trahan

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts

Posted 13 May 2011 - 12:24 AM

Please note that the analog-digital converter on the Netduino is 10-bit, but it is not uncommon to lose 1- or 2-bits of accuracy with integrated microcontroller ADCs (for a variance of 2-4 on the 0-1023 scale).

I have been trying to get stable data from a LM335A Temperature sensor and I do get a variation of 3 to 4 out of 1023. You say this is normal ? When I look at the oscilloscope data, it is quite stable (better using 10 pF capacitor) but still a variance of 3 to 4 ... you say this is normal ? The variation on the oscilloscope is does not even equate 2 out of 1023 so why more variance ?

A variance of 3 would make sense since the LM335A Temperature sensor is 1C accuracy which equates to 3 out of 1023, therefore a variance of 3 would be exactly the accuracy of the sensor. Am I making sense here ? But the oscilloscope seems to be more stable than what the Analog pin gives out ... why would that be ? The voltage to be read is more stable than the values obtained by the analog pin reading ... why ?

I use 3.3V with a 300 Ohm resistor and a 10 pF capacitor.

I did see that I have 3.250 instead of 3.3 when I put the oscilloscope on the power thread on the breadboard ... why I do not know ... shouldn't be 3.3 ? (was using USB power)
Started with C in 1985, moved to Vb3 ... to vb6 and stopped. Now started with .Net and learning C# and VB.net and wishing VB.net was on MF !

#22 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 13 May 2011 - 12:56 AM

I have been trying to get stable data from a LM335A Temperature sensor and I do get a variation of 3 to 4 out of 1023. You say this is normal ? When I look at the oscilloscope data, it is quite stable (better using 10 pF capacitor) but still a variance of 3 to 4 ... you say this is normal ? The variation on the oscilloscope is does not even equate 2 out of 1023 so why more variance ?

ADCs are funny things. If you go "expensive" you can get some very tight readings. ADCs in microcontrollers tend to require a bit more love and attention to get good readings. Or so the electrical engineers tell me.

I did see that I have 3.125 instead of 3.3 when I put the oscilloscope on the power thread on the breadboard ... why I do not know ... shouldn't be 3.3 ? (was using USB power)

If your USB port is running at a fairly low voltage, the power regulator may not be able to put out a full 3.3V. In our testing, we get pretty consistent 3.29V-3.31V outputs from them when 5V+ power is input into the Netduino. But there's a minimum voltage drop of 1V or so...

Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.