Motor control with zigbee