Difference between revisions of "Template:CM4-DUAL-ETH-WIFI6-BASE User guide"
From Waveshare Wiki
Line 7: | Line 7: | ||
*[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]] | *[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]] | ||
==RTC FAN== | ==RTC FAN== | ||
− | ===Fan | + | ===Fan=== |
As shown in the figure, switch the FAN voltage according to the position of the resistor, and the default is 12V.<br/> | As shown in the figure, switch the FAN voltage according to the position of the resistor, and the default is 12V.<br/> | ||
[[File:CM4-DUAL-ETH-WIFI6-BASE User guide01.png]] | [[File:CM4-DUAL-ETH-WIFI6-BASE User guide01.png]] | ||
− | < | + | The fan PWM pin is controlled by GPIO18. |
− | </ | + | ===RTC=== |
+ | RTC chip: PCF85063A<br/> | ||
+ | Default I2C: I2C1<br/> | ||
+ | I2C address: 0x51<br/> | ||
+ | <syntaxhighlight lang="python"> | ||
+ | sudo nano /boot/config.txt | ||
+ | #Add at the end | ||
+ | dtparam=i2c_vc=on | ||
+ | dtoverlay=i2c-rtc,pcf85063a | ||
+ | #Add # in front of dtparam=audio=on | ||
+ | #dtparam=audio=on | ||
+ | #Save and exit, restart | ||
+ | sudo reboot | ||
+ | </syntaxhighlight> | ||
+ | ====Hwclock==== | ||
+ | Synchronize system clock -> hardware clock.<br/> | ||
+ | <syntaxhighlight lang="python"> | ||
+ | sudo hwclock -w | ||
+ | </syntaxhighlight> | ||
+ | Synchronize hardware clock -> system clock.<br/> | ||
+ | <syntaxhighlight lang="python"> | ||
+ | sudo hwclock -s | ||
+ | #Need to close the network, or close the network time, otherwise it will be changed back. | ||
+ | </syntaxhighlight> | ||
+ | Set the hardware clock time:<br/> | ||
+ | <syntaxhighlight lang="python"> | ||
+ | sudo hwclock --set --date="9/8/2021 16:45:05" | ||
+ | </syntaxhighlight> | ||
+ | View hardware clock.<br/> | ||
+ | <syntaxhighlight lang="python"> | ||
+ | sudo hwclock -r | ||
+ | </syntaxhighlight> | ||
+ | Show version information.<br/> | ||
+ | <syntaxhighlight lang="python"> | ||
+ | sudo hwclock --verbose | ||
+ | </syntaxhighlight> |
Revision as of 03:44, 2 December 2022
User Guide
Note
Do not plug or unplug any device while it is powered on.
Image Programming
- Write Image for Compute Module Boards eMMC version
- Write Image for Compute Module Boards Lite version
RTC FAN
Fan
As shown in the figure, switch the FAN voltage according to the position of the resistor, and the default is 12V.
The fan PWM pin is controlled by GPIO18.
RTC
RTC chip: PCF85063A
Default I2C: I2C1
I2C address: 0x51
sudo nano /boot/config.txt #Add at the end dtparam=i2c_vc=on dtoverlay=i2c-rtc,pcf85063a #Add # in front of dtparam=audio=on #dtparam=audio=on #Save and exit, restart sudo reboot
Hwclock
Synchronize system clock -> hardware clock.
sudo hwclock -w
Synchronize hardware clock -> system clock.
sudo hwclock -s #Need to close the network, or close the network time, otherwise it will be changed back.
Set the hardware clock time:
sudo hwclock --set --date="9/8/2021 16:45:05"
View hardware clock.
sudo hwclock -r
Show version information.
sudo hwclock --verbose