smoothing pot input
googling arund found smoothing algorithm. seems simple, follow how work.
code: [select]
// declared globally
float smoothadc;
// inside loop() or other repeating function
smoothadc = 0.9 * smoothadc + 0.1 * analogread(0); make sense anyone?
no, makes no sense written. sure nothing omitted? code uses uninitialized variable, can never ever work.
Arduino Forum > Using Arduino > Programming Questions > smoothing pot input
arduino
Comments
Post a Comment