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

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial