MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    [Solved] Difference between Hardware and Software PWM.

    Arduino
    2
    3
    1247
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Richu Bini last edited by salmanfaris

      What is the difference between hardware pwm and software pwm

      1 Reply Last reply Reply Quote 0
      • kowshik1729
        kowshik1729 last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • R
          Richu Bini last edited by

          thank youu

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          Recent Posts

          • S

            @salmanfaris Actually, I can't connect my NodeMCU device with the localhost server. I can establish a connection using the test.mosquitto.org server.
            This is my required case: YouTube link

            • read more
          • @sivanath From your last message looks like the MQTT broker already running on your computer. Could you please try to do a test with nodeRED and see it's working or not.

            • read more
          • S

            @swalahamani I may not be able to come tomorrow. I think we could set up a call. How can I contact you personally?

            • read more
          • @sivanath

            Oh okay.

            Please bring your device if you're coming for the upcoming MakerChat 0x13 tomorrow (IST). Either I and @salmanfaris or both of us will be there.

            Or else we can set up a call sometime this weekend or the next week and sort it out.

            Let me know.

            • read more
          • S

            @swalahamani Yeah!!

            • read more
          By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
          Copyright © 2023 MakerGram, All rights reserved.
          Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct