Reference
This article provides detailed instructions on using the Smart Cooling Hat with Raspberry Pi, focusing on I2C communication protocols for fan speed and RGB LED control, utilizing the wiringPi library for setup.
Library
- wiringPi library: Used for I2C communication on Raspberry Pi. Refer to wiringPi documentation for installation instructions.
Communication Protocol Description
- The Smart Cooling Hat communicates with Raspberry Pi via I2C.
- Fan speed control protocol: 0x00 (close), 0x01 (full speed), 0x02 (20% speed), ..., 0x09 (90% speed).
- RGB LED control protocol:
- Register to turn off RGB: 0x07, data 0x00.
- RGB effect register (0x04): 0->waterfall, 1->breathing, 2->chasing, 3->rainbow, 4->colorful.
- RGB speed register (0x05): 1->slow, 2->middle, 3->fast.
- RGB color register (0x06): 0->red, 1->green, 2->blue, 3->yellow, 4->purple, 5->cyan, 6->white.
Was this article helpful?
