Library for reading push buttons connected to the analog port. The push buttons must be connected together via R2R-Ladder so that each buttonpress leads to a different voltage. Also suitable for reading a potentiometer that is used as discrete selector.
Test-program to count the motor RPM. The program counts how often a pin goes from Low to High in 180ms and writes the corresponding RPM value to a LED display.
More complex version of the program "TEST__rpm_counter_with_LED_display.ino ": Here, spindle speed control via PWM is added, and the target speed is read off a pot connected to the analog port.