# 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:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![caiomac](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@caiomac](https://discourse.nodered.org/u/caiomac)
#### Post date: [18 January 2022 16:26 UTC](https://discourse.nodered.org/t/servo-motor-control-using-pca9685/56870/1 "2022-01-18T16:26:15Z")

</div>

I'm new to nodered, I would like to know how to drive a servo motor.  
I'm using a pc9685.

---

<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 …

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [19 March 2022 20:47 UTC](https://discourse.nodered.org/t/servo-motor-control-using-pca9685/56870/3 "2022-03-19T20:47:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
