Open hardware BLDC controller