Seperate delays for LCD and measurement

Hi,

i have a measurement of pressure and temp in void loop,

in that loop the values of pressure and temp get written to a lcd.
At a certain value of pressure something else gets triggered.
In the end of the loop i have something like Delay(1000)

This results also in the measurement beeing delayed.
With small delay i get a strong flickering of changing values in the lcd.

How can i achieve that like the measurement is as fast and often as possible, while the lcd remains with calm numbers, or maybe just gets update every 2000ms?

Perhaps you want some low-pass filtering of the signal to reduce the variations, but still update the LCD frequently? This can be as simple as averaging the last few samples read (keep them in an array)...

thx,
u mean i have to look at how to create arrays to get further with this?

Additionally you could store the last value, compare the current value with the last value and refresh only the LCD if there is a difference (old != current).

Oliver

Blink without Delay example