Page 1 of 1

How to compare the voltage value between these two sensors?

PostPosted: Wed Apr 12, 2017 5:00 pm
by Yeannie
Hi, I have a task that I have two sensors,which bought from Kynix, reading a voltage value. I need a circuit to output 1 if the difference between the two readings is smaller than 10% and 0 otherwise.

I can solve it both analogic or digitally. Since I have more experience dealing with digital circuits than analogic ones, I thought about doing the following: Convert the readings to binary and build a circuit which basically uses the formula | (V1 - V2) | / ((V1 + V2)/2) ) and compares it with 0.1. I think there is an easier way of solving this and wanted some help to find it.

Any help will be greatly appreciated.
Great regards,
Yeannie

Re: How to compare the voltage value between these two senso

PostPosted: Fri Apr 14, 2017 6:11 pm
by yonghui
Hi what is your main controller? A microcontroller or a computer?
If you are going to convert the readings using ADC then you can just do it with the way you suggest