You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get-started/control-motor.md
+153-9Lines changed: 153 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -80,13 +80,13 @@ For the `fake` model, there are no required attributes.
80
80
{{< /expand >}}
81
81
{{< expand "Step 4: Configure a motor" >}}
82
82
83
-
[Add a motor component](/components/motor/) that supports the type of motor and motor driver you're using.
83
+
Add a `motor` component that supports the type of motor and motor driver you're using.
84
84
Look through the [**Supported Models**](/components/motor/#available-models) to determine the model of component to configure.
85
85
For example, if you are using a standard DC motor (brushed or brushless) wired to a typical GPIO pin-controlled motor driver, configure a [`gpio` motor](/components/motor/gpio/):
86
86
87
87

88
88
89
-
Follow the motor driver manufacturer's data sheet to properly wire your motor driver to your board and to your motor.
89
+
Follow the motor driver manufacturer's data sheet to wire your motor driver to your board and to your motor.
90
90
Follow the [model's documentation](/components/motor/) to configure the attributes so that the computer can send signals to the motor.
91
91
92
92
If you do not have a physical motor, use the [`fake` motor model](/components/motor/fake/).
@@ -100,20 +100,20 @@ You can control your motor directly from the Viam app, using the mobile app, or
100
100
101
101
### Option 1: Control from the app
102
102
103
-
Navigate to your machine's **CONTROL** tab in the Viam app and use the **Power %** slider to set the motor's speed.
103
+
Navigate to your machine's **CONTROL** tab in the Viam app and click on the motor panel.
104
+
Then use the **Power %** slider to set the motor's speed.
104
105
Use the **Backwards** and **Forwards** buttons to change the direction.
105
106
106
107
{{<gifwebm_src="/get-started/quickstarts/motor-control.webm"mp4_src="/get-started/quickstarts/motor-control.mp4"alt="Using the slider, Backwards, and Forwards buttons on the Viam app to control the direction and speed of a configured motor"class="aligncenter"min-height="750px">}}
107
108
108
109
### Option 2: Control from the mobile app
109
110
110
-
You can use [the Viam mobile app](/fleet/#the-viam-mobile-app) to control your motor's speed and direction directly from your smart device.
111
+
You can use [the Viam mobile app](/fleet/#the-viam-mobile-app) to control your motor's speed and direction directly from your smart phone.
111
112
112
113
Open the Viam mobile app and log in to your account.
113
-
Select the location where your machine is assigned.
114
-
Choose your machine from the list and use the mobile interface to adjust the motor settings.
114
+
Select the location that your machine is in from the **Locations** tab.
115
115
116
-
Select the location that your machine is assigned to from the **Locations** tab.
116
+
Choose your machine from the list and use the mobile interface to adjust the motor settings.
117
117
118
118
{{<gifwebm_src="/get-started/quickstarts/mobile-app-motor-control.webm"mp4_src="/get-started/quickstarts/mobile-app-motor-control.mp4"alt="Using an example machine on the Viam mobile app to set the direction and speed of a configured motor using the slider on the user interface"max-height="50px"max-width="200px"class="HELLO aligncenter">}}
119
119
@@ -133,7 +133,6 @@ import asyncio
133
133
import time
134
134
135
135
from viam.robot.client import RobotClient
136
-
from viam.rpc.dial import Credentials, DialOptions
0 commit comments