Pages: [1]   Go Down
Author Topic: wall wart vs USB/9V battery  (Read 772 times)
0 Members and 1 Guest are viewing this topic.
Israel
Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

Why does the analog sensor (lets say a 5V temperature sensor) value differ when powering Arduino with a wall wart/USB/9V battery?
With all these three power sources I receive different values.

Thanks.

Best,

Z
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 82
Posts: 3846
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Perhaps the temperature changed in the time it took you to switch the power. Are you comparing the temperature you read against a known value?
Logged

The Elders of the Internet know who I am.....
Get me on LinkedIn: za.linkedin.com/in/jimbrownza/

Israel
Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No temperature didn't change. I know temperature is constant since I am trying to calibrate.
Using wall wart I see almost correct results, 23C but with USB, it shows 40-42C and 9V battery shows 26-27C.

I didn't just notice these differences with only temperature sensor but also with gas sensors.
I am wondering what is the issue here.
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 82
Posts: 3846
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow, 23 vs 40+ is kinda drastic....

Maybe you need to check that the voltage supplied from the Arduino 5v is actually 5v under all three situations?

Are you using the 5v pin?- not accidentally using the Vin pin which at least in the case of the 9v battery would be 9v... wouldn't explain the usb problem tho
Logged

The Elders of the Internet know who I am.....
Get me on LinkedIn: za.linkedin.com/in/jimbrownza/

Pages: [1]   Go Up
Jump to: