Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Smooth Poti values on Arduino

const int SMOOTH_POWER = 3;
...
value = ((value << SMOOTH_POWER)  + (analog_read(0) - value))>> SMOOTH_POWER;
Source by forum.arduino.cc #
 
PREVIOUS NEXT
Tagged: #Smooth #Poti #values #Arduino
ADD COMMENT
Topic
Name
8+6 =