HELP - Arduino Uno generate Sinusoidal pwm

weesiang_loke:
alright my bad. actually i am going to pass the wave into a dc motor using a H-bridge. so i think i only need to create something like a sine wave but in the pwm form. from what i heard that will trick the motor that actually a sine wave is created. but anyway thanks for the replies and sorry for the confusion i have made.

regards,

Yes, your requirements are still a little fuzzy. What is your bottom line objective, be be able to control the speed and direction of rotation for a simple DC motor? Is so you can forget the whole sine-wave thingee, just drive the H-drive controller with a variable duty cycle PWM signal, thousands of us have done just that using standard Arduino analogWrite() commands. If your objective is something else just state it without your guess on how it should be performed.
Lefty