Quick Start:
Step1:
Edit config.txt by command 'sudo nano /boot/config.txt', add 'dtparam=i2c_arm=on,dtparam=i2c_vc=on' and save file;
Step2:
Install tools by command 'sudo apt-get install i2c-tools', 'sudo reboot' ;
Step3:
Check I2C Bus Quantity by command 'i2cdetect -l' ,'i2cdetect -y 1' ;
Step4: Initialize PWM
- For Raspberry PI Legacy OS, i2c address is 1
Set PWM initialize By Total 4 commands (Must run all 4 command )
'i2cset -f -y 1 0x62 0x00 0x00'
'i2cset -f -y 1 0x62 0x01 0x04'
'i2cset -f -y 1 0x62 0x08 0x03'
'i2cset -f -y 1 0x62 0x02 0xff'
- For Raspberry PI bullseye OS, i2c address is 10
Set PWM initialize By Total 4 commands (Must run all 4 command )
'i2cset -f -y 10 0x62 0x00 0x00'
'i2cset -f -y 10 0x62 0x01 0x04'
'i2cset -f -y 10 0x62 0x08 0x03'
'i2cset -f -y 10 0x62 0x02 0xff'
Step5:Fan control
- We normally set it by command, 'i2cset -f -y 1 0x62 0x06 0xff' ;(Raspberry PI Legacy OS)
- We normally set it by command, 'i2cset -f -y 1 0x62 0x06 0xff' ;(For Raspberry PI bullseye OS)
Note: 'value 00-ff, 00 means max, ff means minimum, when the value is less than 80, the fan will have noise, so the recommended value between 80-ff' ;
Step6:
Check Temperature by command '/opt/vc/bin/vcgencmd measure_temp'