Connect with us

Highest sensor read question

Discussion in 'Sensors and Actuators' started by Veganode, Jul 31, 2014.

Scroll to continue with content
  1. Veganode

    Veganode

    5
    0
    Jul 31, 2014
    Hello this is my first post, my problem as following:
    1. I've 4 analog thermometer sensors and 4 relay switches
    2. each switch will be controlled by only one sensor
    3. I want to open the relay switch controlled by the sensor reading the highest temperature among the 4 sensors
    how can I achieve that?
     
    Last edited: Jul 31, 2014
  2. Gryd3

    Gryd3

    4,098
    875
    Jun 25, 2014
    Can you link part numbers?

    Will all of the components be centrally located?
    Only the 'highest' temperature sensor will open the relay, all others will stay closed.
    Will the relay switches cause a change in temperature that could result in two sensors 'fighting' to stay open by toggling back and forth, or will temperature change be gradual?
    On the rare chance that all 4 sensors are the same, what do you want to happen? (Current thoughts indicate that no matter what... one relay switch will be open)

    Can you give us a little detail on how fast you want it to respond, and what kind of environment it will be in?
     
  3. Veganode

    Veganode

    5
    0
    Jul 31, 2014
    Will all of the components be centrally located?
    Yes

    Only the 'highest' temperature sensor will open the relay, all others will stay closed.
    Yes, all other will be closed

    Will the relay switches cause a change in temperature that could result in two sensors 'fighting' to stay open by toggling back and forth, or will temperature change be gradual?
    No

    On the rare chance that all 4 sensors are the same, what do you want to happen? (Current thoughts indicate that no matter what... one relay switch will be open)
    They are the same and sensing different objects within the same location.
     
  4. Gryd3

    Gryd3

    4,098
    875
    Jun 25, 2014
    I should have been clearer, by the 'same' I mean same temperature.
     
  5. Veganode

    Veganode

    5
    0
    Jul 31, 2014
    Yes sometimes they will have same temp, at this time nothing should change and all switches should be closed
     
  6. shrtrnd

    shrtrnd

    3,743
    482
    Jan 15, 2010
    A variation on a 'sample and hold' circuit?
     
  7. BobK

    BobK

    7,682
    1,686
    Jan 5, 2010
    Sounds like a job for a microcontroller to me.

    Bob
     
  8. Gryd3

    Gryd3

    4,098
    875
    Jun 25, 2014
    I've been suggesting mcu's a lot lately... figured I'd wait for another to say it.
    Poll each one at a time. Would allow configuring the device to open change it's output on the 'highest' sensor read IF it is higher than the other sensors by a certain threshold.
     
  9. BobK

    BobK

    7,682
    1,686
    Jan 5, 2010
    And quite easy to tweak the behavior, unlike and analog circuit.

    Bob
     
  10. Gryd3

    Gryd3

    4,098
    875
    Jun 25, 2014
    For completeness.. do you have ideas on how this would work in an analogue circuit?
    I've been trying to think of how I could possible compare more than two values at the same time. My first thought is the use of 6 comparators and some and gates... but that would never allow for all 4 outputs to be 0 if the sensors were the same.

    (6 Comparators. Each comparator would monitor a pair of sensors. 3 inputs to each of the 4 AND gates would determine if all 3 comparators connected to a sensor are high and trigger the output. Adding an additional sensor would require 4 input AND gates, and 10 comparators)
    I feel my analogue solution is an incredibly poor design, but I am not yet familiar with many of the tricks of the trade.
     
  11. KrisBlueNZ

    KrisBlueNZ Sadly passed away in 2015

    8,393
    1,268
    Nov 28, 2011
    In case you're interested...

    260836-A.002.GIF

    That's a design that I came up with for someone on a different thread who wanted to compare the received signal strength indication (RSSI) voltages from four radio receivers and choose the highest one.

    The op-amps used with small MOSFETs as separate voltage followers. They are connected by the "IHR" (instantaneous highest RSSI) rail, which follows the highest input value. Whichever input has the highest value will cause its op-amp to drive its MOSFET to pull the IHR rail up to that voltage. Voltage followers with input voltages that are lower than the IHR rail voltage will "drop out" and will not activate their MOSFETs.

    The IHR rail has a resistive load to 0V and this causes current to flow in the drain circuit of whichever MOSFET is active. This is sensed across a resistor and used to turn on a PNP transistor, which provides an indication that this input has the highest voltage.

    The circuit is not perfect; if inputs are very close in voltage, it's possible that it could activate two or more outputs simultaneously, or possibly even no outputs at all! Some logic post-processing could be used to avoid those problems. A better way would be to modify each stage so it only activates if its input is somewhat higher than the IHR voltage. I did this originally then threw the drawing away :-(
     
    Gryd3 likes this.
  12. Gryd3

    Gryd3

    4,098
    875
    Jun 25, 2014
    Thanks Kris!
    I knew there were other ideas out there for this. It was nice being able to see one.
    (My short google search did not produce immidiate juicy fruit... so I did not look much)
     
  13. Veganode

    Veganode

    5
    0
    Jul 31, 2014
    Many thanks to all of you, I'll research ur suggestions :)
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-