T O P I C R E V I E W |
codingplanet |
Posted - Jun 04 2010 : 09:34:18 AM So a small project of mine. I want to read a voltage (CPU vCore in fact) between about 0.8v and 2.3v into a PIC 16F819 and display it on an LCD (I'm fine with the LCD part).
As for reading the voltage, as I understand, I will get approx. 0.005v accuracy (10 bit ADC, so 2^10 values, 5 / 1023 = ~0.005) using VDD (+5v) as Vref+ and Gnd as Vref-. However, I would like to get 1mv accuracy if at all possible.
Can I use a differential amplifier to scale the 0.8-2.3v to 0-5v for the PIC? Is there any other way of increasing the accuracy to 1mv without using a different ADC (oversampling?, not looked into it yet)?
And one more thing while I'm here. I would also like to read the temp. off a K-Type probe on the same LCD through a range of about -200c to +50c. I came across the AD595, is this a suitable interface device? Again, I will have to scale the output voltage from this IC to 0-5v for the PIC.
Sorry for the long post. Thanks for any input :)
AJ. |
15 L A T E S T R E P L I E S (Newest First) |
codingplanet |
Posted - Aug 31 2010 : 09:19:41 AM I started another discussion over at electro-tech for anyone interested.
http://www.electro-tech-online.com/electronic-projects-design-ideas-reviews/110780-thermocouple-interface-pic.html |
Aaron Cake |
Posted - Aug 21 2010 : 11:33:26 AM quote: Originally posted by RRITESH KAKKAR
HELLOW friends,
I am not know how to make microcontroler project plz tell somebasic of it......!
Please STOP posting your questions under other people's topics. Create your own topic in the appropriate forum. I realize you are just trying to get answers, but if you continue randomly posting in other topics I'll be forced to close your account. |
RRITESH KAKKAR |
Posted - Aug 20 2010 : 04:16:05 AM HELLOW friends,
I am not know how to make microcontroler project plz tell somebasic of it......! |
codingplanet |
Posted - Aug 15 2010 : 10:14:29 AM Nevermind Ive sorted it now. |
codingplanet |
Posted - Aug 06 2010 : 3:39:28 PM Sorry about the post spam. Please disregard previous posts. Am I better off using an op amp with a gain of 2 and offset of 2 with 0-5v going into my PIC using VDD as the vRef for ADC. Or, do I use a gain of 1, offset 2 opamp with 0-2.5v into the PIC, using a 2.5v vRef on the ADC?
Is one better than the other? |
codingplanet |
Posted - Aug 06 2010 : 11:38:18 AM So the potential divider won't work with the op amp (doh). So how do I get 2v reference? I have found the LM4140 but nothing else. |
codingplanet |
Posted - Aug 06 2010 : 08:39:03 AM How about a potential divider using 12k and 8.2k resistors with 5v input? Accurate enough for a op amp if I use 1% resistors? |
codingplanet |
Posted - Aug 06 2010 : 08:19:37 AM OK so Im having another look at the AD595. Looks very easy. Maybe Im wrong? Anyway, how do I go about getting a 2v Ref? |
codingplanet |
Posted - Jul 30 2010 : 3:58:23 PM Thanks. SMD is no problem BTW. |
BEatonNo1 |
Posted - Jul 30 2010 : 11:45:04 AM Yeah to get those temperature ranges you would be better off with a thermocouple. Microchip has a good app-note about using one of their I2C ADCs and I2C temperature sensor to measure a thermocouple. Both of the parts they use are only in SMT packages though. There are other parts out there to do this with though.
|
codingplanet |
Posted - Jul 30 2010 : 09:57:35 AM Thanks for the info but I think the project has died.
All CPUs now have a temp sensor in them (quite possibly a diode), but next to none go down to the temps I need. Also I can't constantly monitor them, like I can with a K-Type and meter. Are there thermistors that go down to -200c? |
BEatonNo1 |
Posted - Jul 29 2010 : 11:55:14 PM Check the data sheet for your parts, in the absolute ratings section they will list how far you can go beyond your rails. If I had to guess the -2 would be bad. Try a differential amp (http://en.wikipedia.org/wiki/File:Op-Amp_Differential_Amplifier.svg) supply the op-amp with +/-5 and use -2 as your V1 to put your output from 0-2.5. could also tweak the gain to get 0-5 if you were ambitious.
Also on the output of the op-amp stick a schottky diode such that the op-amp output is tied to the cathode and the anode is tied to ground that way if you do get a negative output from the op amp you will not exceed the ratings of the pic.
Have you figured out anything on the thermocouple? I would recommend a thermistor or diode to measure the temperature. Most CPUs now have diodes in them to measure temperature I think. |
codingplanet |
Posted - Jun 12 2010 : 11:41:02 AM I now found an LM358. It works as a voltage follower (woot!). But I have a question. With a single supply to the op amp, can I feed negative voltage to the input and everything will be well? I'm not expecting a negative voltage out of the op amp. I would give it a go but I can't right now, no negative supply. Cheers. |
codingplanet |
Posted - Jun 11 2010 : 03:30:30 AM So I read the datasheet and it seems that the when the input voltage is within 3v of the negative rail, the output goes high. Or something to that effect. So I guess that means that I need negative voltage rail, or get different op amp. |
codingplanet |
Posted - Jun 10 2010 : 11:03:08 AM So I'm using a TL081 setup as a voltage follower. Whilst the input is between 0v & 0.7v, the output is 10.5v. The output is also 10.5v whilst the input is above 2v. between 0.7v & 2v, the output is input + 0.4v. Why is this happening?
Also, a quick question. Can I use a pull down resistor on the ADC input to stop it floating? If so, what value? 1K? |