Skip to content

Commit

Permalink
Motor temperature: add table for error raw value conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
valegagge committed May 16, 2024
1 parent 79d6d58 commit 9bc4efc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/temperature_sensors/software/dataflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,26 @@ The `2FOC` performs some checks while reading the temperature from the `I2C` and
The TDB board sends 3 bytes on the `I2C` bus: the temperature value (2 bytes) and its configuration (1 byte). The `2FOC` verifies mainly the configuration byte.


The possible errors currently managed are the following:
The **possible errors** currently managed are the following:

- `-90` : the `2FOC` cannot read from the `I2C`, meaning that the `ACK` is not received from the `TDB`.
- `-70` : the reading cannot be done for 10 consecutive seconds. An overheating fault is triggered.
- `-50` : the TDB loses the given configuration and uses the default one. In this case, the 2FOC restores the desired configuration.
- `-30` : the `TDB` sets any configuration value different from both the desired and the default one.



In the **logfile**, the `yarprobotinterface` prints the raw value instead the degree Celsius. You can use the following table to understand the error.

| **Degree Celsius** | **Raw value for PT100** | **Raw value for PT1000** |
|:---:|:---:|:---:|
| `-90` | `-1141` | `-2729` |
| `-70` | `-886` | `-4613` |
| `-50` | `-631 ` | `-6549` |
| `-30` | `-378` | `-8541` |



The `2FOC` triggers the `Overheating` error, so the motor is set in Hardware fault, when:

1. it cannot read from the I2C bus longer than 10 seconds
Expand Down

0 comments on commit 9bc4efc

Please sign in to comment.