CAN, means Digital Analog converter in French. Looking at the link indicated above in my first message and looking at the datasheet of the 16F887 it seems that from the ADCON1 register we can indicate to the CAN another voltage range on which to make the conversion rather than 0 - 5V (VDD) ? - 100 mV to 1000 mV is the range in which I want to measure the temperature. So in absolute value it is 1100 mV. The converter will convert a voltage that varies between 0 and 1.1 V on 10 bits. It's understood I will use an external voltage of 1.25 V as suggested. Where can I find a diagram ? Probably with AOPs in it, or just a voltage diviser with two resistors and one trim pot ? Indeed, for the measurement of negative temperatures I must use the LM35CZ and the assembly below indicated in the datasheet.Hi,
"[PIC] 16F887 > CAN > External voltage référence of 1,1 V or 1,2"
What has this to do with CAN?
Some terminology:
* " from - 100 mV to + 1000 mV" is the absolute output voltage (every one will understand when you say it´s the output range)
* "1.1V" is the range, or the span
* "4.88 mV / bit." is the resolution
***
LM35 can´t output negative voltages. If you want it to operate on negative temperatures you need to externally apply a pull down resistor to a negative voltage.
--> see datasheet.
On the other hand I don´t think the PIC can handle negative voltages.
***
"If I use the 5 V power supply of the PIC, the accuracy will be 5 V / 1024 = 4.88 mV / bit".
Only true if you choose the supply voltage as REFERENCE. But you are free to use an external reference.
So you may use an external 1.25V reference for example.
I personally guess I never used VCC as referene because of accuracy and precision reasons.
***
My recommendation:
Instead of doing handstands with negative supply, amplifiers, external reference ... I´d rather use a digital sensor, like LM73 with the I2C interface.
Klaus
OK.CAN, means Digital Analog converter in French.
For what?Where can I find a diagram ?
Does "Probably" in this case mean that you did not try to find any information on your own?Probably with AOPs in it, or just a voltage diviser with two resistors and one trim pot ?
True. But what is it good for?One could always use a pin to generate a - V for OpAmp
Regarding your recommandations after these experiments with LM35CZ, LM135 and MCP9701A, I will switch to DS1820 and will try LM73. I didn’t know this last device.Hi,
"[PIC] 16F887 > CAN > External voltage référence of 1,1 V or 1,2"
What has this to do with CAN?
Some terminology:
* " from - 100 mV to + 1000 mV" is the absolute output voltage (every one will understand when you say it´s the output range)
* "1.1V" is the range, or the span
* "4.88 mV / bit." is the resolution
***
LM35 can´t output negative voltages. If you want it to operate on negative temperatures you need to externally apply a pull down resistor to a negative voltage.
--> see datasheet.
On the other hand I don´t think the PIC can handle negative voltages.
***
"If I use the 5 V power supply of the PIC, the accuracy will be 5 V / 1024 = 4.88 mV / bit".
Only true if you choose the supply voltage as REFERENCE. But you are free to use an external reference.
So you may use an external 1.25V reference for example.
I personally guess I never used VCC as referene because of accuracy and precision reasons.
***
My recommendation:
Instead of doing handstands with negative supply, amplifiers, external reference ... I´d rather use a digital sensor, like LM73 with the I2C interface.
Klaus
OK.OK.
Most of us will use "CAN" as the CAN-Bus = ControllerAreaNetwork interface.
Expect confusion. Especially when you use English and French abbreviations in one post.
For what?
The datasheet tells everything you need to know.
I bet Microchip provides additional informations/documents/example circuits/schematics.
In the end .. it´s just two or three signals at the référence connected to two signals at the microcontroller.
Also the reference device comes with a datasheet .. and additiconal documents, where you can find more detailed informations and examples.
Does "Probably" in this case mean that you did not try to find any information on your own?
and "AOPs" is anather French abbreviation?
**************
True. But what is it good for?
--> the ADC still will not accept negative voltages at the input.
And why need an OPAMP at all?
Klaus
Thank’s for advices. I will switch soon to 18F4550 and 18F46K22, that have a 1.024 V, 2.048 V and also 4.096 V programmable references.Lots of 1.024V and 2.048V precision reference ICs out there that also help with the math! The resolution will always be Vref/1024 so you can set 1mV or 2mV /bit quite easily.
The ADC cannot measure negative voltages but you can lift the ground pin of the LM35 to some higher voltage so its output can go below its own ground. Be careful doing this, it works fine but for example if the expected output was 0V (0C) to 1V (100C) and you lift it by 200mV so -20C is 0V, 0C is 0.2V and 100C is 1.2V you can use a 2.048V reference but not a 1.024V reference as the 1.2V would the be out of range. The ADC cannot return a meaningful result if the input voltage is higher than Vref.
Brian.
I don´t know about a lot of devices either.I didn’t know this last device.
Hi,Amplifying the analog input to e.g. 0..5V is the better solution.
And please do not - like in the past - show special cases, exceptions or nonn related topic.
It´s exactly what I´m saying: "accuracy" problem is DC parameters, like offset, gain, linearity, (and low frequency drifts)
Could be till 0,05 °C ?Sim of - generator Powering OpAmp :
View attachment 188534
Regards, Dana.
--- Updated ---
What accuracy of T measurement are you looking for ?
Regards, Dana.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?