cmaera and Fan

Two choice

CSI鏡頭預設是 csi://0

翻轉鏡頭 要下 --input-flip=參數(horizontal ,vertical)

USB camera通常是 /dev/video0 或 /dev/video0

PMW 4 PINS

General 3 PINs

If u want to turn on / off the PWM fan, u can use the following command.

ON :

sudo sh -c 'echo 255 > /sys/devices/pwm-fan/target_pwm'

OFF :

sudo sh -c 'echo 0 > /sys/devices/pwm-fan/target_pwm' 

Automatic starting PWM fan

create a file, it's name is  rc.local. if the file is already exit, just edit it.

sleep 10

sudo /usr/bin/jetson_clocks

sudo sh -c 'echo 255 > /sys/devices/pwm-fan/target_pwm' 

3 PINS

Hardware

You will need a 5V PWM fan for this to make any sense.

I used the Noctua nf-a4x20 5V PWM fan.

Additionally, I recommend you use the barrel jack with a 4A power supply.

$ git clone https://github.com/Pyrestone/jetson-fan-ctl.git

$ cd jetson-fan-ctl

$ ./install.sh

You can custom ur fan.

open /etc/automagic-fan/config.json with your favorite editor (I'm using nano):

sudo nano /etc/automagic-fan/config.json


you will find the following lines:

{

"FAN_OFF_TEMP":20,

"FAN_MAX_TEMP":50,

"UPDATE_INTERVAL":2,

"MAX_PERF":1

}


FAN_OFF_TEMP is the temperature (°C) below which the fan is turned off.

FAN_MAX_TEMP is the temperature (°C) above which the fan is at 100% speed.

The script interpolates linearly between these two points.

UPDATE_INTERVAL tells the script how often to update the fan speed (in seconds).

MAX_PERF values greater than 0 maximize system performance by setting the CPU and GPU clock speeds to the maximum.

You can use either integers (like 20) or floating point numbers (like 20.125) in each of these fields.

The temperature precision of the thermal sensors is 0.5 (°C), so don't expect this to be too precise.

Any changes in the script will be will be applied after the next reboot.

You can run

sudo service automagic-fan restart


to apply changes immediately.

If you suspect something went wrong, please check:

sudo service automagic-fan status

Automatic starting fan

sleep 10

sudo /usr/bin/jetson_clocks

sudo service automagic-fan start