Skip to content

Commit

Permalink
Merge pull request #369 from tinymovr/docs/onboard_hotfix
Browse files Browse the repository at this point in the history
Docs/onboard hotfix
  • Loading branch information
yconst authored Aug 27, 2024
2 parents 4be0316 + 0fd6396 commit 3a6637a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The Tinymovr Servo Kit motor and encoder are already calibrated. If you have you
In Tinymovr Studio, navigate to `tmx->controller`. Press the button with the arrow next to the `calibrate` label. Note that after pressing this button, the motor will spin. Ensure the rotor is free of obstructions or loads, and the motor is firmly fixed.

Follow the on-screen prompts. The motor will produce an audible beep and rotate in one direction.
Your Tinymovr is now ready for operation. Navigate to `tmx->motor`. This will reveal identified motor parameters, namely: phase resistance, phase inductance, number of pole pairs and encoder ticks.
Your Tinymovr is now ready for operation. Navigate to `tmx->motor`. This will reveal identified motor parameters, namely: phase resistance (R), phase inductance (L) and number of pole pairs.

Testing Position Control using the Studio GUI
#############################################
Expand Down
Binary file added docs/sensors/connectors_M52.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sensors/connectors_R53.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 26 additions & 19 deletions docs/sensors/sensors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,30 @@ This document provides information and guides for using the various angle sensor
Connector Overview
******************

R5.3
====
.. image:: connectors_R53.jpg
:width: 800
:alt: Tinymovr R5.3 connector diagram

R5.2
====
.. image:: connectors_R52.jpg
:width: 800
:alt: Tinymovr R5.2 connector diagram

R5.1
====
.. image:: connectors_R51.jpg
:width: 800
:alt: Tinymovr R5.1 connector diagram

M5.1/M5.2
=========
.. image:: connectors_M52.jpg
:width: 800
:alt: Tinymovr M5.1/M5.2 connector diagram


Hardware Setup
**************
Expand Down Expand Up @@ -153,23 +169,6 @@ As a summary, the following ransforms are derived during calibration and are sto
Tinymovr makes use of the XF1 library, which has been developed for this purpose and offers convenience functions to perform transforms, derive transforms from data, as well as inverse and constrained transforms.


Onboard Magnetic
****************

All Tinymovr controllers feature an onboard magnetic absolute angle sensor that allows high precision angle measurement for efficient commutation and highly dynamic motor control. This is enabled by default and does not require any specific setup, apart from initial reference frame calibration.

The onboard angle sensor is enabled by default, so no special configuration is necessary. Should you need to switch to the onboard sensor, use the following commands:

.. code-block:: python
tmx.encoder.type = 0
tmx.encoder.bandwidth = 300
tmx.save_config()
tmx.reset() # sensor type change is applied after reset
The value of 300Hz in bandwidth is the default value configured based on the charasteristics of the onboard angle sensor.


Sensor Configuration
********************

Expand All @@ -181,6 +180,8 @@ Sensor Setup
Onboard Magnetic Sensor
-----------------------

Tinymovr R and M series feature an onboard magnetic absolute angle sensor that allows high precision angle measurement for efficient commutation and highly dynamic motor control. This is enabled by default and does not require any specific setup, apart from initial reference frame calibration.

The Onboard Magnetic Sensor does not require any configuration. In this section the calibration state and any sensor errors can be seen.


Expand Down Expand Up @@ -338,12 +339,18 @@ At this point, you are ready to perform motor/sensor calibration. This will meas
tmx.controller.calibrate()
After calibration finishes, you should be able to control the motor. Note that the default reference frame for the hall sensors maps to 8192 ticks per motor electrical cycle. You can change this by modifying the
After calibration finishes, you should be able to control the motor. Note that the default reference frame for the hall sensors maps to 8192 ticks per motor electrical cycle. You can change this by modifying the user frame multiplier:

.. code-block:: python
tmx.sensors.user_frame.multiplier = 1
Go ahead and enter velocity control mode, and set a setpoint:

.. code-block:: python
tmx.controller.velocity_mode()
tmx.controller.velocity.setpoint = 100 # around 60 rpm for a 15 pp motor
tmx.controller.velocity.setpoint = 80000 # around 60 rpm for a 15 pp motor
The motor should now move at a constant velocity.

Expand Down

0 comments on commit 3a6637a

Please sign in to comment.