The invention relates to a driving device for a swinging 
grinding head. The driving device for the swinging 
grinding head is characterized by comprising a 
machine shell. The 
machine shell is shaped like a cylinder with a closed end and an open end, and a covering plate is arranged at the open end of the cylinder. The closed end of the 
machine shell and the covering plate are both provided with central holes. A main shaft is arranged in the machine shell and penetrates through the central hole of the closed end of the machine shell and the central hole of the covering plate. A motor 
stator is fixed to the inner wall of the machine shell. A motor rotor is fixed to the section, inside the machine shell, of the main shaft. A supporting seat is fixed to the outer side of the closed end of the machine shell. The section, on the outer side of the closed end of the machine shell, of the main shaft is rotationally matched with the supporting seat through a bearing. The end, corresponding to the covering plate, of the main shaft is connected with an 
encoder, the 
encoder is connected with a 
servo driver through a wire, and the 
servo driver is connected with a power source through a wire. The driving device is used for driving the swinging 
grinding head to carry out ultra-accurate grinding 
machining, equipment vibration is small, the angle adjustment is accurate, the grinding speed is high, the problems of 
crawling and inching are avoided, the 
machining accuracy of workpieces is high, and the maintenance cost of a mechanism is low.