In view of problem that shearer rocker swing angle detection device based on angular displacement detection principle requires high installation precision and has complex calibration, a shearer rocker swing angle detection device based on gravity acceleration was designed. The device uses inclinometer SCA830 to get absolute incline angle of the device, and then calculates out actual swing angle of the shearer rocker according to shearer incline angle and the device's installation location. The experimental results show that the device is easy to mount and calibrate, and has accurate test results, quick response and good real-time performance.