The invention relates to the technical field of detection instruments, in particular to a
test tube shaking device for food detection, which comprises a base, a support frame, a support plate, a trackplate, a limiting plate, a track block, a
rocker arm and a
servo motor; wherein a first hinge shaft is fixedly arranged on the track plate, a second hinge shaft is fixedly arranged on the support frame, and the second hinge shaft is rotatably matched with a swing arm; a first sliding block is slidably arranged in the first sliding groove, a first hinged shaft is rotatably matched with the first sliding block, an output shaft of the
servo motor is fixedly connected with an eccentric wheel, an eccentric shaft is fixedly arranged on the eccentric wheel, a second sliding groove is formed in the swing arm, and a second sliding block is slidably arranged in the second sliding groove and rotatably matched with the eccentric shaft. According to the invention, when the
servo motor drives the swingarm to periodically swing left and right in a reciprocating mode, reciprocating movement of the rail block in the rail groove is achieved, and horizontal movement and degree deflection of the
test tube barrel are achieved, so that the liquid in a
test tube in the test tube
barrel can be fully shaken up, the shaking amplitude of the device is large, and the shaking efficiency is high.