In the process of trigger switch production,automation and intelligence are the prerequisites to improve the production capacity and ensure the assembly quality.In this paper,we design a trigger switch automatic assembly and testing system.An autonomous learning algorithm of action overload adjustment is proposed to realize the automatic adjustment of screw tightening distance of the trigger switch.Machine vi-sion method is used to detect defects for the key component in the assembly process,in order to quickly complete assembly quality inspection.This system can realize automatic assembly,riveting,testing,adjus-ting,potting and curing of the trigger switch.