element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Have Raspberry Pi 3 native PMW outs?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 677 subscribers
  • Views 1641 views
  • Users 0 members are here
  • raspberry_pi
Related

Have Raspberry Pi 3 native PMW outs?

massimiliano.pilosio@libero.it
massimiliano.pilosio@libero.it over 8 years ago

Have Raspberry Pi 3 native PMW outs?

  • Sign in to reply
  • Cancel
Parents
  • ndtsteve
    0 ndtsteve over 8 years ago

    I presume you mean hardware PWM (as software ones, use overheads and so are wasteful and take up precious computing time) - yes, it does have hardware PWM.... however:

     

    There is an excellent library, bcm2835 lib, which includes the hardware PWM init section and this works fine on all RPIs except RPI3.  If you look at he Raspberry Pi Forums you will see that many are finding that the hardware PWM is not working on the RPI3, me included.

     

    You will read the usual comments from people who have never actually tested saying it must be hardware, but I and others have tested it on load of new sets of hardware.  When using the RPI2 the hardware PWM works everytime.

     

    For example, see this link (which is simply 1 of many)

    pi 3 - Using PWM on raspberry pi 3 vs pi 2 with bcm2835 library - Raspberry Pi Stack Exchange

     

    Some users find that running at sudo level fixes their problem, with others it makes no difference.

     

    I does appear that there is some oddity with the hardware PWM on just the RPI3 version and so if anyone has actually got it to work (not software PWM) please share.

     

    Steve

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • petergloor
    0 petergloor over 8 years ago in reply to ndtsteve

    ndtsteve schrieb:

     

    [...] There is an excellent library, bcm2835 lib, which includes the hardware PWM init section and this works fine on all RPIs except RPI3. If you look at he Raspberry Pi Forums you will see that many are finding that the hardware PWM is not working on the RPI3, me included.

     

    You will read the usual comments from people who have never actually tested saying it must be hardware, but I and others have tested it on load of new sets of hardware. When using the RPI2 the hardware PWM works everytime.[...]

     

    Steve

    @ndtsteve  If you say it works using the RPI2 do you mean the "old" Raspberry Pi 2 Model B V1.1 with the BCM2836 or the new Raspberry Pi 2 Model B V1.2 with the BCM2837 processor?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ndtsteve
    0 ndtsteve over 8 years ago in reply to petergloor

    @Peter

    Yes, that library works with ALL RPI2 models, version 1.1 with BCM2836 and version 1.2 with BCM2837 - this is the link to that library for you to see the instructions in the event you have not got them:

    bcm2835: C library for Broadcom BCM 2835 as used in Raspberry Pi

     

    The lib is currently V1.51.  All works well except the HARDWARE PWM for some reason with many users, even when starting with a fresh new RPI3, newly installed Raspian and lib, with nothing else loaded or added and running the test program at sudo level.

     

    Out of interest, here is another link where the user gave up and bought a separate hardware PWM module:

    https://groups.google.com/forum/m/#!topic/bcm2835/mZjLtVmlKV8

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • ndtsteve
    0 ndtsteve over 8 years ago in reply to petergloor

    @Peter

    Yes, that library works with ALL RPI2 models, version 1.1 with BCM2836 and version 1.2 with BCM2837 - this is the link to that library for you to see the instructions in the event you have not got them:

    bcm2835: C library for Broadcom BCM 2835 as used in Raspberry Pi

     

    The lib is currently V1.51.  All works well except the HARDWARE PWM for some reason with many users, even when starting with a fresh new RPI3, newly installed Raspian and lib, with nothing else loaded or added and running the test program at sudo level.

     

    Out of interest, here is another link where the user gave up and bought a separate hardware PWM module:

    https://groups.google.com/forum/m/#!topic/bcm2835/mZjLtVmlKV8

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube