# Using a dashboard switch node to activate motor/step counter

**URL:** <https://discourse.nodered.org/t/using-a-dashboard-switch-node-to-activate-motor-step-counter/96261>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [26 March 2025 00:22 UTC](https://discourse.nodered.org/t/using-a-dashboard-switch-node-to-activate-motor-step-counter/96261 "2025-03-26T00:22:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [26 March 2025 09:55 UTC](https://discourse.nodered.org/t/using-a-dashboard-switch-node-to-activate-motor-step-counter/96261/2 "2025-03-26T09:55:41Z")

</div>

@RGGabe welcome to the forum!

1. what version of NR are you using?
2. When you say 'dashboard' I think you are referring to the flow editor...correct?
3. add a debug node (set to display the complete map object) to the output of the `MoveMoterCode` function node and run a test. Copy the output and put it in a reply.

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

1. Also export your flow and paste it in a response so people can see what you are doing.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/using-a-dashboard-switch-node-to-activate-motor-step-counter/96261)._
