Pages: [1]   Go Down
Author Topic: Voltage Question  (Read 290 times)
0 Members and 1 Guest are viewing this topic.
Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I'm using an LM35 sensor to get a temperature reading and view it on an LCD screen.
I get a lower reading when the power is supplied with a USB cable by my computer and a higher reader when power is supplied by a 9v battery.  If all of the power is supplied by the 5 volt pin ,why would my power source make a difference?

Thanks.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33314
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Odd, how much lower?
Have you tried looking at the value from just a potential divider under these two conditions, it could be that it is actually the Vref on the A/D that is changing. The on board voltage regulator would give a different tolerance on the nominal 5V than you would get from the USB and that could account for the different reading. Try measuring the output of the sensor with a DVM, it shouldn't change much under different voltages.
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Check the USB voltage and make sure it's actually 5V, and not a bit below spec.  Try plugging in to a different port, or into a self-powered hub.

If your LM35 happens to be located near the 7805 voltage regulator that could explain it - the regulator isn't in use when using USB power.  When it is in use, as when you run off battery, it generates heat.

-j

Logged

Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the hints.  One thing I forgot to mention is that the change is instant, meaning I have to adjust the pot to see the LCD screen clearly when switching to the 9 volt battery.  The change in temp is about 10 degrees fahrenheit.
I'll try playing around with it this weekend.
Logged

Pages: [1]   Go Up
Jump to: