Skip to content

Small improvements #1454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1158,11 +1158,11 @@ Following these steps, you will be able to successfully capture and stream video

### PWM Fan Control

The Portenta Hat Carrier is designed to be a thermal dissipation reference carrier for Portenta X8, including dedicated Pulse Width Modulation (PWM) pins for external fan control. The principle of PWM involves varying the width of the pulses sent to the device, in this case, a fan, to control its speed or position.
The Portenta Hat Carrier is designed to be a thermal dissipation reference carrier for Portenta X8, including dedicated Pulse Width Modulation (PWM) pins for external fan control. The principle of PWM involves varying the width of the pulses sent to the device, in this case a fan, to control its speed or position.

![Portenta Hat Carrier Fan Mount](assets/board_fan_mount.gif)

The fan can be connected via PWM pins available on the Portenta Hat Carrier. The connector has the following structure:
The fan can be connected via the PWM pins available on the Portenta Hat Carrier. The connector has the following structure:

| **Pin number** | **Silkscreen** | **Power Net** | **Portenta HD Standard Pin** | **High-Density Pin** |
|:--------------:|:--------------:|:-------------:|:----------------------------:|:--------------------------------------------------------------------:|
Expand All @@ -1176,6 +1176,13 @@ The fan can be connected via PWM pins available on the Portenta Hat Carrier. The

The fan's speed can be controlled using the following code sequence when you are using the Portenta X8 within the Linux environment.

First, connect to the board and make sure you have root permissions:

```
adb shell
sudo su -
```

Export the PWM channel:

```
Expand Down Expand Up @@ -2342,7 +2349,7 @@ When all conditions are set and in place, use the following script to read all a
import os

if os.environ['CARRIER_NAME'] != "rasptenta":
print("This script requires Portenta HAT carrier")
print("This script requires a Portenta HAT carrier")
exit(1)

import Portenta.GPIO as GPIO
Expand Down