# stepper control mqtt

**URL:** <https://discourse.nodered.org/t/stepper-control-mqtt/1792>\
**Category:** General\
**Created:** [24 July 2018 18:37 UTC](https://discourse.nodered.org/t/stepper-control-mqtt/1792 "2018-07-24T18:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smaeelnakhaee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smaeelnakhaee/32/18938_2.png) [@smaeelnakhaee](https://discourse.nodered.org/u/smaeelnakhaee)\
**Post date:** [24 July 2018 18:37 UTC](https://discourse.nodered.org/t/stepper-control-mqtt/1792/1 "2018-07-24T18:37:42Z")

</div>

i want to program a node mcu connected to mqtt and stepper motor 28byj-48 uln 2003 with arduino ide and control it with a slider bar from node-red dashboard To control the curtain of the room so that the slider is between 0 and 100, the exact position of the curtain can be adjusted. The number of steps to open or close the curtain is 8260 steps. please help me

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [24 July 2018 18:38 UTC](https://discourse.nodered.org/t/stepper-control-mqtt/1792/2 "2018-07-24T18:38:58Z")

</div>

smaeel take a look on the standard range node from the palette, like this you can easy scale from one range to another.

As starting point of course, you will need a counter a matrix etc...

Regards
