Hello everyone!
There is a difficulty in obtaining the formula for the XML file when connecting an analog resistive sensor, there are a large number of them and they have an individual dependence of the parameter on the resistance, it is very difficult for the end user to make calculations.
I want to offer a generator that I am sure will be useful.
I already know all the necessary formulas, it remains to implement the calculator itself.
In general, the calculation algorithm is as follows:
- Pull-Up voltage is introduced (depends on the input scheme);
- The pull-up resistor R1 is specified (it is known or the permissible minimum value is selected);
- Vref and bit rate depends on the voltage of the controller and the bit rate of the ADC;
- Sensor Max and Min, respectively, resistance range and parameter change range;
- We get the formula for the XML file.
I want to consult with you, whether everything necessary is in it.