In order to improve your accuracy what you need is a constant current source.
You can approach a constant current source by increasing the source resistance R1. When you do this you may need to increase the supply voltage. Or use a constant current source circuit.
Also, decreasing your comparator threshold voltage will put you closer to the linear region of the exponential curve. For example, set the comparator reference voltage to 1V instead of 2.5V.
You can approach a constant current source by increasing the source resistance R1. When you do this you may need to increase the supply voltage. Or use a constant current source circuit.
Also, decreasing your comparator threshold voltage will put you closer to the linear region of the exponential curve. For example, set the comparator reference voltage to 1V instead of 2.5V.