ZP-0128

From 52Pi Wiki
Jump to navigation Jump to search

ABS Mini Tower Kit

Description

ABS Mini Tower Case is made of ABS material, with very high precision, and the 45-degree OLED screen display angle is more convenient to observe system information. The screen holder adopts a quick-release design, and the interior of the shell includes a design for arranging cables, which is convenient for arranging cables.

The interface adopts With a fool-proof design to avoid problems caused by wrong wiring, the installation is simpler and more convenient.

The screen driver board contains RGB three-color programmable LED ambient light, which can better render the light color according to your own needs.
The ice tower radiator included in the kit can not only provide good heat dissipation, but also increase the appearance.
A non-slip rubber strip is added at the bottom to prevent it from being more stable and firm on a smooth desktop.

Features

  • ABS Material and Acrylic
  • Colorful mood lights
  • Adjustable fan light
  • 0.96 inch OLED Display (I2C protocol)
  • OLED bracket adopts quick release design for easy installation and removal
  • Precise positioning of holes
  • Ice tower radiator strong heat dissipation
  • Inside the housing contains a cable management rack
  • Easy wiring and easy cable management

Gallery

Package Includes

  • 1 * ABS Mini Tower Kit

How to assemble

How to enable OLED Display

1. Turn on `i2c function` by using `sudo raspi-config` -> `interface options` -> `i2c` -> `enable` -> `yes`. 2. Check if the screen has been recognized by Raspberry Pi

i2cdetect -y 1 

if encount `command not found` error, please install `i2c-tools` by using `sudo apt update && sudo apt -y install i2c-tools`.
3. Install dependencies libraries:

sudo apt -y install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5

4. Grant privilleges to user `pi`

sudo usermod -a -G gpio,i2c pi

5. Download sample code from this repo:

git clone https://github.com/rm-hull/luma.examples.git
cd luma.examples/

6. Install the dependencies

sudo -H pip3 install -e .

7. Entering into example folder and test it.

cd examples/
python3 sys_info.py

8. At this time, the OLED screen is displaying system information.

How to enable fan light and mood light

NOTE: The RGB lights in the fan are connected to the ambient lights on the screen driver board. Turn on any one of the lights is equivalent to turn on the entire light group.
  • 1. The lights are connected to GPIO18 which can found by typing: pinout in a terminal.
GPIO18.png


  • 2. Make sure your Raspberry Pi can access internet.
  • 3. Download demo code projects sources from github.
cd ~
git clone https://github.com/jgarff/rpi_ws281x
  • 4. Build:

Build with SCons

  • Install Scons (on raspbian)
 sudo apt update && sudo apt -y install scons 
  • Make sure to adjust the parameters in main.cto suit your hardware.
  • Signal rate (400kHz to 800kHz). Default 800kHz.
  • ledstring.invert=1 if using a inverting level shifter.
  • Width and height of LED matrix (height=1 for LED string).
  • Type scons from inside the source directory.
cd rpi_ws281x/
sudo scons

Build and install with CMake

  • Install CMake
  • Configure your build:

For example:

mkdir build
cd build
cmake -D BUILD_SHARED=OFF -D BUILD_TEST=ON ..

See also for available options in 《font color=red>CMakeLists.txt.

Type

cmake --build .

to build

  • To install built binaries and headers into your system type:
sudo make install
  • Running:

Type

sudo ./test 

(default uses PWM channel 0).

That's it. You should see a moving rainbow scroll across the display.

More options are available,

./test -h 

should show them:

./test version 1.1.0
Usage: ./test
-h (--help)    - this information
-s (--strip)   - strip type - rgb, grb, gbr, rgbw
-x (--width)   - matrix width (default 8)
-y (--height)  - matrix height (default 8)
-d (--dma)     - dma channel to use (default 10)
-g (--gpio)    - GPIO to use
                 If omitted, default is 18 (PWM0)
-i (--invert)  - invert pin output (pulse LOW)
-c (--clear)   - clear matrix on exit.
-v (--version) - version information

FAQ

Keywords

  • Mini tower case, abs mini tower kit, Raspberry Pi 4B ABS case, abs case for Raspberry Pi