raspberry-pi-4b
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verzeNásledující verzeObě strany příští revize | ||
raspberry-pi-4b [2019/07/28 12:36] – blazek | raspberry-pi-4b [2020/01/05 16:17] – [FAN PWM Noctua NF-A4x10 5V] blazek | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
====== Raspberry Pi 4B ====== | ====== Raspberry Pi 4B ====== | ||
+ | |||
+ | * https:// | ||
===== Box ===== | ===== Box ===== | ||
+ | * https:// | ||
* https:// | * https:// | ||
- | ===== Fan PWM ===== | + | ===== FAN PWM Noctua NF-A4x10 5V ===== |
+ | |||
+ | Source: https:// | ||
+ | |||
+ | * N-channel MOSFET (e.g. 2N7000/ | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * 0.1 uF electrolytic capacitor | ||
+ | * https:// | ||
+ | * 10K resistor | ||
+ | * https:// | ||
+ | |||
+ | {{:: | ||
+ | {{:: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | |||
+ | **Specific fan speed and temperature breakpoints for Noctua NF-A4x10 5V** | ||
+ | |||
+ | <file bash fan-noctua.sh> | ||
+ | # | ||
+ | |||
+ | # Device references | ||
+ | dev_temp=/ | ||
+ | dev_pwm=/ | ||
+ | dev_enable=$dev_pwm/ | ||
+ | dev_duty=$dev_pwm/ | ||
+ | dev_period=$dev_pwm/ | ||
+ | |||
+ | # Export pwm0 if it's not available | ||
+ | if [ ! -e $dev_pwm ]; then | ||
+ | echo 0 > / | ||
+ | sleep 2 | ||
+ | fi | ||
+ | |||
+ | # PWM frequency (nanoseconds) | ||
+ | period=1000000 | ||
+ | |||
+ | # temperature breakpoints (millidegrees) | ||
+ | off_low=45000 | ||
+ | low_off=40000 | ||
+ | low_high=52000 | ||
+ | high_low=48000 | ||
+ | |||
+ | # fan-speed (nanoseconds) | ||
+ | low=930000 | ||
+ | high=999999 | ||
+ | |||
+ | # on/off values | ||
+ | off=0 | ||
+ | on=1 | ||
+ | |||
+ | # update interval (seconds) | ||
+ | interval=10 | ||
+ | |||
+ | # initialise the fan | ||
+ | next=($off $low) | ||
+ | echo $period > $dev_period | ||
+ | echo ${next[0]} > $dev_enable | ||
+ | echo ${next[1]} > $dev_duty | ||
+ | |||
+ | update_status() { | ||
+ | if [[ $(cat $dev_enable) == 1 ]]; then | ||
+ | if [[ $(cat $dev_duty) == $high ]]; then | ||
+ | nvalue=3 | ||
+ | svalue=" | ||
+ | else | ||
+ | nvalue=2 | ||
+ | svalue=" | ||
+ | fi | ||
+ | else | ||
+ | nvalue=1 | ||
+ | svalue=" | ||
+ | fi | ||
+ | logger "Fan $svalue" | ||
+ | } | ||
+ | |||
+ | while [ : ] | ||
+ | do | ||
+ | temp=$(cat $dev_temp) | ||
+ | current=($(cat $dev_enable) $(cat $dev_duty)) | ||
+ | if [ $temp -gt $off_low ]; then | ||
+ | next[0]=$on | ||
+ | if [ $temp -gt $low_high ]; then | ||
+ | next[1]=$high | ||
+ | elif [ $temp -lt $high_low ]; then | ||
+ | next[1]=$low | ||
+ | fi | ||
+ | elif [ $temp -lt $low_off ]; then | ||
+ | next[0]=$off | ||
+ | fi | ||
+ | |||
+ | if [ " | ||
+ | echo ${next[1]} > $dev_duty | ||
+ | echo ${next[0]} > $dev_enable | ||
+ | update_status | ||
+ | fi | ||
+ | sleep $interval | ||
+ | done | ||
+ | </ | ||
+ | ===== FAN PWM ===== | ||
* https:// | * https:// | ||
- | * Noctua NF-A4x10 5V | ||
* NPN transistor 2N2222A | * NPN transistor 2N2222A | ||
+ | * https:// | ||
* diode 1N4001 | * diode 1N4001 | ||
+ | * https:// | ||
* resistor 1K | * resistor 1K | ||
+ | * https:// | ||
+ | |||
===== CPU Test ===== | ===== CPU Test ===== |
raspberry-pi-4b.txt · Poslední úprava: 2023/12/26 19:13 autor: 127.0.0.1