average of data

my system creates a call every half a second. that is crucial because the system I use has to stay 65 bar pressure, and the valve always closes or opens frequently . I want to only get a call once a minute or once every 10 minutes. when I tried to change that, what happened was that the pressure valve now also opening /closing really really slow making the pressure go to the maximum. I need to find a way to have slower readings, but keep the pressure repair as fast. I thought that if there is a way to keep the readings the same but only 1 value every minute (like an average value of all 60 ) will appear on the screen. how do I do that?


attached is my code

Valve_Control_030618_calibprog.ino (10.5 KB)

@eilona, if you want help with your problem you need to post your program.

And please post your program using the code button </> so it looks like this. See How to use the Forum. It makes it much easier for people to help you

...R

should I post it on gigs and collaborations?

eilona:
should I post it on gigs and collaborations?

You would only post it there (or ask the Moderator to move it there) if you want someone to write a program for you and are prepared to pay.

If you want help to write the program yourself then this Programming section is the correct place.

...R