# Is it possible to measure and log temperature using a microphone port of PC?

Instead of using an expensive logger, I'd like to measure and log temperature using a PC microphone port.

I'm going to use TMP36 Temperature Sensor. The output voltage of the sensor is measured by the mic port. The voltage is supplied from a USB port.

Here is the diagram.

But here are my concerns:

1. the mic port might have a certain range of voltage it can measure
2. the accuracy of voltage the port can measure might be impractical
3. Windows might not have the feature to measure the voltage directly

Is it possible?

# EDIT 2018-02-14 9:36

My huge misunderstanding was the mic port can measure any kind of voltage generated by a mic to detect sound. Here are what I learned from the comments and answers.

• The mic port will likely be AC-coupled (i.e. for AC signals only)
• There might be other obstacles (e.g. low frequency cut)
• So what I planned is hardly feasible
• To measure voltage by a mic port, you need to build a certain circuit or use a frequency converter
• It might be better to take other options such as Arduino Nano clones(~$3.50 on eBay) • The mic port will likely be AC-coupled, also the sound card is trying to provide a voltage to power the mic. – user253751 Feb 14 '18 at 3:28 • You are mixing apples and oranges. The mic port is for AC signals only. Frequencies below 20 HZ are filtered out. Not sure how you were going to 'measure' the temperature on your PC anyways. You can look into voltage to frequency converters. – Sparky256 Feb 14 '18 at 3:29 • Is there any reason you don't want to use an Arduino or equivalent and then send that to a PC via serial? – jramsay42 Feb 14 '18 at 3:31 • test in audacity and verify DC offset . some are DC balanced , others ac coupled . we dont know. aux in may be best – Tony Stewart Sunnyskyguy EE75 Feb 14 '18 at 3:38 • "Instead of using an expensive logger..." - Arduino Nano clones with built-in serial-USB sell for ~$3.50 on eBay, including USB cable and shipping! – Bruce Abbott Feb 14 '18 at 6:31

Changing the value of R3 to 1K will increase the amplitude of the signal to a range better suited to AUX ports.