Have Raspberry Pi 3 native PMW outs?
Have Raspberry Pi 3 native PMW outs?
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
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?
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?
@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