A smart power board firmware for AVR/Arduino based on Bitlash