From FreeCAD Documentation
- Optionally activate the correct body.
- Go to the menu Part Design → Sprocket....
- Set the DataNumber Of Teeth and the DataSprocket Reference.
- Click OK.
- If there was no active body: drag and drop the sprocket into a body for the application of further features like padding.