# Fan Speed Regulation PWM GPIO

**URL:** <https://discourse.nodered.org/t/fan-speed-regulation-pwm-gpio/66240>\
**Category:** General\
**Tags:** node-red-dashboard, function-node\
**Created:** [9 August 2022 15:54 UTC](https://discourse.nodered.org/t/fan-speed-regulation-pwm-gpio/66240 "2022-08-09T15:54:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [9 August 2022 17:24 UTC](https://discourse.nodered.org/t/fan-speed-regulation-pwm-gpio/66240/3 "2022-08-09T17:24:57Z")

</div>

Here's a link to my slot-car racing project.  
This used a PWM pin driving a power transistor.

> [@Slot car racing - - - just pure fun](https://discourse.nodered.org/t/slot-car-racing-just-pure-fun/8782):
>
> I make no excuse at all - this is just pure fun. My students will love it !!!! I've just bought a slot car racing set from a local charity shop and have connected it to a WeMos D1 Mini on a breadboard driven from Node-RED via MQTT. On the breadboard is a PCA9685 (16-channel, 12-bit PWM module). It took some time sorting out the best PWM frequency and range settings, but eventually settled on 1500Hz with a range also of 1500. The car goes from a slow "creep" to just below "max speed", as at …

---

_[View the full topic](https://discourse.nodered.org/t/fan-speed-regulation-pwm-gpio/66240)._
