In the first article, we looked at what happens to an AI accelerator when it gets hot: power creeps up as it heats, then performance drops once it reaches its thermal throttling point.
Series: Edge AI Thermal Management
- Part 1: What Happens to Your AI Accelerator When It Gets Hot?
- Part 2: Closing the Thermal Loop with Renesas RA6M5 (this post)
In this article, we want to achieve two things:
- Determine how much airflow is needed to prevent thermal throttling for a selection of M.2 AI accelerator modules.
- Implement a thermal control loop that reacts to power consumption, and previous power-temperature observations, in order to be more proactive in the thermal management.
First, let’s take a look at the setup we will build.
Setup Overview
In my previous power telemetry project, I used a USB-I2C bridge to control the INA228 power monitor:
This limited the number of readings that were achievable, since the host PC was involved in performing each reading, in addition to running the AI pipeline under test.
In this project, we will be offloading that host processing to the Renesas RA6M5 embedded microcontroller.
I chose the RA6M5 because it belongs to the Renesas RA family, which scales from this 200 MHz Cortex-M33 down to small, inexpensive microcontrollers, all supported by the same software package (Renesas FSP). The thermal control loop can be developed on a part with plenty of margin, and then moved to a much smaller RA device for a product.
We will also be using the following additional components:
- SparkFun Air Velocity Sensor Breakout - FS3000-1005 (Qwiic)
- Noctua NF-A4x10 5V PWM
- Adafruit EMC2101 I2C PC Fan Controller and Temperature Sensor
- Adafruit INA228 I2C Power Monitor
- Adafruit MAX31855 Thermocouple Amplifier
General Diagram
The I2C connections are easy with the Qwiic cabling solution. The SPI interface, and other signals, need to be connected manually. The next section goes into more detail for these manual connections.
Wiring Diagrams
The fan controller provides a PWM signal (FAN) to the fan, and reads back its speed with a feedback signal (TACH). The fan’s 5 V power comes from the VU pin of the SparkFun Thing Plus RA6M5 module.
The thermocouple amplifier uses an SPI interface, which needs to be connected as follows:
Assembly Plate
In order to hold the various components in place, I created a base plate that will slide underneath the M.2 accelerator module.
The following diagram illustrates how the components attach to the base plate, as well as how the assembly is placed underneath the M.2 accelerator module.
I have identified the location of a second FS3000 module. This can be used as an alternate location (downstream instead of upstream), or for a second airflow sensor. Since this module has a fixed I2C address, a Qwiic-compatible I2C mux module would be required to support multiple FS3000 devices.
A 1:1 printable template of the plate is also available. Check the 100 mm scale bar after printing. The plate outline and holes are also available as a DXF file, for cutting on a CNC or laser cutter.
Final Assembly
Here is my final assembly, shown with a DX-M1 module installed.

How Much Airflow Is Needed ?
In order to determine how much airflow was needed, I started by loading the AI accelerator for 30 minutes, enough for it to reach its stable thermally-throttled state.
Next, I progressively increased the fan’s speed, and measured the airflow, in order to determine when the AI accelerator no longer throttled its operating frequency.
Both accelerators ran ResNet-50 for 320 minutes, with the same fan schedule: 30 minutes with the fan off, then the fan stepped up one EMC2101 duty level every 5 minutes, from 9.5% to 100%. The EMC2101 fan controller only has 64 duty levels, 1.6 points apart, so each step lands exactly on the next level. The 9.5% starting point is the lowest level at which this fan rotates continuously. After the load stopped, the fan stayed at 100% for a 30-minute cool-down. The fan, the airflow sensor and the M.2 slot were the same for both runs. Only the accelerator changed.
I used my mb-benchmark-gui application to run these sessions:
Here is a snapshot of my latest run with the Hailo-8, a few minutes into the fan-off soak:

The raw logs are available for the Hailo-8 and the DX-M1.
Comparative Analysis
The following charts compare the results for Hailo-8 and DeepX DX-M1, on the same time axis, each at full scale.
Thermal Throttling
The first graph indicates the on-die temperature for each NPU, as well as its operating frequency. When the NPU reaches a certain temperature threshold (104 °C for Hailo-8, about 88 °C for DX-M1), the operating frequency is lowered, thus implementing its thermal throttling. This is the behaviour we want to characterize and avoid.
The two modules throttle in very different ways.
The Hailo-8 steps its core clock down in discrete levels: from 400 MHz to 350 MHz, then 300 MHz. During the last 10 minutes of the soak, it spent 63% of the time at 350 MHz and 37% at 300 MHz, and its frame rate followed the clock exactly. The result is a large, slow oscillation (1028–1202 FPS), clearly visible in the reported clock, the frame rate and the power.
The DX-M1 throttles with a fast, shallow dither between 1000 MHz and 800 MHz. Over the same last 10 minutes of the soak, its frame rate was 6% below its cooled value, which implies that it spent roughly 30% of the time at 800 MHz (assuming throughput scales with the clock). However, the reported clock caught 800 MHz in fewer than 1% of the samples, and the samples reporting a full 1000 MHz were themselves 6% slow.
This is a limitation of my measurement setup. The clock is read once per second, as an instantaneous value, while the frame rate is averaged over the whole second. The DX-M1’s dither is faster than this 1 Hz sampling, so we are not able to see its fine-grain throttling, only its effect on the frame rate. For this module, the frame rate is the only reliable throttling indicator.
Power Efficiency
The following graph illustrates the effects of heat and thermal throttling on the power efficiency.
Although the Hailo-8 NPU undergoes more heat and more pronounced thermal throttling, it remains more power efficient than DeepX DX-M1.
Power versus Temperature
When running at their full frame rate, both modules consume more power as they get hotter. Since the AI workload is identical, most of this increase is likely leakage. The INA228 measures the whole module, however, so the memory and voltage regulators, which can also drift with temperature, are included.
Show the data
| °C | W | samples |
|---|---|---|
| 59 | 4.375 | 5285 |
| 61 | 4.391 | 675 |
| 63 | 4.414 | 630 |
| 65 | 4.438 | 618 |
| 67 | 4.463 | 636 |
| 69 | 4.491 | 540 |
| 71 | 4.524 | 564 |
| 73 | 4.553 | 378 |
| 75 | 4.586 | 413 |
| 77 | 4.624 | 508 |
| 79 | 4.655 | 590 |
| 81 | 4.692 | 502 |
| 83 | 4.725 | 464 |
| 85 | 4.772 | 339 |
| 87 | 4.813 | 255 |
| 89 | 4.859 | 289 |
| 91 | 4.91 | 284 |
| 93 | 4.968 | 123 |
| 95 | 5.016 | 190 |
| 97 | 5.084 | 223 |
| 99 | 5.137 | 162 |
| 101 | 5.21 | 421 |
| 103 | 5.265 | 348 |
| °C | W | samples |
|---|---|---|
| 55 | 5.427 | 21 |
| 57 | 5.443 | 20 |
| 59 | 5.469 | 21 |
| 61 | 5.486 | 27 |
| 63 | 5.459 | 5454 |
| 65 | 5.481 | 1618 |
| 67 | 5.501 | 1494 |
| 69 | 5.526 | 1102 |
| 71 | 5.548 | 1086 |
| 73 | 5.573 | 827 |
| 75 | 5.599 | 594 |
| 77 | 5.627 | 598 |
| 79 | 5.656 | 548 |
| 81 | 5.686 | 481 |
| 83 | 5.717 | 497 |
| 85 | 5.75 | 550 |
| 87 | 5.76 | 743 |
| 89 | 5.774 | 42 |
At full scale, the leakage is visible, but modest compared with each module’s total power. Over the temperatures each module covered at its full frame rate, the Hailo-8’s power rises from 4.38 W at 59 °C to 5.27 W at 103 °C (+20%), and the DX-M1’s from 5.43 W at 55 °C to 5.77 W at 89 °C (+6%). At every temperature both modules reached, the DX-M1 draws between 0.9 W and 1.1 W more than the Hailo-8.
Zooming in on the 4 W to 6 W range makes the two slopes easier to compare:
Show the data
| °C | W | samples |
|---|---|---|
| 59 | 4.375 | 5285 |
| 61 | 4.391 | 675 |
| 63 | 4.414 | 630 |
| 65 | 4.438 | 618 |
| 67 | 4.463 | 636 |
| 69 | 4.491 | 540 |
| 71 | 4.524 | 564 |
| 73 | 4.553 | 378 |
| 75 | 4.586 | 413 |
| 77 | 4.624 | 508 |
| 79 | 4.655 | 590 |
| 81 | 4.692 | 502 |
| 83 | 4.725 | 464 |
| 85 | 4.772 | 339 |
| 87 | 4.813 | 255 |
| 89 | 4.859 | 289 |
| 91 | 4.91 | 284 |
| 93 | 4.968 | 123 |
| 95 | 5.016 | 190 |
| 97 | 5.084 | 223 |
| 99 | 5.137 | 162 |
| 101 | 5.21 | 421 |
| 103 | 5.265 | 348 |
| °C | W | samples |
|---|---|---|
| 55 | 5.427 | 21 |
| 57 | 5.443 | 20 |
| 59 | 5.469 | 21 |
| 61 | 5.486 | 27 |
| 63 | 5.459 | 5454 |
| 65 | 5.481 | 1618 |
| 67 | 5.501 | 1494 |
| 69 | 5.526 | 1102 |
| 71 | 5.548 | 1086 |
| 73 | 5.573 | 827 |
| 75 | 5.599 | 594 |
| 77 | 5.627 | 598 |
| 79 | 5.656 | 548 |
| 81 | 5.686 | 481 |
| 83 | 5.717 | 497 |
| 85 | 5.75 | 550 |
| 87 | 5.76 | 743 |
| 89 | 5.774 | 42 |
The Hailo-8’s power rises by about 18 mW/°C, and the DX-M1’s by about 13 mW/°C. Relative to their cooled power (4.38 W and 5.46 W), that is 0.42%/°C for the Hailo-8, almost twice the DX-M1’s 0.23%/°C.
This confirms the observation from Part 1: the power drift with temperature is larger on the Hailo-8 than on the DX-M1.
Efficiency versus Temperature
Combining these two effects, efficiency degrades steadily with temperature on both modules.
Show the data
| °C | FPS/W | samples | throttled |
|---|---|---|---|
| 59 | 313.6 | 5285 | |
| 61 | 312.5 | 675 | |
| 63 | 310.9 | 630 | |
| 65 | 309.2 | 618 | |
| 67 | 307.5 | 636 | |
| 69 | 305.6 | 540 | |
| 71 | 303.3 | 564 | |
| 73 | 301.4 | 378 | |
| 75 | 299.2 | 414 | |
| 77 | 296.8 | 508 | |
| 79 | 294.8 | 590 | |
| 81 | 292.5 | 502 | |
| 83 | 290.4 | 464 | |
| 85 | 287.6 | 339 | |
| 87 | 285.2 | 255 | |
| 89 | 282.4 | 289 | |
| 91 | 279.5 | 284 | |
| 93 | 276.2 | 123 | |
| 95 | 273.6 | 190 | |
| 97 | 269.9 | 223 | |
| 99 | 266.1 | 227 | yes |
| 101 | 261.9 | 796 | yes |
| 103 | 258.4 | 689 | yes |
| 105 | 251.3 | 380 | yes |
| 107 | 246.3 | 3530 | yes |
| 109 | 246.7 | 35 | yes |
| °C | FPS/W | samples | throttled |
|---|---|---|---|
| 55 | 199.0 | 21 | |
| 57 | 198.4 | 20 | |
| 59 | 197.6 | 21 | |
| 61 | 196.8 | 27 | |
| 63 | 195.4 | 5504 | |
| 65 | 194.8 | 1630 | |
| 67 | 194.2 | 1508 | |
| 69 | 193.4 | 1115 | |
| 71 | 192.7 | 1089 | |
| 73 | 191.9 | 831 | |
| 75 | 191.1 | 598 | |
| 77 | 190.2 | 603 | |
| 79 | 189.4 | 550 | |
| 81 | 188.5 | 483 | |
| 83 | 187.6 | 500 | |
| 85 | 186.7 | 554 | |
| 87 | 184.6 | 1377 | yes |
| 89 | 180.9 | 2692 | yes |
At full scale, the gap between the two modules dominates the chart. The two curves never overlap: the Hailo-8’s least efficient point (246 FPS/W, heat-soaked and throttling) is still above the DX-M1’s most efficient one (199 FPS/W). The hollow points mark the temperatures at which each module was throttling. On the Hailo-8, these extend down to about 99 °C, below its 104 °C trigger point: once throttled, the Hailo-8 only returned to full speed after it had cooled to about 99 °C, and throttled again as soon as it climbed back to 104 °C.
Zooming in on the 150 to 350 FPS/W range shows how steadily each curve declines:
Show the data
| °C | FPS/W | samples | throttled |
|---|---|---|---|
| 59 | 313.6 | 5285 | |
| 61 | 312.5 | 675 | |
| 63 | 310.9 | 630 | |
| 65 | 309.2 | 618 | |
| 67 | 307.5 | 636 | |
| 69 | 305.6 | 540 | |
| 71 | 303.3 | 564 | |
| 73 | 301.4 | 378 | |
| 75 | 299.2 | 414 | |
| 77 | 296.8 | 508 | |
| 79 | 294.8 | 590 | |
| 81 | 292.5 | 502 | |
| 83 | 290.4 | 464 | |
| 85 | 287.6 | 339 | |
| 87 | 285.2 | 255 | |
| 89 | 282.4 | 289 | |
| 91 | 279.5 | 284 | |
| 93 | 276.2 | 123 | |
| 95 | 273.6 | 190 | |
| 97 | 269.9 | 223 | |
| 99 | 266.1 | 227 | yes |
| 101 | 261.9 | 796 | yes |
| 103 | 258.4 | 689 | yes |
| 105 | 251.3 | 380 | yes |
| 107 | 246.3 | 3530 | yes |
| 109 | 246.7 | 35 | yes |
| °C | FPS/W | samples | throttled |
|---|---|---|---|
| 55 | 199.0 | 21 | |
| 57 | 198.4 | 20 | |
| 59 | 197.6 | 21 | |
| 61 | 196.8 | 27 | |
| 63 | 195.4 | 5504 | |
| 65 | 194.8 | 1630 | |
| 67 | 194.2 | 1508 | |
| 69 | 193.4 | 1115 | |
| 71 | 192.7 | 1089 | |
| 73 | 191.9 | 831 | |
| 75 | 191.1 | 598 | |
| 77 | 190.2 | 603 | |
| 79 | 189.4 | 550 | |
| 81 | 188.5 | 483 | |
| 83 | 187.6 | 500 | |
| 85 | 186.7 | 554 | |
| 87 | 184.6 | 1377 | yes |
| 89 | 180.9 | 2692 | yes |
The Hailo-8 drops from 314 FPS/W at 59 °C to 247 FPS/W at 109 °C (−21%), and the DX-M1 from 199 FPS/W at 55 °C to 181 FPS/W at 89 °C (−9%). Throttling reduces power, but it reduces the frame rate in at least the same proportion, so it does not recover any efficiency.
The Hailo-8 has the most to lose from heat, since it suffers from both more leakage and deeper throttling. Even fully heat-soaked, however, it remains more efficient than the cooled DX-M1 on this model.
How Much Airflow ?
The following graph shows the fan schedule that drove both runs: the duty cycle applied by the EMC2101, and the airflow measured upstream by the FS3000.
The fan stays off for the 30-minute soak, then climbs one EMC2101 level (1.6 points) every 5 minutes. At its first level (9.5% duty), the fan is kicked into motion, briefly spinning up to about 2,700 RPM before settling at about 350 RPM and 0.17 m/s. From there, the airflow rises almost linearly with the duty cycle.
The fan and airflow traces of the two runs lie on top of each other: across the 58 fan levels, their airflow differs by 0.01 m/s on average, and never by more than 0.03 m/s. Since the rig behaved the same way in both runs, the differences we observe between the two modules come from the modules themselves.
For both modules, about 1.5 m/s of airflow was enough to eliminate thermal throttling: 1.18 m/s for the DX-M1, and 1.47 m/s for the Hailo-8. The dashed markers in the graph above show when this happened: after about 72 minutes for the DX-M1 (22.2% duty), and after about 86 minutes for the Hailo-8 (27.0% duty).
Show the data
| Duty % | Held s | m/s | FPS % | Die °C |
|---|---|---|---|---|
| 9.5 | 300 | 0.17 | 80.8 | 107.1 |
| 11.1 | 300 | 0.28 | 79.8 | 107.4 |
| 12.7 | 300 | 0.4 | 81.2 | 107.4 |
| 14.3 | 300 | 0.56 | 81.7 | 107.2 |
| 15.9 | 301 | 0.71 | 84.3 | 107.8 |
| 17.5 | 299 | 0.87 | 87.5 | 107.7 |
| 19.0 | 300 | 0.99 | 87.5 | 106.9 |
| 20.6 | 300 | 1.1 | 87.5 | 105.2 |
| 22.2 | 300 | 1.2 | 87.5 | 102.2 |
| 23.8 | 300 | 1.28 | 87.5 | 100.3 |
| 25.4 | 300 | 1.38 | 87.5 | 100.7 |
| 27.0 | 300 | 1.47 | 100.0 | 103.6 |
| 28.6 | 300 | 1.55 | 100.0 | 101.0 |
| 30.2 | 300 | 1.62 | 100.0 | 97.6 |
| 31.7 | 301 | 1.69 | 100.0 | 93.9 |
| 33.3 | 299 | 1.75 | 100.0 | 90.3 |
| 34.9 | 300 | 1.82 | 100.0 | 88.6 |
| 36.5 | 300 | 1.89 | 100.0 | 86.1 |
| 38.1 | 300 | 1.95 | 100.0 | 84.1 |
| 39.7 | 300 | 2.03 | 100.0 | 82.4 |
| 41.3 | 300 | 2.1 | 100.0 | 81.5 |
| 42.9 | 300 | 2.17 | 100.0 | 80.4 |
| 44.4 | 300 | 2.24 | 100.0 | 79.8 |
| 46.0 | 300 | 2.3 | 100.0 | 78.2 |
| 47.6 | 300 | 2.36 | 100.0 | 77.4 |
| 49.2 | 300 | 2.43 | 100.0 | 75.7 |
| 50.8 | 300 | 2.5 | 100.0 | 74.5 |
| 52.4 | 301 | 2.56 | 100.0 | 72.6 |
| 54.0 | 299 | 2.62 | 100.0 | 71.6 |
| 55.6 | 300 | 2.68 | 100.0 | 70.7 |
| 57.1 | 300 | 2.74 | 100.0 | 69.4 |
| 58.7 | 300 | 2.8 | 100.0 | 68.0 |
| 60.3 | 300 | 2.85 | 100.0 | 67.1 |
| 61.9 | 300 | 2.9 | 100.0 | 66.3 |
| 63.5 | 300 | 2.95 | 100.0 | 65.2 |
| 65.1 | 300 | 3.03 | 100.0 | 64.1 |
| 66.7 | 300 | 3.08 | 100.0 | 63.4 |
| 68.3 | 300 | 3.15 | 100.0 | 62.5 |
| 69.8 | 300 | 3.21 | 100.0 | 61.6 |
| 71.4 | 300 | 3.29 | 100.0 | 60.6 |
| 73.0 | 300 | 3.35 | 100.0 | 59.6 |
| 74.6 | 300 | 3.36 | 100.0 | 59.8 |
| 76.2 | 300 | 3.36 | 100.0 | 59.8 |
| 77.8 | 300 | 3.36 | 100.0 | 59.7 |
| 79.4 | 300 | 3.36 | 100.0 | 59.7 |
| 81.0 | 300 | 3.36 | 100.0 | 59.9 |
| 82.5 | 300 | 3.37 | 100.0 | 59.6 |
| 84.1 | 300 | 3.38 | 100.0 | 59.4 |
| 85.7 | 300 | 3.36 | 100.0 | 59.7 |
| 87.3 | 300 | 3.36 | 100.0 | 60.0 |
| 88.9 | 300 | 3.37 | 100.0 | 59.7 |
| 90.5 | 300 | 3.36 | 100.0 | 59.5 |
| 92.1 | 300 | 3.37 | 100.0 | 59.7 |
| 93.7 | 300 | 3.37 | 100.0 | 59.5 |
| 95.2 | 300 | 3.37 | 100.0 | 59.6 |
| 96.8 | 300 | 3.37 | 100.0 | 59.5 |
| 98.4 | 300 | 3.37 | 100.0 | 59.7 |
| 100.0 | 299 | 3.37 | 100.0 | 59.9 |
| Duty % | Held s | m/s | FPS % | Die °C |
|---|---|---|---|---|
| 9.5 | 300 | 0.16 | 92.8 | 88.0 |
| 11.1 | 300 | 0.28 | 93.2 | 89.0 |
| 12.7 | 300 | 0.39 | 93.0 | 89.0 |
| 14.3 | 300 | 0.55 | 93.2 | 89.0 |
| 15.9 | 300 | 0.69 | 93.8 | 88.0 |
| 17.5 | 300 | 0.84 | 95.0 | 88.0 |
| 19.0 | 300 | 0.97 | 96.7 | 87.0 |
| 20.6 | 300 | 1.09 | 98.7 | 87.0 |
| 22.2 | 300 | 1.18 | 100.1 | 86.0 |
| 23.8 | 300 | 1.27 | 100.3 | 86.0 |
| 25.4 | 300 | 1.36 | 100.4 | 85.0 |
| 27.0 | 300 | 1.44 | 100.4 | 83.0 |
| 28.6 | 300 | 1.52 | 100.3 | 82.0 |
| 30.2 | 300 | 1.59 | 100.3 | 80.0 |
| 31.7 | 300 | 1.66 | 100.3 | 79.0 |
| 33.3 | 300 | 1.73 | 100.3 | 77.0 |
| 34.9 | 300 | 1.79 | 100.3 | 77.0 |
| 36.5 | 300 | 1.87 | 100.2 | 75.0 |
| 38.1 | 300 | 1.94 | 100.2 | 74.0 |
| 39.7 | 300 | 2.01 | 100.2 | 73.0 |
| 41.3 | 300 | 2.08 | 100.2 | 72.0 |
| 42.9 | 300 | 2.16 | 100.2 | 72.0 |
| 44.4 | 300 | 2.23 | 100.2 | 71.0 |
| 46.0 | 300 | 2.3 | 100.2 | 71.0 |
| 47.6 | 300 | 2.37 | 100.2 | 70.0 |
| 49.2 | 300 | 2.43 | 100.1 | 70.0 |
| 50.8 | 300 | 2.49 | 100.1 | 69.0 |
| 52.4 | 300 | 2.56 | 100.1 | 68.0 |
| 54.0 | 300 | 2.62 | 100.1 | 68.0 |
| 55.6 | 300 | 2.67 | 100.0 | 67.0 |
| 57.1 | 300 | 2.73 | 100.1 | 67.0 |
| 58.7 | 300 | 2.79 | 100.1 | 66.0 |
| 60.3 | 300 | 2.84 | 100.1 | 66.0 |
| 61.9 | 300 | 2.91 | 100.1 | 66.0 |
| 63.5 | 300 | 2.96 | 100.2 | 65.0 |
| 65.1 | 300 | 3.02 | 100.1 | 65.0 |
| 66.7 | 300 | 3.08 | 100.1 | 65.0 |
| 68.3 | 300 | 3.15 | 100.0 | 65.0 |
| 69.8 | 300 | 3.21 | 99.9 | 64.0 |
| 71.4 | 300 | 3.29 | 100.1 | 63.0 |
| 73.0 | 300 | 3.35 | 100.0 | 63.0 |
| 74.6 | 300 | 3.35 | 100.0 | 63.0 |
| 76.2 | 300 | 3.36 | 100.0 | 63.0 |
| 77.8 | 300 | 3.35 | 100.0 | 63.0 |
| 79.4 | 300 | 3.35 | 100.1 | 63.0 |
| 81.0 | 300 | 3.35 | 100.0 | 63.0 |
| 82.5 | 300 | 3.35 | 100.0 | 63.0 |
| 84.1 | 300 | 3.36 | 100.0 | 63.0 |
| 85.7 | 300 | 3.35 | 100.1 | 63.0 |
| 87.3 | 300 | 3.35 | 100.0 | 63.0 |
| 88.9 | 300 | 3.35 | 99.9 | 63.0 |
| 90.5 | 300 | 3.36 | 100.0 | 63.0 |
| 92.1 | 300 | 3.36 | 99.8 | 63.0 |
| 93.7 | 300 | 3.36 | 100.0 | 63.0 |
| 95.2 | 300 | 3.36 | 100.1 | 63.0 |
| 96.8 | 300 | 3.35 | 99.9 | 63.0 |
| 98.4 | 300 | 3.35 | 100.0 | 63.0 |
| 100.0 | 299 | 3.35 | 100.0 | 63.0 |
With the Noctua NF-A4x10, this is less than a third of the fan’s range. Beyond about 73% duty, the fan’s speed and airflow (3.37 m/s) no longer increased at all.
Show the data
| Duty % | Held s | RPM | m/s |
|---|---|---|---|
| 9.5 | 300 | 370 | 0.17 |
| 11.1 | 300 | 491 | 0.28 |
| 12.7 | 300 | 607 | 0.4 |
| 14.3 | 300 | 738 | 0.56 |
| 15.9 | 301 | 854 | 0.71 |
| 17.5 | 299 | 973 | 0.87 |
| 19.0 | 300 | 1087 | 0.99 |
| 20.6 | 300 | 1200 | 1.1 |
| 22.2 | 300 | 1316 | 1.2 |
| 23.8 | 300 | 1425 | 1.28 |
| 25.4 | 300 | 1542 | 1.38 |
| 27.0 | 300 | 1645 | 1.47 |
| 28.6 | 300 | 1754 | 1.55 |
| 30.2 | 300 | 1860 | 1.62 |
| 31.7 | 301 | 1967 | 1.69 |
| 33.3 | 299 | 2071 | 1.75 |
| 34.9 | 300 | 2175 | 1.82 |
| 36.5 | 300 | 2283 | 1.89 |
| 38.1 | 300 | 2385 | 1.95 |
| 39.7 | 300 | 2493 | 2.03 |
| 41.3 | 300 | 2592 | 2.1 |
| 42.9 | 300 | 2693 | 2.17 |
| 44.4 | 300 | 2795 | 2.24 |
| 46.0 | 300 | 2892 | 2.3 |
| 47.6 | 300 | 2998 | 2.36 |
| 49.2 | 300 | 3094 | 2.43 |
| 50.8 | 300 | 3196 | 2.5 |
| 52.4 | 301 | 3297 | 2.56 |
| 54.0 | 299 | 3396 | 2.62 |
| 55.6 | 300 | 3492 | 2.68 |
| 57.1 | 300 | 3593 | 2.74 |
| 58.7 | 300 | 3694 | 2.8 |
| 60.3 | 300 | 3781 | 2.85 |
| 61.9 | 300 | 3883 | 2.9 |
| 63.5 | 300 | 3969 | 2.95 |
| 65.1 | 300 | 4076 | 3.03 |
| 66.7 | 300 | 4169 | 3.08 |
| 68.3 | 300 | 4260 | 3.15 |
| 69.8 | 300 | 4361 | 3.21 |
| 71.4 | 300 | 4477 | 3.29 |
| 73.0 | 300 | 4576 | 3.35 |
| 74.6 | 300 | 4582 | 3.36 |
| 76.2 | 300 | 4582 | 3.36 |
| 77.8 | 300 | 4585 | 3.36 |
| 79.4 | 300 | 4585 | 3.36 |
| 81.0 | 300 | 4589 | 3.36 |
| 82.5 | 300 | 4591 | 3.37 |
| 84.1 | 300 | 4590 | 3.38 |
| 85.7 | 300 | 4584 | 3.36 |
| 87.3 | 300 | 4588 | 3.36 |
| 88.9 | 300 | 4590 | 3.37 |
| 90.5 | 300 | 4591 | 3.36 |
| 92.1 | 300 | 4591 | 3.37 |
| 93.7 | 300 | 4589 | 3.37 |
| 95.2 | 300 | 4589 | 3.37 |
| 96.8 | 300 | 4585 | 3.37 |
| 98.4 | 300 | 4584 | 3.37 |
| 100.0 | 299 | 4583 | 3.37 |
| Duty % | Held s | RPM | m/s |
|---|---|---|---|
| 9.5 | 300 | 370 | 0.16 |
| 11.1 | 300 | 494 | 0.28 |
| 12.7 | 300 | 610 | 0.39 |
| 14.3 | 300 | 744 | 0.55 |
| 15.9 | 300 | 856 | 0.69 |
| 17.5 | 300 | 972 | 0.84 |
| 19.0 | 300 | 1086 | 0.97 |
| 20.6 | 300 | 1198 | 1.09 |
| 22.2 | 300 | 1314 | 1.18 |
| 23.8 | 300 | 1420 | 1.27 |
| 25.4 | 300 | 1540 | 1.36 |
| 27.0 | 300 | 1644 | 1.44 |
| 28.6 | 300 | 1754 | 1.52 |
| 30.2 | 300 | 1856 | 1.59 |
| 31.7 | 300 | 1962 | 1.66 |
| 33.3 | 300 | 2067 | 1.73 |
| 34.9 | 300 | 2170 | 1.79 |
| 36.5 | 300 | 2282 | 1.87 |
| 38.1 | 300 | 2388 | 1.94 |
| 39.7 | 300 | 2497 | 2.01 |
| 41.3 | 300 | 2598 | 2.08 |
| 42.9 | 300 | 2705 | 2.16 |
| 44.4 | 300 | 2808 | 2.23 |
| 46.0 | 300 | 2908 | 2.3 |
| 47.6 | 300 | 3013 | 2.37 |
| 49.2 | 300 | 3111 | 2.43 |
| 50.8 | 300 | 3211 | 2.49 |
| 52.4 | 300 | 3312 | 2.56 |
| 54.0 | 300 | 3413 | 2.62 |
| 55.6 | 300 | 3507 | 2.67 |
| 57.1 | 300 | 3613 | 2.73 |
| 58.7 | 300 | 3714 | 2.79 |
| 60.3 | 300 | 3804 | 2.84 |
| 61.9 | 300 | 3911 | 2.91 |
| 63.5 | 300 | 4000 | 2.96 |
| 65.1 | 300 | 4101 | 3.02 |
| 66.7 | 300 | 4200 | 3.08 |
| 68.3 | 300 | 4289 | 3.15 |
| 69.8 | 300 | 4393 | 3.21 |
| 71.4 | 300 | 4501 | 3.29 |
| 73.0 | 300 | 4601 | 3.35 |
| 74.6 | 300 | 4606 | 3.35 |
| 76.2 | 300 | 4606 | 3.36 |
| 77.8 | 300 | 4604 | 3.35 |
| 79.4 | 300 | 4604 | 3.35 |
| 81.0 | 300 | 4605 | 3.35 |
| 82.5 | 300 | 4606 | 3.35 |
| 84.1 | 300 | 4607 | 3.36 |
| 85.7 | 300 | 4605 | 3.35 |
| 87.3 | 300 | 4607 | 3.35 |
| 88.9 | 300 | 4608 | 3.35 |
| 90.5 | 300 | 4609 | 3.36 |
| 92.1 | 300 | 4609 | 3.36 |
| 93.7 | 300 | 4607 | 3.36 |
| 95.2 | 300 | 4607 | 3.36 |
| 96.8 | 300 | 4606 | 3.35 |
| 98.4 | 300 | 4607 | 3.35 |
| 100.0 | 299 | 4608 | 3.35 |
Each duty step was held for 5 minutes. This is about three thermal time constants for the Hailo-8, so its die temperature had settled before each step. The slower DX-M1 has a time constant of about 4 minutes, so its die was still settling at the end of each step, and its true threshold may be slightly lower.
Deeper Hailo-8 Analysis with Thermocouple
For this session, I repeated the Hailo-8 run with the MAX31855 thermocouple fitted, using the same 320-minute fan schedule. The raw log is available here.
The thermocouple measures the heatsink temperature, which adds a third point along the thermal path, between the die and the ambient air.
The thermocouple bead sits on the heatsink, between the fins, directly over the NPU. It makes contact through a dab of Thermal Grizzly Kryonaut thermal paste (3.7 g/cm³), and a wooden dowel inserted between the fins holds it in place.



The heatsink closely tracks the die throughout the run, about 8 °C below it: 99 °C against 107 °C with the fan off, and 53 °C against 60 °C with the fan at full speed. The ambient air near the module stays between 23 °C and 26 °C. At idle, before the load starts, the die and the heatsink both read 40 °C, and they converge again during the cool-down.
Since the INA228 also gives us the module’s power, we can split the junction-to-ambient thermal resistance (R_ja) into its two parts: die to heatsink (R_js), and heatsink to ambient (R_sa).
Show the data
| Duty % | m/s | Die °C | Heatsink °C | Ambient °C | W | R_ja | R_js | R_sa |
|---|---|---|---|---|---|---|---|---|
| 0.0 | 0.0 | 107.0 | 99.3 | 24.4 | 4.52 | 18.27 | 1.7 | 16.57 |
| 9.5 | 0.14 | 107.1 | 99.3 | 24.7 | 4.61 | 17.93 | 1.69 | 16.24 |
| 11.1 | 0.26 | 107.1 | 99.4 | 24.7 | 4.6 | 18.0 | 1.69 | 16.3 |
| 12.7 | 0.38 | 107.1 | 99.3 | 24.9 | 4.58 | 18.03 | 1.69 | 16.34 |
| 14.3 | 0.55 | 107.3 | 99.5 | 25.0 | 4.57 | 18.08 | 1.7 | 16.38 |
| 15.9 | 0.7 | 107.3 | 99.4 | 24.9 | 4.65 | 17.79 | 1.69 | 16.1 |
| 17.5 | 0.86 | 107.0 | 99.3 | 24.9 | 4.62 | 17.84 | 1.67 | 16.17 |
| 19.0 | 1.0 | 107.1 | 99.1 | 25.0 | 4.83 | 16.98 | 1.65 | 15.34 |
| 20.6 | 1.1 | 105.4 | 97.6 | 25.1 | 4.77 | 16.84 | 1.64 | 15.2 |
| 22.2 | 1.19 | 103.7 | 95.7 | 25.0 | 4.7 | 16.74 | 1.69 | 15.05 |
| 23.8 | 1.28 | 101.0 | 93.5 | 24.9 | 4.62 | 16.47 | 1.63 | 14.85 |
| 25.4 | 1.37 | 103.5 | 95.3 | 25.0 | 4.92 | 16.01 | 1.67 | 14.34 |
| 27.0 | 1.46 | 103.7 | 95.1 | 25.0 | 5.25 | 15.02 | 1.65 | 13.37 |
| 28.6 | 1.54 | 102.7 | 94.0 | 25.0 | 5.25 | 14.79 | 1.65 | 13.13 |
| 30.2 | 1.61 | 100.8 | 92.4 | 25.0 | 5.2 | 14.59 | 1.62 | 12.97 |
| 31.7 | 1.68 | 98.1 | 89.8 | 25.0 | 5.11 | 14.31 | 1.63 | 12.68 |
| 33.3 | 1.75 | 94.7 | 86.5 | 25.0 | 5.01 | 13.92 | 1.63 | 12.29 |
| 34.9 | 1.81 | 92.6 | 84.4 | 24.9 | 4.95 | 13.66 | 1.65 | 12.02 |
| 36.5 | 1.88 | 90.6 | 82.5 | 24.9 | 4.89 | 13.42 | 1.65 | 11.77 |
| 38.1 | 1.95 | 88.7 | 80.8 | 24.9 | 4.85 | 13.15 | 1.63 | 11.53 |
| 39.7 | 2.02 | 87.1 | 79.2 | 24.9 | 4.82 | 12.92 | 1.63 | 11.29 |
| 41.3 | 2.09 | 85.9 | 78.2 | 24.7 | 4.79 | 12.79 | 1.61 | 11.17 |
| 42.9 | 2.16 | 84.4 | 76.8 | 24.6 | 4.76 | 12.56 | 1.61 | 10.96 |
| 44.4 | 2.23 | 83.4 | 75.6 | 24.5 | 4.73 | 12.44 | 1.65 | 10.79 |
| 46.0 | 2.3 | 81.7 | 73.9 | 24.4 | 4.7 | 12.19 | 1.65 | 10.53 |
| 47.6 | 2.37 | 80.5 | 72.8 | 24.3 | 4.68 | 12.02 | 1.66 | 10.36 |
| 49.2 | 2.43 | 79.2 | 71.5 | 24.3 | 4.65 | 11.81 | 1.66 | 10.15 |
| 50.8 | 2.49 | 77.7 | 69.9 | 24.2 | 4.62 | 11.57 | 1.69 | 9.88 |
| 52.4 | 2.56 | 75.9 | 68.2 | 24.1 | 4.59 | 11.28 | 1.67 | 9.6 |
| 54.0 | 2.62 | 74.5 | 66.7 | 24.1 | 4.57 | 11.02 | 1.69 | 9.33 |
| 55.6 | 2.68 | 73.0 | 65.4 | 24.0 | 4.55 | 10.76 | 1.67 | 9.09 |
| 57.1 | 2.73 | 71.4 | 63.9 | 24.0 | 4.53 | 10.47 | 1.66 | 8.81 |
| 58.7 | 2.79 | 70.4 | 62.5 | 24.0 | 4.51 | 10.29 | 1.75 | 8.54 |
| 60.3 | 2.85 | 69.4 | 61.6 | 24.0 | 4.49 | 10.11 | 1.74 | 8.37 |
| 61.9 | 2.9 | 67.8 | 60.0 | 23.9 | 4.47 | 9.82 | 1.75 | 8.07 |
| 63.5 | 2.96 | 66.9 | 59.2 | 23.9 | 4.46 | 9.65 | 1.73 | 7.92 |
| 65.1 | 3.02 | 65.7 | 58.0 | 23.8 | 4.44 | 9.43 | 1.74 | 7.68 |
| 66.7 | 3.08 | 64.7 | 56.9 | 23.8 | 4.43 | 9.22 | 1.75 | 7.47 |
| 68.3 | 3.14 | 63.9 | 56.1 | 23.8 | 4.42 | 9.07 | 1.76 | 7.31 |
| 69.8 | 3.21 | 62.8 | 55.1 | 23.7 | 4.41 | 8.88 | 1.77 | 7.11 |
| 71.4 | 3.28 | 61.6 | 53.8 | 23.6 | 4.39 | 8.64 | 1.77 | 6.87 |
| 73.0 | 3.35 | 60.6 | 53.0 | 23.4 | 4.38 | 8.49 | 1.75 | 6.74 |
| 74.6 | 3.35 | 60.9 | 53.2 | 23.4 | 4.39 | 8.54 | 1.75 | 6.79 |
| 76.2 | 3.35 | 60.6 | 53.0 | 23.3 | 4.38 | 8.51 | 1.75 | 6.76 |
| 77.8 | 3.35 | 60.5 | 52.8 | 23.2 | 4.38 | 8.52 | 1.77 | 6.75 |
| 79.4 | 3.35 | 60.6 | 52.9 | 23.2 | 4.38 | 8.54 | 1.75 | 6.79 |
| 81.0 | 3.35 | 60.8 | 53.1 | 23.2 | 4.38 | 8.58 | 1.75 | 6.83 |
| 82.5 | 3.35 | 60.7 | 53.0 | 23.2 | 4.38 | 8.56 | 1.75 | 6.8 |
| 84.1 | 3.35 | 60.8 | 53.1 | 23.1 | 4.38 | 8.59 | 1.75 | 6.84 |
| 85.7 | 3.35 | 60.5 | 52.8 | 23.1 | 4.38 | 8.55 | 1.76 | 6.79 |
| 87.3 | 3.34 | 60.8 | 53.1 | 23.1 | 4.39 | 8.59 | 1.75 | 6.84 |
| 88.9 | 3.36 | 60.7 | 53.0 | 23.1 | 4.38 | 8.57 | 1.76 | 6.81 |
| 90.5 | 3.34 | 60.7 | 53.0 | 23.1 | 4.38 | 8.58 | 1.76 | 6.83 |
| 92.1 | 3.35 | 60.6 | 52.9 | 23.1 | 4.38 | 8.56 | 1.75 | 6.8 |
| 93.7 | 3.35 | 60.7 | 53.0 | 23.1 | 4.38 | 8.59 | 1.75 | 6.83 |
| 95.2 | 3.35 | 60.4 | 52.7 | 23.1 | 4.38 | 8.52 | 1.75 | 6.77 |
| 96.8 | 3.35 | 60.7 | 52.9 | 23.1 | 4.38 | 8.58 | 1.76 | 6.82 |
| 98.4 | 3.35 | 60.3 | 52.5 | 23.1 | 4.38 | 8.5 | 1.77 | 6.73 |
| 100.0 | 3.34 | 60.5 | 52.8 | 23.0 | 4.38 | 8.55 | 1.76 | 6.79 |
R_js stays at about 1.7 °C/W across the entire run, whatever the airflow: it is fixed by the module, its package and its thermal interface. All of the improvement comes from R_sa. Above about 1.5 m/s, where the module runs at its full frame rate, R_sa falls steadily from about 13 °C/W to 6.8 °C/W with the fan at full speed, taking R_ja down to 8.5 °C/W. This confirms the thermal network shown above: the fan only acts on the heatsink-to-air resistance.
Below about 1.5 m/s, however, the flat part of the R_sa curve (about 16.5 °C/W) does not describe the fan. In that range, the Hailo-8 sits on its 104 °C thermal limit and reduces its power to stay there, so the heatsink temperature is set by the throttling, not by the airflow. Measured at idle power with the fan off, the heatsink’s true natural-convection resistance is about 21.8 °C/W.
This has an important consequence for our thermal control loop. With R_js constant, the RA6M5 can estimate the die temperature from the heatsink temperature and the module power alone:
T_die ≈ T_heatsink + 1.7 °C/W × P
Once the module has warmed up, this estimate matches the on-die sensor to within 0.4 °C for 95% of the samples, and never misses by more than 0.9 °C. It only lags during the first minutes of heat-up, when the die heats faster than the heatsink (up to 3.6 °C of error).
Note that in this session, the Hailo-8 returned to its full frame rate at 28.6% duty (1.54 m/s), slightly later than in the earlier session (27.0% duty, 1.47 m/s). This gives an idea of the run-to-run variation of the threshold.
Who’s In Control?
Before going further, we need to clarify who has been in control of the telemetry for our exploration.
Host PC in control
In our previous exploration, the RA6M5 acted as a USB bridge between the host PC and the sensors.
This had the advantage of being able to combine these metrics with the AI accelerator telemetry (via its SDK) and the application:
- Host telemetry:
- knowledge of application/model
- frame rate
- Accelerator telemetry (via vendor’s SDK):
- on-die temperature
- operating frequency
- RA6M5 telemetry:
- fan control
- air flow
- heatsink temperature
- power consumption
In order to implement a thermal control solution, we need a tighter loop. This is the main reason we chose the Renesas RA6M5 microcontroller.
RA6M5 in control
The RA6M5 provides more determinism and faster access to the telemetry we have set up for the project.
The disadvantage is that we no longer have access to the following insightful information:
- which model is running ?
- which frame rate is being achieved ?
- what is the on-die temperature reported by the accelerator ?
- what is its operating frequency ? is it throttling ?
Implementing a Thermal Control Loop
A conventional fan controller is purely reactive: it measures a temperature, compares it with a target, and adjusts the fan. With minutes of thermal inertia in the heatsink, it only reacts once the heat has already arrived.
Our measurements give us something better: a model of the thermal path. We know the module’s power (INA228), the ambient temperature (EMC2101), the heatsink temperature (thermocouple), the die-to-heatsink resistance (R_js ≈ 1.7 °C/W), and how the heatsink-to-air resistance falls as the fan speeds up. The control loop uses this model to act before the heat arrives, and the measurements to correct whatever the model gets wrong.
The loop runs entirely on the RA6M5, so it keeps cooling the module even if the host application exits or crashes. It regulates a single quantity: the estimated die temperature.
Characterizing the Thermal Resistance of our Heatsink and Fan
Every part of the control loop described below relies on one curve: the heatsink-to-air thermal resistance (R_conv) as a function of the fan duty. At steady state, the heatsink settles above the ambient air by the module’s power times this resistance:
T_heatsink = T_ambient + W × R_conv(duty)
The fan ladder of the thermocouple run described above measured R_conv at each of its 59 fan settings, including fan-off. Here are these measurements, against the curve that the RA6M5 ended up carrying:
Show the data
| Duty % | R_conv °C/W | τ (s) | Source |
|---|---|---|---|
| 0.0 | 21.75 | 226.0 | natural convection, from four fan-off brackets at 0.86 W |
| 9.5 | 21.28 | 221.0 | two settled 9.5 % blocks, 0.86 W; at its floor the fan turns 262 rpm |
| 20.6 | 15.82 | 165.0 | the one unthrottled low-duty tread that exists (n=1) |
| 30.2 | 12.97 | 135.0 | the ladder's unthrottled region, lag-corrected by the joint fit |
| 39.7 | 11.3 | 118.0 | the ladder's unthrottled region, lag-corrected by the joint fit |
| 50.8 | 9.77 | 102.0 | the ladder's unthrottled region, lag-corrected by the joint fit |
| 60.3 | 8.31 | 86.0 | the ladder's unthrottled region, lag-corrected by the joint fit |
| 69.8 | 7.07 | 74.0 | the ladder's unthrottled region, lag-corrected by the joint fit |
| 73.0 | 6.73 | 70.0 | the ladder's unthrottled region, lag-corrected by the joint fit |
Above 30% duty, the measurements and the curve agree. Below that, the measured points are not the fan’s: the module was throttling, and its temperature was set by its thermal limit. The curve’s three lowest nodes therefore come from fan-off and floor-duty measurements at idle power instead.
Is Our Thermal Resistance the Same at Every Load ?
The fan ladder measured R_conv at a single load: ResNet-50, at about 4.4 W. To check that the heatsink responds the same way at other loads, I ran eight different models on the Hailo-8, five minutes each, with the fan held at 73% duty:
| Model | GOP/frame | FPS | Power (W) | TOPS | Die (°C) | R_conv (°C/W) |
|---|---|---|---|---|---|---|
| YOLOv8s | 28.6 | 492 | 7.71 | 14.1 | 85.2 | 6.25 |
| SCRFD-10G | 26.7 | 441 | 5.06 | 11.8 | 64.7 | 6.52 |
| ResNet-50 | 8.2 | 1372 | 4.38 | 11.2 | 60.3 | 6.76 |
| SCRFD-2.5G | 6.9 | 1059 | 4.09 | 7.3 | 56.8 | 6.59 |
| ArcFace MobileFaceNet | 0.9 | 5195 | 3.91 | 4.6 | 55.3 | 6.63 |
| YOLOv8m | 78.9 | 67 | 3.22 | 5.3 | 48.7 | 6.47 |
| SCRFD-500M | 1.5 | 1302 | 3.10 | 1.9 | 48.4 | 6.67 |
| OSNet x1.0 | 2.0 | 215 | 1.12 | 0.4 | 30.9 | 7.13 |
Show the data
| Model | GOP/frame | FPS | Module W | TOPS | Die °C | R_conv °C/W |
|---|---|---|---|---|---|---|
| YOLOv8s | 28.6 | 491.6 | 7.712 | 14.06 | 85.2 | 6.253 |
| SCRFD-10G | 26.68 | 441.4 | 5.058 | 11.78 | 64.7 | 6.524 |
| ResNet-50 | 8.174 | 1372.3 | 4.383 | 11.22 | 60.3 | 6.758 |
| SCRFD-2.5G | 6.86 | 1059.2 | 4.094 | 7.27 | 56.8 | 6.587 |
| ArcFace MobileFaceNet | 0.88 | 5195.2 | 3.907 | 4.57 | 55.3 | 6.634 |
| YOLOv8m | 78.94 | 67.2 | 3.218 | 5.31 | 48.7 | 6.468 |
| SCRFD-500M | 1.47 | 1302.2 | 3.1 | 1.91 | 48.4 | 6.668 |
| OSNet x1.0 | 1.96 | 214.6 | 1.116 | 0.42 | 30.9 | 7.127 |
Every model produces the same exponential curve, with the same time constant, and the height at which it settles is simply proportional to its power: from 1.1 W (OSNet) to 7.7 W (YOLOv8s), R_conv stays between 6.25 °C/W and 7.13 °C/W. The heatsink does not care which model is running, only how much power it dissipates.
I also tried to vary the load with ResNet-50 alone, by capping its frame rate. This did not work: the module’s power barely changes with the frame rate, so the cap only wastes energy per frame.
| Frame rate cap | none (1372 FPS) | 1000 FPS | 700 FPS | 500 FPS | 300 FPS |
|---|---|---|---|---|---|
| Power (W) | 4.37 | 4.37 | 4.36 | 4.36 | 4.16 |
| Energy per frame (mJ) | 3.2 | 4.4 | 6.2 | 8.7 | 13.9 |
The fitting session therefore combined four fixed fan duties (73%, 50.8%, 33.3% and 20.6%) with different models and frame-rate caps: 24 runs of 6 minutes each. At each fan duty, the runs agreed on R_conv to within 1.1% (standard deviation). This session also revealed a trap: at 20.6% duty, three of the four ResNet-50 runs sat on the Hailo-8’s 104 °C thermal limit, throttling 63% to 67% of the time, while still reporting exactly the frame rate they had been capped at. With a frame-rate cap in place, the frame rate no longer reveals throttling.
The Resulting Curve
From these measurements, the RA6M5 carries R_conv as a nine-node table:
Show the data
| Duty % | R_conv °C/W |
|---|---|
| 0.0 | 21.75 |
| 9.5 | 21.28 |
| 20.6 | 15.82 |
| 30.2 | 12.97 |
| 39.7 | 11.3 |
| 50.8 | 9.77 |
| 60.3 | 8.31 |
| 69.8 | 7.07 |
| 73.0 | 6.73 |
Reacting to Power
The first part of the loop is a feed-forward term, driven by power. Rearranging the thermal network, the heatsink-to-air resistance (R_conv) required to hold the die at a target temperature T_die* is:
R_conv_required = (T_die* − R_int × W − T_ambient) / W
where W is the module power, and R_int = 1.709 °C/W is the die-to-heatsink resistance (the R_js measured in the thermocouple analysis above). The RA6M5 inverts the nine-node R_conv curve characterized above, to find the fan duty that provides R_conv_required.
As soon as the power changes, for example when the AI workload starts, the fan responds within one step, minutes before the heatsink warms up.
The RA6M5 has one blind spot: it cannot see the module’s clock or frame rate, which are only available to the host. It therefore cannot detect throttling, and must hold a die temperature that is known to be below the throttle point. For the Hailo-8, the default target is 95 °C, comfortably below the 99 °C at which its throttling releases. This also avoids a trap: when the Hailo-8 throttles, its power drops, and a power-driven feed-forward would then slow the fan down and keep the module hot.
Used on its own, the feed-forward is an open loop: it never measures the temperature it is trying to control. Here it is as pseudo-code:
// feed-forward only (open loop), every 250 ms
W = ina228_power(); // module power (W)
T_amb = emc2101_temp(); // air near the module (°C)
R_req = (T_SET - R_INT * W - T_amb) / W; // heatsink-to-air resistance needed
duty = invert_rconv(R_req); // nine-node R_conv table, inverted
emc2101_set_duty(duty);
I ran this open loop with the controller ignoring the thermocouple, targeting a die temperature of 90 °C during a 30-minute ResNet-50 run. The thermocouple and the Hailo-8’s own on-die sensor were still logged, to see how well it did:
The die came within 1 °C of the target after 7.7 minutes, and held at 89.8 °C, with the fan at about 36.5% duty. The Hailo-8 never throttled, and ran at its full 1372 FPS. Note that in open loop, the RA6M5’s own die estimate equals the target by construction: the board has no independent measurement of the die. Only the Hailo-8’s on-die sensor, read by the host, shows how close the open loop really came.
Reacting to Power and Temperature
The feed-forward term is only as good as the model behind it. Ambient conditions drift, dust accumulates, and a different module or mounting changes the thermal resistances. The second part of the loop is therefore a feedback term, driven by temperature.
The RA6M5 estimates the die temperature from the thermocouple and the module power, as described earlier:
T_die_estimate = T_heatsink + R_int × W
A PI controller (proportional gain 1.0, integral gain 0.01) acts on the error between this estimate and the target, and adds its output to the feed-forward duty. Since the feed-forward does most of the work, the PI term is only allowed to trim it by at most 15 points of duty.
Without this limit, the integrator would accumulate the error of every approach, when the die simply has not caught up with the fan yet, and push the fan far beyond what is needed: no amount of airflow can remove the heatsink’s own time constant.
Here is the feed-forward with the feedback added, as pseudo-code:
// feed-forward + PI feedback on the thermocouple, every 250 ms
W = ina228_power(); // module power (W)
T_amb = emc2101_temp(); // air near the module (°C)
T_hs = max31855_temp(); // heatsink, thermocouple (°C)
T_est = T_hs + R_INT * W; // estimated die temperature
u_ff = invert_rconv((T_SET - R_INT * W - T_amb) / W); // feed-forward, as above
e = T_est - T_SET; // positive when too hot
u_pi = clamp(KP * e + KI * integral(e), -15, +15); // trims by 15 points at most
duty = clamp(u_ff + u_pi, 9.5, 73); // fan turns from 9.5%, airflow saturates at 73%
emc2101_set_duty(duty);
I then ran this closed loop with the thermocouple, with the same 90 °C target and the same 30-minute ResNet-50 run:
The die came within 1 °C of the target after 6.4 minutes, and held at 89.5 °C. The die estimate stayed within 0.6 °C of the Hailo-8’s on-die sensor, reading slightly high, which is why the die settled about half a degree below the target. The Hailo-8 ran at its full 1372 FPS, without throttling. In steady state, the fan ran at 36.3% duty, of which the feed-forward provided 35.8%: the feedback only had to trim it by about half a point.
Doing Without the Thermocouple
Manually bonding a thermocouple to a heatsink is not realistic in production. It can be done once in order to characterize our final product, but would probably not hold in the long term in the real world.
For this reason, we want a “soft sensor” to stand in for the thermocouple, built from our observations and characterization.
The soft sensor is not a measurement. It is a model of the heatsink that predicts its temperature from the power, the ambient temperature and the fan duty alone, using the same R_conv curve as the feed-forward. What it adds to that curve is time: a single state, the heatsink temperature, and a single fitted parameter, the heatsink’s heat capacity C, which together give the heatsink’s lag:
T_heatsink_steady = T_ambient + W × R_conv(duty)
τ = R_conv(duty) × C
dT_heatsink/dt = (T_heatsink_steady − T_heatsink) / τ
C was fitted at 10.4 J/°C. The resulting time constant ranges from about 70 seconds with the fan at full speed, to almost 4 minutes with the fan off. On the RA6M5, the whole model is a handful of floating-point operations:
// soft sensor, every 250 ms (dt = 0.25 s)
r_conv = rconv_table(duty); // nine-node table (°C/W)
tc_ss = T_amb + W * r_conv; // where the heatsink is heading (°C)
tau = r_conv * C; // time constant (s), C = 10.4 J/°C
tc_est += (tc_ss - tc_est) * dt / tau; // first-order lag: the model's one state
T_hs = tc_ok ? max31855_temp() : tc_est; // measured if available, else modelled
T_est = T_hs + R_INT * W; // estimated die temperature
Because the soft sensor sees the same inputs as the feed-forward, and uses the same R_conv curve, it cannot tell the PI anything the feed-forward does not already assume. Once the heatsink settles, the model lands exactly where the feed-forward aimed, the error goes to zero, and the PI trim with it. The only thing the PI sees is the lag: while the modelled heatsink is still warming up, the die estimate reads below the target, and the PI trims the fan down. In other words, the soft sensor turns the feed-forward into a feed-forward with a time lag. It is not feedback: if dust or a different mounting changed the real R_conv, the model would not see it.
To test it, I ran the loop on the soft sensor during a 30-minute ResNet-50 run at a 90 °C target, with the thermocouple still connected, but only logged:
Given only the power, the board air and the fan duty, the soft sensor tracked the thermocouple to within 0.91 °C (rms) over the whole run, and within 0.29 °C (rms) over its last 10 minutes. Its largest error is during the warm-up: the model lags behind the heating heatsink, and reads up to 2.5 °C cold at first.
If the thermocouple fails, the loop falls back on this model, and if neither is available, on the feed-forward alone. Since the model can read up to 2.5 °C cold, a target of 90 °C rather than 95 °C is used when regulating on the model. The one sensor the loop cannot do without is the INA228: without power, there is nothing to estimate the die temperature from, so the fan goes to 100%.
Implementing our Thermal Control Loop
Here is the complete loop, simplified, as it runs on the RA6M5:
W = ina228_power(); // module power (W): mandatory
T_amb = emc2101_temp(); // air near the module (°C)
T_hs = tc_ok ? max31855_temp() // heatsink: measured,
: soft_sensor(W, T_amb, duty); // or modelled
T_est = T_hs + R_INT * W; // estimated die temperature
u_ff = invert_rconv((T_SET - R_INT * W - T_amb) / W); // feed-forward
e = T_est - T_SET; // positive when too hot
u_pi = clamp(pi_update(e), -15.0, +15.0); // trims the feed-forward by 15 points at most
duty = clamp(u_ff + u_pi, 9.5, 73.0); // fan turns from 9.5%, airflow saturates at 73%
emc2101_set_duty(duty); // written only when the 64-level setting changes
A closed-loop session compared three ways of running the same loop, regulating the estimated die temperature at 90 °C during three 30-minute ResNet-50 runs, each followed by 30 minutes idle: with the thermocouple, then without any heatsink temperature (feed-forward only), and then with the soft sensor in place of the thermocouple.
With the thermocouple, the die came within 1 °C of the target after 6.4 minutes, and held at 89.5 °C. With the feed-forward alone, it took 7.7 minutes, and held at 89.8 °C. With the soft sensor, it took only 4.3 minutes, and held at 89.9 °C. In all three runs, the Hailo-8 ran at its full 1372 FPS, without throttling.
In steady state, running on the soft sensor costs nothing measurable: the fan settled at the same 36.3% duty as with the thermocouple, as expected from a model that converges on the feed-forward’s own answer. The difference is in the approach, where the model’s time lag shows. While the heatsink warms up, the modelled heatsink lags behind the real one, reading up to 2.5 °C cold, so the loop under-cools: the fan ran at about 26% duty during the first 3 minutes, against 30% with the thermocouple. The die therefore reached the target sooner, and overshot it by 0.8 °C instead of 0.2 °C.
This is the main result of this exploration: once the thermal path has been characterized, the power measurement does most of the work. The feed-forward from power alone holds the die within 0.2 °C of its target, and the temperature feedback only needs to correct small modelling errors.
How Small It Could Go
The RA6M5 is far more than this job needs. The control loop runs every 250 ms and does a handful of I2C reads, one SPI read, a lookup in a 9-entry table, a first-order filter and a PI update. That would fit easily on an entry-level part such as the Renesas RA2E1: a 48 MHz Cortex-M23 with as little as 32 KB of flash and 16 KB of SRAM, available in packages down to 25 pins (WLCSP). The RA2E1 has no FPU, but at 4 Hz, software floating point (or a simple fixed-point port) is more than fast enough.
Conclusion
In this article, we have explored how much airflow is needed to keep two M.2 AI accelerator modules out of thermal throttling, and how to close the thermal loop with the Renesas RA6M5.
With our Noctua fan, the Hailo-8 needed about 1.5 m/s of airflow, and the DX-M1 about 1.2 m/s. In both cases, this was less than a third of the fan’s range.
We then implemented a thermal control loop on the RA6M5, in three stages:
- reacting to power (feed-forward only)
- reacting to power and temperature (feed-forward, plus feedback on the thermocouple)
- doing without the thermocouple (feed-forward, plus a soft sensor: a model of the heatsink with a time lag)
My main take-away is that having access to power measurements gets us 95% of the way to a reliable thermal control loop: in steady state, the feed-forward from power alone supplied about 99% of the fan duty, and held the die within 0.2 °C of its target.
With the feed-forward alone, the die came within 1 °C of its target in 7.7 minutes, and the Hailo-8 never throttled. Adding the thermocouple only got it there about a minute sooner (6.4 minutes), and the feedback only had to trim the fan duty by about half a point.
Replacing the thermocouple with the soft sensor made no measurable difference in steady state, which is an interesting option when placing a thermocouple is not feasible on multiple products. The soft sensor is a model, not a measurement: it adds the heatsink’s time lag to the feed-forward, but no new information.
The thermocouple only provides marginal improvements. Its real value is as a safety net: it corrects the feed-forward when the conditions drift away from the ones it was characterized in. The soft sensor cannot do that, since it drifts along with the model it shares with the feed-forward.
If I were to consider implementing this solution in a product, I would characterize over a much longer period of time, and at different ambient temperatures using a heat chamber.
and you have a reliable thermal control loop.
The temperature measurement acts as an additional safety net.
Version History
| Date | Description |
|---|---|
| 2026/12/03 | Initial Draft |