I'm pretty new to Arduino and seem to be having trouble even getting a simple test project going : (
I have an Arduino Duemilanove, an LM335A temperature sensor, and a 1K Ohm resistor in a breadboard wired like so...
The LM335 is plugged into the board with the ADJ pin in position 3G, the middle pin in position 4G, the right pin in position 5G. So, the + pin is 4G, the GND pin is 5G.
I have a resistor plugged into H4 and I4.
I have a wire connecting the +5V from the Arduino Duemilanove to J4, and the GND connected through a wire to J5.
I have a wire connecting 3F to the analong IN pin 0 on Arduino Deumilanove.
As far as I can tell this is the schematic created:
|----------| 5V+ -------////-------- V+ |----------|
|-Arduino| 1K R | LM335A|
|----------| - GND ---------------------- V- |----------|
| |
Analog PIN0-----------------------------------ADJ
When I plug it into myUSB cable, and use a voltmeter to measure the voltage, I see some screwy things ![]()
Here is what I measured:
Voltage out of Arduino: 4.86
Voltage on + LM335A pin: 4.86 or 4.85
Voltage on ADJ LM335A pin: 2.13
In Arduino, the sensor value resulting from analogRead on pin 0 returns 475! Suggesting that Arduino thinks the voltage on ADJ is ~2.32
But that's not even the worst part... I could deal with it if the readings were consistently off by a certain amount... but, I would expect the whole thing to at least react to different temperatures.
I put Arduino and the breadboard on a plate and stuck them in the fridge (with the USB cable coming out through the closed fridge door).
The voltage on the ADJ pin went UP! So, apparently, it's warmer in my fridge than it is in the rest of my house!
Any ideas on what I'm doing wrong?