# Motor control via a digital button (dashboard)

**URL:** https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130
**Category:** General
**Created:** [4 March 2024 15:57 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130 "2024-03-04T15:57:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Fabian1](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@Fabian1](https://discourse.nodered.org/u/Fabian1)
#### Post date: [4 March 2024 15:57 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/1 "2024-03-04T15:57:45Z")

</div>

Hello, I want to control a motor and use a RaspberryPi4b. The control is monitored via a GRBL CNC controller. As long as I hold down a button (Digital Dashboard), the motor should turn to the right as soon as I release the button it should stop immediately. Please help . Many thanks in advance

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 March 2024 16:30 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/2 "2024-03-04T16:30:37Z")

</div>

> dashboard

Which dashboard are you using?

> [@Fabian1](#):
>
> As long as I hold down a button (Digital Dashboard), the motor should turn

There are several examples for Dashboard 1.0 - here is one such demo: [Button on dashboard - #9 by jbudd](https://discourse.nodered.org/t/button-on-dashboard/62068/9)

---

<div class="post-metadata">

### Author: ![Fabian1](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@Fabian1](https://discourse.nodered.org/u/Fabian1)
#### Post date: [4 March 2024 16:32 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/3 "2024-03-04T16:32:40Z")

</div>

I use the normal node-red dashboard. Are there better dashboards for this?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 March 2024 16:39 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/4 "2024-03-04T16:39:07Z")

</div>

The old (original) dashboard (we now call Dashboard 1.0 or legacy) uses old, unsupported technology (AngularJS) see [AngularJS | endoflife.date](https://endoflife.date/angularjs#:~:text=AngularJS%20was%20deprecated%20on%20December,(NES%2C%20formerly%20XLTS)).

And while it will likely continue to work for some time, there will be a day when a bug or CVE forces users to move to a different "thing"

Because of this, [@flowfuse/node-red-dashboard](https://dashboard.flowfuse.com/) has been created. We typically refer to this as Dashboard 2.0. It uses `vue` instead of `angularJS` and is fully supported.

The choice is yours.

---

<div class="post-metadata">

### Author: ![Fabian1](https://avatars.discourse-cdn.com/v4/letter/f/eada6e/32.png) [@Fabian1](https://discourse.nodered.org/u/Fabian1)
#### Post date: [4 March 2024 16:49 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/5 "2024-03-04T16:49:38Z")

</div>

OK thanks. but do you happen to know how to control the motor? and how do I get to the dashboard?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 March 2024 16:57 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/6 "2024-03-04T16:57:19Z")

</div>

> [@Fabian1](#):
>
> but do you happen to know how to control the motor

I guess you send G Code to it.

There are a hand full of posts (including your other post where I pointed you towards to GRBL libs) and some others from @MadTooler and another [Precision CNC Masking Machine using Node-RED Dashboard & GRBL32 CNC Control](https://discourse.nodered.org/t/precision-cnc-masking-machine-using-node-red-dashboard-grbl32-cnc-control/75015) by @dudleyjosh - if these guys are still around, they might be able to point you in the right direction. Otherwise you will have to work out how to parse and transmit G Code yourself.

> [@Fabian1](#):
>
> and how do I get to the dashboard

I have no idea what you mean by this.

---

<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: [2 June 2024 16:57 UTC](https://discourse.nodered.org/t/motor-control-via-a-digital-button-dashboard/86130/7 "2024-06-02T16:57:42Z")

</div>

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