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 |
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? |
---|
Please log in to post a reply.
Did you know that Pulse Width Modulation (PWM) can be used to control the speed of a motor digitally? Learn more...
|