13 Replies Latest reply on Dec 6, 2017 3:47 PM by akashpaarmar_2843246

    PSoc 4: How to generate varying PWM with analog input?

    akashpaarmar_2843246

      Hello everyone,

       

      I am new to this field. I want to convert an analog input (from a potentiometer) to PWM output. Which mean,

       

      if 0 V analog input --> 0% duty for PWM

      if 3.3 V (max) analog input --> 100% duty for PWM

      PWM output connected  to LED

       

      By searching online and in the community, I am able to do the project attached below.


      The problem I am facing is if I change a potentiometer nothing happens on the LED. Please help me!