General area when it fits no where else

Moderator: Mmiscool

User avatar
By Zim
#74564 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
User avatar
By rudy
#74566 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
User avatar
By treelike
#75072
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.