Convert C into Arduino Uno 3

Hahaha this is not homework assignment. I want to make dc servo motor myself. If i use any other code then i have to change the Servo motor controller board.