-->
Page 2 of 4

Re: How to stabilize sensor readings?

PostPosted: Mon Mar 12, 2018 9:04 pm
by Zim
Thanks for the reply gentlemen.

Alberto, I got it to work! Thanks!!

Rudy, I like the idea but I think its above my pay grade...

Lethe, that would have been great also, but I think thats for Arduino C++

Thanks again

Re: How to stabilize sensor readings?

PostPosted: Mon Mar 12, 2018 9:51 pm
by rudy
I'm glad you have it working.

I did do a little search and I found that Arrays in Basic are assigned with the Dim statement. So I did a search for Basic, Dim and Sum. And I found lots of examples of ...



Image
Image
Image

Re: How to stabilize sensor readings?

PostPosted: Tue Mar 13, 2018 12:02 am
by Zim
Thanks!!! like I'm not fat enough...LOL :lol:

Re: How to stabilize sensor readings?

PostPosted: Mon Apr 02, 2018 1:46 am
by treelike
Zim wrote:I am working with a temp sensor and would like to do a live average of the last 10 samples to give me a more stable reading. Is this possible in basic? I can't find any examples of how to buffer the output.
Thanks

Hey, I was trying to do this too because I was getting some wildly noisy results from a DHT sensor but found a solution was to turn the ESP wifi off during getting a sensor reading and then reconnect AFTER the sensor reading has been taken to upload the data to the server. I got rock solid temperature readings after this modification. I presume the wifi signal was interfering with the sensor but I have not ruled out the possibility that the increased current taken by the esp when the wifi radio is on is causing noise on the power supply which is shared with the sensor.