Logging Averaged Sensor Data
i have noisy sensor attached a2 on pro mini, need smooth out data before log sd card(or print serial monitor now). i'd calculate single mean based on window of 10 measurements @ 1 measurement per second (aka 1 measurement every 10 seconds)
i've found lots of logging running averages create constant running mean based on last 10 measurements. i'd log single (averaged) data point every 10 seconds, opposed single (averaged) data point every second.
thanks!
i've found lots of logging running averages create constant running mean based on last 10 measurements. i'd log single (averaged) data point every 10 seconds, opposed single (averaged) data point every second.
thanks!
i have noisy sensor attached a2 on pro mini, need smooth out data before log sd card(or print serial monitor now). i'd calculate single mean based on window of 10 measurements @ 1 measurement per second (aka 1 measurement every 10 seconds)first have decide if want average, easy do, or mean, needing sort readings , pick middle reading.
i've found lots of logging running averages create constant running mean based on last 10 measurements. i'd log single (averaged) data point every 10 seconds, opposed single (averaged) data point every second.
thanks!
in either case, make array store 10 values. if want average, program loop add 10 values , divide 10. reset array entries zero.
if want mean value, have sort array values order. ascending easiest visualize. don't know how people here, 1 of first "c" programs ever wrote "bubble sort".
paul
Arduino Forum > Using Arduino > Sensors > Logging Averaged Sensor Data
arduino
Comments
Post a Comment