...
If your motor is rotating in a different direction than you want, simply change the pins either in the firmware file or the cables attached to the DIY Kit. That should change the direction of the motor.
...
Build the App
An example app can look like this.
...
The Slider Analog can be used to control the servo or motor via your dashboard. You can attach a joystick to your project by simply adding a joystick hardware object and connecting it to the left value port of a slider analog object. Then the motor or servo can be controlled by the dashboard and also a joystick for instance. The Manual Ranging object is used to convert the slider movement into numbers or degrees the motor or servo can read. Use the following tables as an example on how to edit your Manual Ranging objects.
For the Servo edit the Manual Ranging object with the following table.
Value | In Min | In Max | Out Min | Out Max | Rounded |
---|---|---|---|---|---|
Trigger: on | 0 | 4095 | 180 | 0 | false |
For the Motor edit the Manual Ranging object with the following table.
Value | In Min | In Max | Out Min | Out Max | Rounded |
---|---|---|---|---|---|
Trigger: on | 0 | 4095 | 0 | 4095 | false |
...
Projects
Mecanum Car
Widget Connector | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...