Author Topic: Vout too high on 2 out of 3 MCP9701 temperature sensors  (Read 849 times)

0 Members and 1 Guest are viewing this topic.

Offline pyroespTopic starter

  • Regular Contributor
  • *
  • Posts: 180
  • Country: be
    • Nicolas Electronics
Vout too high on 2 out of 3 MCP9701 temperature sensors
« on: February 16, 2020, 02:24:04 am »
I bought three MCP9701 temperature sensors in SOT23-3 package made by microchip to use for doing some PWM controlled fan speed.

The analog output of the temp sensor is the following equation:
Vout = Tc x Ta + V0
Tc = Temp Coeff = 19.5mV/°C
Ta = Ambient temp
V0 = Vout at 0°C = 400mV

So for an ambient temperature of around 25°C I should get a Vout of around 800mV.

The first one I tried gave an output of around 2.3V when powered at5V.
The 2nd one has an output of 2.9V, also powered from 5V.

I'm not sure what's going...
I've soldered these onto adapter boards so that I can put them on a breadboard for testing.
I did not put my soldering iron on the pins longer than I usually do, which isn't long, so I didn't fry them. Soldering these went without issues.
I've tried adding a pull-down but that didn't change much to the output.
It's a 3 pin chip, I checked and rechecked the connections.
There is no circuit, I just connected GND and Vdd and measured the output with a multimeter and scope.

I cannot believe Murphy got me twice in a row with 2 dead temperature sensors out of the tape.

I haven't tried the last one yet.

Hoping someone can help.
 

Offline DrG

  • Super Contributor
  • ***
  • !
  • Posts: 1199
  • Country: us
Re: Vout too high on 2 out of 3 MCP9701 temperature sensors
« Reply #1 on: February 17, 2020, 03:59:37 am »
I bought three MCP9701 temperature sensors in SOT23-3 package made by microchip to use for doing some PWM controlled fan speed.

The analog output of the temp sensor is the following equation:
Vout = Tc x Ta + V0
Tc = Temp Coeff = 19.5mV/°C
Ta = Ambient temp
V0 = Vout at 0°C = 400mV

So for an ambient temperature of around 25°C I should get a Vout of around 800mV.

The first one I tried gave an output of around 2.3V when powered at5V.
The 2nd one has an output of 2.9V, also powered from 5V.

I'm not sure what's going...
I've soldered these onto adapter boards so that I can put them on a breadboard for testing.
I did not put my soldering iron on the pins longer than I usually do, which isn't long, so I didn't fry them. Soldering these went without issues.
I've tried adding a pull-down but that didn't change much to the output.
It's a 3 pin chip, I checked and rechecked the connections.
There is no circuit, I just connected GND and Vdd and measured the output with a multimeter and scope.

I cannot believe Murphy got me twice in a row with 2 dead temperature sensors out of the tape.

I haven't tried the last one yet.

Hoping someone can help.

Wish I had some magic bullet for ya, but I don't. I looked through the datasheet and there is no reasonable explanation for your results that I can see...other than:

1. The chips are bad or not what you think they are. Were they purchased from a reputable source? Do they have markings consistent with Microchip's markings as per the data sheet?

2. There [is] a connection problem. You checked, I know. Maybe check while assuming nothing at all. Including whether the carrier board is wired as you thing, your breadboard is not messed up, your supply really is 5V - all that stuff.

There is no way that I can see for a Vo of 2.3V unless your temp is ~97 C [(2300-400) / 19.5]. No amount of error or need for calibration or self-heating could give you that in my view.

I'm curious how this works out so please let us know.

edit: does Vo change at all if you hit it with a hair dryer or heat gun or otherwise raise the temperature?
« Last Edit: February 17, 2020, 04:16:14 am by DrG »
- Invest in science - it pays big dividends. -
 
The following users thanked this post: pyroesp

Offline pyroespTopic starter

  • Regular Contributor
  • *
  • Posts: 180
  • Country: be
    • Nicolas Electronics
Re: Vout too high on 2 out of 3 MCP9701 temperature sensors
« Reply #2 on: February 17, 2020, 10:07:23 am »
1. I bought then from digikey a few months ago. I didn't really pay that much attention to the markings but from what I remember it did look like they are correct.

2. I will check the adapter boards again, but I've use the same one for an attiny10 which works fine. Supply is coming straight from the AVR programmer I have (USBasp), so it's the 5VDC from the USB on my PC.
I wish there was an internal diagram to see if I can measure something in diode or ohms mode from one pin to another  but there isn't one.

3. The first one I tested that gave 2.3VDC did increase a bit when I heated it up with the soldering iron for half a sec, but I'll try again after work. I did not test the 2nd one.


I might just solder the last one with my hot air station and see what that one is measuring.


If the last one doesn't work I might just do my own temp sensor with a 1N4148.
« Last Edit: February 17, 2020, 10:10:51 am by pyroesp »
 

Offline pyroespTopic starter

  • Regular Contributor
  • *
  • Posts: 180
  • Country: be
    • Nicolas Electronics
Re: Vout too high on 2 out of 3 MCP9701 temperature sensors
« Reply #3 on: February 26, 2020, 06:26:01 pm »
Sorry for the delay, I've finally managed to test this again and I got them all to work.

I've soldered the 3rd one on an adapter board and it behaved similarly.
My 5V supply is straight from my PC USB. Measuring the Vpp on the USB voltage on my old 54645D it seems like there's 1Vpp on there, which seems like a lot.
I can't check with my Rigol DS1052E as it's currently disassembled, so I don't know if it's truly that bad or if the 54645D is out of spec... probably both.

Anyways, to make it work I just needed to add the smallest amount of capacitance over the MCP9701 Vdd and GND. The lowest I had on hand was a 220nF, but I tried with a 220uF first.

What I'm not sure is why it doesn't work without the cap. The datasheet shows it working from 3V to 5.5V.
Noise is obviously bad but I would expect the thing to work, albeit with lots of noise on its output?


PS: The typical application in the datasheet doesn't show a capacitor either.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19572
  • Country: gb
  • 0999
Re: Vout too high on 2 out of 3 MCP9701 temperature sensors
« Reply #4 on: February 26, 2020, 07:06:13 pm »
I'm not surprised it didn't work, without the decoupling capacitor. Proper decoupling is essential and is mentioned on the data sheet.

Quote
4.3 Layout Considerations
The  MCP9700/9700A  and  MCP9701/9701A  family  of sensors does not require any additional components to operate. However, it is recommended that a decoupling capacitor  of  0.1 μF  to  1 μF  be  used  between  the VDD and GND pins. In high-noise applications, connect the  power  supply  voltage  to  the  VDD  pin  using  a 200Ω resistor with a 1 μF decoupling capacitor. A high frequency ceramic capacitor is recommended. It is necessary that the capacitor is located as close as possible to the VDD and GND pins in order to provide effective noise protection. In addition, avoid tracing digital lines in close proximity to the sensor.

http://ww1.microchip.com/downloads/en/DeviceDoc/20001942G.pdf
 
The following users thanked this post: pyroesp

Offline pyroespTopic starter

  • Regular Contributor
  • *
  • Posts: 180
  • Country: be
    • Nicolas Electronics
Re: Vout too high on 2 out of 3 MCP9701 temperature sensors
« Reply #5 on: February 26, 2020, 08:05:08 pm »
 |O

I always seem to miss something in the datasheet ...

Thanks for pointing the chapter out Zero999  :-+
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19572
  • Country: gb
  • 0999
Re: Vout too high on 2 out of 3 MCP9701 temperature sensors
« Reply #6 on: February 27, 2020, 10:01:16 pm »
|O

I always seem to miss something in the datasheet ...

Thanks for pointing the chapter out Zero999  :-+
Good supply decoupling is required for most circuits. There are occasions when it isn't necessary, but as a general rule, put a 100nF capacitor across the supply rails of every IC and in places where there's going to be rapid switching, such as next to a transistor switching a load, such as a relay or buzzer.
https://en.wikipedia.org/wiki/Decoupling_capacitor
http://www.capacitorguide.com/coupling-and-decoupling/
https://learn.sparkfun.com/tutorials/capacitors/application-examples
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf