[Solved] Difference between Hardware and Software PWM.



  • What is the difference between hardware pwm and software pwm



  • @Richu-Bini thanks for posting the question . just for a brief about pwm, pulse width modulation technique is a method to change the duty cycle of a wave. Which means you can determine how much time a signal must be on or off.

    So, coming to the question, software pwm and hardware pwm is just two different ways of producing same result. In software(referring Arduino here) you'll just write a value between 0 to 255 inorder to determine duty cycle percentage. For example 0 is 0% duty cycle which means the cycle is on for 0% of whole time, similarly 127 means 50% of time cycle will be on and 255 means signal will be on for ever. This is regarding software.

    Coming to hardware, you can generate a pwm signal using very simple passive component, called as potentiometer and 555 timer IC by using 555 timer as bistable multivibrator(The generated output will have two stable states 0 and Vmax, hence the name bistable) and changing the resistance using a potentiometer generates different duty cycles. This is the difference between hardware and software pwm. Please let me know if I haven't explained what you have expected.



  • thank youu


Log in to reply
 

Recent Posts

  • S

    @arunksoman thankyou so much...your reply really busted the stress out of me...can you help with any documentations which i could possibly go through

    read more
  • A

    @sreu13 It is possible and a far far better method.

    read more
  • S

    @arunksoman hi,..
    actually at this point of time, I'm not willing to risk RPI4,....i thought of connecting the rpi4 to google cloud (already have an account with $300 credit) and proceeding with the code.
    but i do not know if the below process can be executed

    sending image from rpi4 to cloud using this cloud for running prediction the above two processes should be automated and image should be sent to cloud when pi boots up(VM engine can be activated whenever nessesary)

    is this possible?

    read more
  • A

    @sreu13 I edited comment please read that again. Most probably it will not effect your file system. In some scenarios it can create worse effect.

    read more
  • S

    @arunksoman i'll try this method, but while executing swap command, will the rasbian os and the files it contains be effected??

    read more