Motor Control (PWM), duty cycle control w/ remote

Hello all, I am new to the forum.

I don't have much experience with programming; however, for my senior design project, I need to control a 12V D/C motor using PWM.

I would like to control the pulse width duty cycle with a wired controller (old playstation controller) or even a wireless control.

Does anyone have any advice or code that I could "borrow" to help me along with this project?


Yeah, you might use this new tool called "Google":