# Set gpio pin PWM

**URL:** <https://forum.realdash.net/t/set-gpio-pin-pwm/5872>\
**Category:** Custom Hardware / Electronics\
**Created:** [July 23, 2024, 5:22pm UTC](https://forum.realdash.net/t/set-gpio-pin-pwm/5872 "2024-07-23T17:22:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cableline01](https://forum.realdash.net/user_avatar/forum.realdash.net/cableline01/32/2770_2.png) [@Cableline01](https://forum.realdash.net/u/Cableline01)\
**Post date:** [July 23, 2024, 5:22pm UTC](https://forum.realdash.net/t/set-gpio-pin-pwm/5872/1 "2024-07-23T17:22:41Z")

</div>

Is there a way to make a gpio pin on a raspberry pi set a pwm without having to call an python script? I want to have my screen dim when the headlights turn on and the screen can be controlled with a pmw input.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [August 1, 2024, 7:50am UTC](https://forum.realdash.net/t/set-gpio-pin-pwm/5872/2 "2024-08-01T07:50:07Z")

</div>

In theory, you could try the Servo motor controls, they use PWM. Never tried to use those to anything else than servos though.
