LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LM35 sensor security gap

Hello, community.

I'm using a LM35 temperature sensor in final project for a class, the thing is that i want it to send a signal (1 or 0) when the measure is above 35C and keep that signal until it goes down to 33C. But i do not want the sensor to send that signal when it reaches 33 for the first time, but only when it's going down and between 35 and 33.

Thank you. 

Ignore all the other parts of the system.

- Beginner.

0 Kudos
Message 1 of 3
(1,958 Views)

You need a shift register to keep track of what the current boolean state is.

When <33 change it to false.

When >35 change it to true.

When between 33 and 35, do nothing, keep it at its current state as stored in the shift register.

Simple logic.

0 Kudos
Message 2 of 3
(1,945 Views)

What RavensFan already said. And please note that your use of the word security is highly misleading in this aspect. What you want, has a lot more to do with hysteresis than with security.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 3
(1,920 Views)