Programming Arduino Uno as a binary up-counter using Python’s pyfirmata module
codespeedy.com