Giter Site home page Giter Site logo

yahboomtechnology / raspberry-pi-rgb-cooling-hat Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 17.0 9.47 MB

Raspberry Pi RGB Cooling HAT with adjustable fan and OLED display for Pi5/4B/3B+/3B

Home Page: https://category.yahboom.net/products/rgb-cooling-hat

C 91.32% Shell 0.14% Python 8.54%
raspberry-pi expansion-board rgb-lights cpu-temperature oled-displays

raspberry-pi-rgb-cooling-hat's Introduction

Raspberry-Pi-RGB-Cooling-HAT

Introduction

This is a Multi-function cooling expansion board designed for the Raspberry Pi board. It is perfectly compatible with the Pi5/4B/3B+/3B to protect Raspberry Pi and extends its life. A 4pin IIC interface for OLED display, which can real-time display CPU temperature, CPU usage, hard disk space, memory and IP address. The large-size cooling fan on the board with strong wind power, it can make Raspberry Pi can run more stably by automatically adjust the speed according to the CPU temperature. 3 high-brightness RGB programming lights on the bottom of the expansion board, which can realize following lights, breathing lights, marquees and so on. It also expandS Raspberry Pi 40pin header and can be used to connect to other devices. We will provide a driver package for all Raspberry Pi images, which is convenient for users to drive fans, OLED displays, RGB lights.

Features

  • Perfectly compatible with Raspberry Pi 5/4B/3B+/3B, not occupy any Raspberry Pi pin, not occupy heat sink space.

  • The powerful fan on the board can automatically adjust the speed according to the CPU temperature to control the air volume.

  • Support OLED display, which can display the running status of Raspberry Pi in real-time.

  • High-brightness RGB lights to enhance the aesthetic appearance, but also to achieve a variety of funny lighting gameplay.

  • Users can use C language programming and Python programming.

  • A driver package that can drive all the functions of the expansion board, as well as program source code and tutorials will be provided.

Required Best Buy Links

By on Yahboom website

Please Contact Us

If you have any problem when using our robot after checking the tutorial, please contact us.

Technical support email:

[email protected]

raspberry-pi-rgb-cooling-hat's People

Contributors

dolphinzzx avatar yahboomtechnology avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

raspberry-pi-rgb-cooling-hat's Issues

License?

Hi,

Would it be possible to add a LICENSE file to this project? I'd like to use some of the code in my own project but I'm not sure what the rights are.

RGB control

What the heck is wrong with the RGB control?

Using the supplied rgb.py script, it turns on random LEDs to random colors every time I run it.

The last line of the script is:

setRGB(Max_LED, 0, 0, 255)

As I read it, Max_LED sets all 3 lights, no red or green, and 100% blue - so this line says turn all 3 lights blue (0,0,255)....but that isn't what happens. I may or may not get all 3 lights, the lights that do turn on may or may not be blue. It seems completely random.

When I write a script to control a single LED, turning LED0 white (255,255,255) - it's a toss up as to which LED comes on, and what color it is when it does.

import smbus
import time
bus = smbus.SMBus(1)

addr = 0x0d
rgb_off_reg = 0x07

def setRGB0(r, g, b):
    bus.write_byte_data(addr, rgb_off_reg, 0x00)
    #time.sleep(2)
    bus.write_byte_data(addr, 0x00, 0&0xff)
    bus.write_byte_data(addr, 0x01, r&0xff)
    bus.write_byte_data(addr, 0x02, g&0xff)
    bus.write_byte_data(addr, 0x03, b&0xff)

setRGB0(255,255,255)

Error when installing with gcc

Hello. There is error when installing with gcc

pi@rpi:~/Raspberry-Pi-RGB-Cooling-HAT/3.C programming/temp_control $ gcc -o temp_control.c ssd1306_i2c.c -lwiringPi
ssd1306_i2c.c: In function ‘ssd1306_fillRect’:
ssd1306_i2c.c:724:3: warning: implicit declaration of function ‘swap_values’ [-Wimplicit-function-declaration]
  724 |   swap_values(x, y);
      |   ^~~~~~~~~~~
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x18): undefined reference to `main'
/usr/bin/ld: (.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status

SYSTEM

Raspberry PI OS 64x
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.