Skip to content

Commit

Permalink
DOCS-1389: Update TMC5072 motor attributes (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessamyT authored Dec 7, 2023
1 parent f85cc10 commit c24e636
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/components/motor/tmc5072.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Edit and fill in the attributes as applicable.
"board": "<your-board-name>",
"spi_bus": "<your-spi-bus-name>",
"chip_select": "<pin-number>",
"index": "<your-spi-bus-index>",
"index": "<your-terminal-index>",
"ticks_per_rotation": <int>,
"max_acceleration_rpm_per_sec": <float>,
"sg_thresh": <int>,
Expand Down Expand Up @@ -86,12 +86,11 @@ Edit and fill in the attributes as applicable.
"type": "motor",
"namespace": "rdk",
"attributes": {
"board": "example-board",
"chip_select": "36",
"index": 0,
"chip_select": "0",
"index": 1,
"max_acceleration": 10000,
"max_rpm": 450,
"spi_bus": "main",
"spi_bus": "0",
"ticks_per_rotation": 200
}
}
Expand All @@ -107,9 +106,8 @@ The following attributes are available for `TMC5072` motors:
<!-- prettier-ignore -->
| Name | Type | Inclusion | Description |
| ---- | ---- | --------- | ----------- |
| `board` | string | **Required** | `name` of the [board](/components/board/) to which the motor controller is wired. |
| `spi_bus` | string | **Required** | The board [SPI bus](/components/board/#spis) over which the TMC chip communicates with the board. |
|`chip_select` | string | **Required** | The {{< glossary_tooltip term_id="pin-number" text="pin number" >}} of the GPIO pin on the board wired to the TMC controller. The board sets this high or low to let the TMC chip know whether to listen for commands over SPI. |
|`chip_select` | string | **Required** | The chip select number (CSN) that the TMC5072 is wired to. For Raspberry Pis, use `"0"` if the CSN is wired to {{< glossary_tooltip term_id="pin-number" text="pin number" >}} 24 (GPIO 8) on the Pi, or use `"1"` if you wire the CSN to pin 26. The board sets this high or low to let the TMC chip know whether to listen for commands over SPI. |
| `index` | int | **Required** | The index of the part of the chip the motor is wired to. Either `1` or `2`, depending on whether the motor is wired to the "MOTOR1" terminals or the "MOTOR2" terminals, respectively. |
| `ticks_per_rotation` | int | **Required** | Number of full steps in a rotation. 200 (equivalent to 1.8 degrees per step) is very common. If your data sheet specifies this in terms of degrees per step, divide 360 by that number to get ticks per rotation. |
| `max_acceleration_rpm_per_sec` | number | **Required** | Set a limit on maximum acceleration in revolutions per minute per second. |
Expand Down

0 comments on commit c24e636

Please sign in to comment.