NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » Weather Station

December 19, 2009
by mrediske
mrediske's Avatar

I'm building a weather station. At this point I have a temp and humidity sensor hooked up to the nerd kit. My sensor outputs a 0-1vdc signal for each reading. Can you set the DAC input to read 0-1v instead of 0-5V?

I also have a question about the number the DAC represents. When you read a an input: ADMUX=1; sensor2 = adc_read();

Does the sensor2 value need to be converted to represent the input voltage? I've tried the conversion in the tempsensor program sample(5000/1024/.2) .001, but my temp seems to be about 6degrees off. Any idea on what I'm doing wrong?

Post a Reply

Please log in to post a reply.

Did you know that microcontrollers have two different kinds of memory, program space (flash) and SRAM? Learn more...