a protective circuit for an apparatus includes an accelerometer having an output and a microcontroller coupled to the output of the accelerometer . the protective circuit also includes a switch for controlling the apparatus coupled to an output of the microcontroller and a load coupled to the switch . a power source is coupled to the load and the switch . in operation the microcontroller is cable of sending a signal to the switch to turn of power to the load when a dangerous condition as detected from the accelerometer data has occurred .