proper passing of pwm signals to electric imp