PiCoolFAN4
Firmware Code 0x14
Print Date 10.11.2019
Sound Generation System
The PiCoolFAN4 can be optionally equipped with Simple Sound Generation System. It is can be used
dedicated user applications offering the whole range of acoustic frequencies full programmable by user.
There is 1 register bfreq that are responsible for the generating sound. The user needs to enter the
requested frequency and just after that, sounder will be generated it. If the user need to stop frequency
generation, need just to enter 0, so the sounder will stop the sound generation.
This simply mechanism allows the user even to play music.
The default value of Frequency is 0. Data can be entered in HEX or DEC format, but need to be always
word (16 bits).
0x0E
bfreq
Word
Common
R/W
Frequency of sound in Hz
Example of use
sudo i2cset -y 1 0x60 0x06 0x0000 w Deactivate permanently the buzzer (no sounds will be played)
sudo i2cset -y 1 0x60 0x06 1000 w Generating 1000Hz frequency
sudo i2cset -y 1 0x60 0x06 1047 w Generating the C (1047 Hz) note
sudo i2cset -y 1 0x60 0x06 0500 w Generating 500Hz frequency
sudo i2cset -y 1 0x60 0x06 0000 w Deactivate permanently the buzzer (no sounds will be played)
Designed by
www.pimodules.com
manufactured in co-operation with
www.thepihut.com
Need help?
Do you have a question about the PiCoolFAN4 and is the answer not in the manual?
Questions and answers