Hello Ananya,
Thanks for writing in.
Would you please kindly tell us which pwm generator it is? A product link would be appreciated.
And to check problem for you, is it convenient for you to take some images to show your connection? You can upload picture here or send it to service@droing.com
With more information, we can find solution quickly.
Best regards.