The invention discloses a material conveying mechanism with a controller. The material conveying mechanism with the controller comprises a guide groove, a placing box is arranged at the upper end of one side of the guide groove, a plurality of workpieces are arranged in the placing box, a limiting groove is formed in the lower end of the guide groove, a movable plate is arranged in the limiting groove, a plurality fixing blocks are arranged at the upper end of the movable plate, a first rotating shaft is inserted between the two fixing blocks in a penetrating mode, a movable block is arrangedon the first rotating shaft and located between the two fixing blocks in a sleeve mode, a first movable rod is arranged on one side of the movable block, a second movable rod is arranged on the otherside of the movable block, a connecting block is arranged at the lower end of the movable plate, a fixing plate is arranged at the lower end of the limiting groove, a second rotating shaft is arrangedon one side of the lower end of the fixing plate in a penetrating mode, a motor is arranged on one end of the second rotating shaft, a rocker is arranged on the other end of the second rotating shaft, a connecting rod is arranged at the end, away from the second rotating shaft, of the rocker, the rocker is movably connected with the connecting rod through a third rotating shaft, and the end, awayfrom the third rotating shaft, of the connecting rod is movably connected with the connecting block through a fourth rotating shaft.