The invention discloses a multi-degree-of-freedom sample rod. The sample rod comprises a framework and a rotating shaft, wherein a magnet is arranged at a tail end of the rotating shaft, the frameworkis provided with a leading-out circuit board, the framework is provided with a notch, the leading-out circuit board comprises a bent part, the bent part is located in the notch, and a magnetic fieldsensor is fixed to the bent part. The sample rod is advantaged in that the position information of the rotating shaft can be detected, when the rotating shaft rotates and moves back and forth, the magnetic field changes accordingly, the magnetic field sensor measures the magnetic field, the position information of the rotating shaft can be obtained through solving, the magnetic field sensor can befixed through soldering tin connection between the magnetic field sensor and the leading-out circuit board, short circuit of one pair of pins on the leading-out circuit board can be conducted, and the number of wires needing to be connected is reduced; the leading-out circuit board comprises a plane part and a bending part, the plane part and the bending part are vertically laid on a surface of the framework, the magnetic field sensor is fixed to the bending part, and the bending circuit board is small in occupied area and easy to disassemble.