Quote Originally Posted by richard View Post
my take

i doubt many would risk unvetted zipped content from google drive, youtube would be safer.


what does displayed very fast mean ?


what does displayed normal mean ?


has it ever worked or is it just a proteus simulation, proteus does not really work for some real time things


you could certainly fudge something up to correlate with proteus' measurements but it would be unlikely to work as precisely
in reality and each unit manufactured would need individual code tweaking [hardly practical for production],as an academic exercise
for students it may be useful to explain the differences between reality and simulated environment's






there is no schematic.
no voltage range given. no explanation of the analog input divider. why the pos rail uses a different divider to the neg rail
no power supply


why use fp ,can you really expect accuracy to 2 decimals.
in a real situation you need to account for , reference accuracy/noise, conversion linearity / noise
voltage divider accuracy and noise on the measured signal not to mention temperature effects
you can easily mash out large numbers of decimals to display but their base accuracy cannot be justified




what does symmetric power supply mean ,the code is just a display


if its symmetric then why is +- different ? , over what range are we talking about




two dp accuracy from single asynchronous adc results is not plausible afaics esp without a stable voltage reference for adc


surely a lowpass filter is needed either electrical or software based , even oversampling could be employed
and a temperature compensated voltage reference used if you really need that sort of precision



op has remained steadfastly mute on any discussion on any points and just wants working code provided
I have solved the problem, I attach image