# How to dim High Power LEDs with Rspberry Pi

**URL:** <https://forum.core-electronics.com.au/t/how-to-dim-high-power-leds-with-rspberry-pi/20495>\
**Category:** Uncategorized\
**Created:** [21 July 2024 22:36 UTC](https://forum.core-electronics.com.au/t/how-to-dim-high-power-leds-with-rspberry-pi/20495 "2024-07-21T22:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard83832](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@Richard83832](https://forum.core-electronics.com.au/u/Richard83832)\
**Post date:** [21 July 2024 22:36 UTC](https://forum.core-electronics.com.au/t/how-to-dim-high-power-leds-with-rspberry-pi/20495/1 "2024-07-21T22:36:29Z")

</div>

I have read your excellent guide " How to Drive High Power LEDs – 3W Aluminum Backed Star LEDs" which mentions that it’s possible to use that setup to with a micro-controller such as an Arduino or ESP32 to dim LED’s. I would prefer to dim with my R Pi if possible. If so, could you please let me know how dimming could be added using a Pi with the same setup in the guide.  
Thanks, Richard

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [22 July 2024 04:33 UTC](https://forum.core-electronics.com.au/t/how-to-dim-high-power-leds-with-rspberry-pi/20495/2 "2024-07-22T04:33:21Z")

</div>

Hi @Richard83832,

One way you could do it using the current setup from [the Guide](https://core-electronics.com.au/guides/how-to-drive-high-power-leds/) would be to use Mosfets to control the output from the DC regulator. Something like [this board](https://core-electronics.com.au/mosfet-power-switch-module.html) and a Pi should work well to get this working.

---

<div class="post-metadata">

**Author:** ![Richard83832](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@Richard83832](https://forum.core-electronics.com.au/u/Richard83832)\
**Post date:** [22 July 2024 09:03 UTC](https://forum.core-electronics.com.au/t/how-to-dim-high-power-leds-with-rspberry-pi/20495/3 "2024-07-22T09:03:20Z")

</div>

Hi Aaron, I have ordered the Mosfet board you have suggested; does this wiring look correct?

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/7/73a77053d6d2ea88d1883687ce9321757ce73ba7.jpeg)  
I intend adapting the python PWM code with a gpiozero library used in the [Random Nerd Tutorial](https://randomnerdtutorials.com/raspberry-pi-pwm-python/)  
Thanks  
Richard

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [22 July 2024 23:59 UTC](https://forum.core-electronics.com.au/t/how-to-dim-high-power-leds-with-rspberry-pi/20495/4 "2024-07-22T23:59:30Z")

</div>

@Richard83832, That is how I would wire it up 🙂
