Flocke
Posts: 3
Joined: Sat Mar 21, 2015 11:25 pm

Raspberry Pi 2 Hardware PWM

Sun Mar 22, 2015 9:56 pm

Hello everybody,

i would like to where i can find the hardware-pwm pin on the raspberry pi 2?

Not sure, but found a GPIO-Pinout of b+ (which is equal to pi2 ? ) where ive found a PWM0, PWM1 and PWM2 slot?

Actually i plan to drive some 12V PC fans with a MOSFET-circuit.

Thanks!

User avatar
rpdom
Posts: 18696
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi 2 Hardware PWM

Sun Mar 22, 2015 11:00 pm

There are two hardware PWM channels on the BCM2385/6.

PWM0, which can be set to use GPIOs 12, 18, 40, and 52. Only 12 (pin 32) and 18 (pin 12) are available on the B+/2B, and PWM1 which can be set to use GPIOs 13, 19, 41, 45 and 53. Only 13 is available on the B+/2B, on pin 35 (but I think PWM1 is used for something - is it the audio output?)

Flocke
Posts: 3
Joined: Sat Mar 21, 2015 11:25 pm

Re: Raspberry Pi 2 Hardware PWM

Sun Mar 22, 2015 11:16 pm

rpdom wrote:There are two hardware PWM channels on the BCM2385/6.

PWM0, which can be set to use GPIOs 12, 18, 40, and 52. Only 12 (pin 32) and 18 (pin 12) are available on the B+/2B, and PWM1 which can be set to use GPIOs 13, 19, 41, 45 and 53. Only 13 is available on the B+/2B, on pin 35 (but I think PWM1 is used for something - is it the audio output?)
Yeah, its shared with the audio - but there is no audio feature needed in my project.
Thanks for pointing that out! :-)


Return to “Beginners”