# Servo motor control using PCA9685

**URL:** <https://discourse.nodered.org/t/servo-motor-control-using-pca9685/56870>\
**Category:** General\
**Created:** [18 January 2022 16:26 UTC](https://discourse.nodered.org/t/servo-motor-control-using-pca9685/56870 "2022-01-18T16:26:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [18 January 2022 20:47 UTC](https://discourse.nodered.org/t/servo-motor-control-using-pca9685/56870/2 "2022-01-18T20:47:04Z")

</div>

Probably not quite what you are after - but it may give you some ideas as a starting point.  
This was a project to drive a model racing car using Pulse Width Modulation (PWM) using a Wemos D1 Mini (flashed with ESPeasy) driven from a Node-RED flow. Note: ESPeasy also supports servo motors.

> [@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/servo-motor-control-using-pca9685/56870)._
