using RasPi hardware PWM GPIOs to dim LEDstrips ?

Moderator: leecollings

Post Reply
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

using RasPi hardware PWM GPIOs to dim LEDstrips ?

Post by pascalspits »

Hi, I read that the RasPi has 2 hardware PWM GPIO's :

"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?)"


Is there a way to use these in Domoticz as LEDstrip dimmers (via a MOSFET of course) ?
If so, how is this done ?

Thanks
Pascal
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
Yayaa10
Posts: 1
Joined: Friday 03 November 2017 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: using RasPi hardware PWM GPIOs to dim LEDstrips ?

Post by Yayaa10 »

Hi I'm interested to this way.

Actualy I use the PWM with a Python script and a light ON/OFF whose execute the script when the light turn ON.

Is it possible to use a dimmer swich in order to use a ON/OFF switch and a script ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest