Speed control of dc motor

please help me please send me the code&thing’s to control dc motor