Go Down

Topic: Using Multiple sensors to eliminate errors (Read 480 times) previous topic - next topic

Arnonh

I am making water level control unit
And i want to eliminate errors by useing 3 analog presure sensors
And reporting an error if the reading from one sensor is off by alot

Grumpy_Mike


Arnonh


mem


It may be easier than you think. Read each sensor and compare the results. If one reading differs from the others by more than you think reasonable then you report the error.

Try writing a sketch that reports the reading of just one sensor.

When you have that working, add code to report the values for three sensors.

When that is working, add code that compares the three readings and reports a deviation large enough for you to consider it an error.

Have fun!

Mike Mc

Hey where do you get those Witch sensors from? I have terrible trouble with Witches around my way, as well as warlocks and wizards and all kinds of magic related baddies.

Go Up