# Jittery continuous control from dashboard slider

**URL:** https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357
**Category:** Dashboard
**Created:** [16 August 2018 23:38 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357 "2018-08-16T23:38:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![blechdom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/blechdom/32/707_2.png) [@blechdom](https://discourse.nodered.org/u/blechdom)
#### Post date: [16 August 2018 23:38 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357/1 "2018-08-16T23:38:20Z")

</div>

I am using the dashboard slider to control Arduino-servos from node-red. I am noticing that the speed that I move the slider dictates how many values-per-second are output. This causes my servo to jump around significantly. I would like to be able to send continuous and smooth data from the node-red dashboard in real-time, and for the slider not to omit values when I move it faster. Has any one had this problem and found a solution? Are other GUI options, or ways to get continuous mouse data without skipping values when moving quicker. Is there a way to constantly poll the slider value instead of relying on some built-in velocity output function? Any insight into why this is happening would be appreciated.  
Thanks,  
kristin

---

<div class="post-metadata">

### Author: ![blechdom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/blechdom/32/707_2.png) [@blechdom](https://discourse.nodered.org/u/blechdom)
#### Post date: [17 August 2018 23:21 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357/2 "2018-08-17T23:21:20Z")

</div>

investigating node-red-contrib-uibuilder...  
looks promising so far...

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [18 August 2018 07:51 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357/3 "2018-08-18T07:51:40Z")

</div>

I think it "jumps around" by deliberate design

If the slide generated all the values from a change in position - then that could end up being a LOT of values which could have quite an impact on performance.

I think if you want your servo to move slowly/smoothly from one position to another, then it would be best to feed the slider output to a set of intermediate nodes to perform the smoothing rather than connect it direct to your Arduino

---

<div class="post-metadata">

### Author: ![blechdom](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/blechdom/32/707_2.png) [@blechdom](https://discourse.nodered.org/u/blechdom)
#### Post date: [19 August 2018 17:00 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357/4 "2018-08-19T17:00:51Z")

</div>

Thanks for the info.  
It's unfortunate because most of my work will having real-time smooth control, and the dashboard is so quick for prototyping and generally works / looks really good.

Waiting until the slider decides it's a good time to output a value so I can do a delayed interpolation won't cut it

My current work-around is to use hardware midi control to input smooth values into node-red. This gets the job done smoothly, even if I'm limited to 128 values.

---

<div class="post-metadata">

### Author: ![ccabman](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ccabman/32/6275_2.png) [@ccabman](https://discourse.nodered.org/u/ccabman)
#### Post date: [20 August 2018 00:47 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357/5 "2018-08-20T00:47:39Z")

</div>

You can accomplish what you desire by not sending the data directly to the servo controller. Instead, have the slider feed into a function node and that will indicate your desired state and the function will send discrete messages to the servo based on a loop.

Hope this helps! If you have any questions, feel free to ask.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [20 August 2018 08:48 UTC](https://discourse.nodered.org/t/jittery-continuous-control-from-dashboard-slider/2357/6 "2018-08-20T08:48:34Z")

</div>

I have pushed a small change to the master version to see if it makes a difference. To try it you will need to install dashboard from git rather than npm

```
cd ~/.node-red
npm i node-red/node-red-dashboard

```

Let me know if it's an improvement.
