How to compare the voltage value between these two sensors?

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

How to compare the voltage value between these two sensors?

Postby Yeannie » Wed Apr 12, 2017 5:00 pm

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
Yeannie
Greenhorn
 
Posts: 2
Joined: Mon Feb 20, 2017 5:19 pm

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

Postby yonghui » Fri Apr 14, 2017 6:11 pm

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
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm


Return to Sensor

Who is online

Users browsing this forum: No registered users and 7 guests

cron