0002 MPS2280-PoE(SSD expansion board with PoE Ethernet Power Supply)

来自Mcuzone Wiki
Mcuadm留言 | 贡献2024年9月2日 (一) 13:20的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

切换语言为中文

Keywords:

2280, PoE, LCD screen

I. Introduction

The MPS2280-PoE is a PoE-powered SSD expansion board designed for the Raspberry Pi 5, featuring voltage and current monitoring functions. It supports SSDs in sizes 2230, 2242, and 2280. The system can boot from the SSD, or from a TF card with the SSD used only for storage.

II. Hardware Resources

MPS2280iPoE_34.jpg

III. System flashing and configuration

1. Boot from a TF card

At this time, the SSD is used for storage purposes only. Use the Raspberry Pi Imager to write the image, select the Raspberry Pi 5 device, and use the image 2024-07-04-raspios-bookworm-arm64.img.xz (Raspberry Pi OS) or ubuntu-24.04-preinstalled-desktop-arm64+raspi.img.xz (Ubuntu system) for this document.

MPS2280iPoE_en_01.png

balenaEtcher can also be used to flash the image.

MPS2280iPoE_en_02.png

2. Boot from the SSD

You need to remove the SSD from the expansion board, insert it into an M.2 (PCIe protocol) to USB card reader, connect it to the PC, and use the same method as flashing an image to a TF card to flash the system image to the SSD. Then remove the SSD, and reinsert it into the expansion board.

IV. Demonstration of Voltage and Current Monitoring Function(INA219)(Only support MPS2280i-PoE)

1. Enable I2C

Method 1: Using the command line.

Input sudo raspi-config in the Raspberry Pi OS's terminal,Select the corresponding options according to the picture below:

MPS2280iPoE_03.png

MPS2280iPoE_04.png

MPS2280iPoE_05.png

MPS2280iPoE_06.png

MPS2280iPoE_07.png

Enable the I2C in sequence, then restart the Raspberry Pi.

Method 2: Using the GUI.

MPS2280iPoE_08.png

MPS2280iPoE_09.png

Enable the I2C in sequence, then restart the Raspberry Pi.

2. Run a Python script to measure voltage and current.

After the system restarts, copy the python script (INA219.py) which provided by our company into the Raspberry Pi operating system. Execute the file using the command python INA219.py to monitor voltage and current in real-time.

Download address for python script (need decompression):

http://www.mcuzone.com/wiki/0002_MPS2280iPoE/INA219.zip

MPS2280iPoE_10.png

V. Demonstration of OLED screen usage(Only support MPS2280i-PoE)

1. Demonstration of OLED Screen usage on the Raspberry Pi OS

1) Confirm that the Raspberry Pi's I2C is enabled and the LCD screen is recognized at 0x3c.

MPS2280iPoE_11.png

2) Copy the source package into the Raspberry Pi system and unzip it:

sudo tar -jxvf oled-in219-src.tar.bz2

Download address for the source package:

http://www.mcuzone.com/wiki/0002_MPS2280iPoE/oled-in219-src.tar.bz2

MPS2280iPoE_12.png

3) Install dependency files:sudo apt-get install libconfig-dev libconfig++-dev -y

MPS2280iPoE_13.png

4) Enter the oled-in219-src directory and execute the commands sudo make clean and sudo make in sequence. After a successful compilation, an executable file named "oled" will be generated.

MPS2280iPoE_14.png

5) Run ./oled -D after Compilation:

MPS2280iPoE_15.png

At the same time, the corresponding display will also be output on the OLED screen of the expansion board.

MPS2280iPoE_16.png

2. Demonstration of OLED Screen usage on the Ubuntu system

1) Confirm that the Raspberry Pi's I2C is enabled and the LCD screen is recognized at 0x3c.

Ubuntu system requires the installation of I2C tools manually.(sudo apt install i2c-tools)。

MPS2280iPoE_17.png

2) Copy the source package into the Raspberry Pi system and unzip it:

sudo tar -jxvf oled-in219-src.tar.bz2

Download address for the source package:

http://www.mcuzone.com/wiki/0002_MPS2280iPoE/oled-in219-src.tar.bz2

MPS2280iPoE_18.png

3) Install dependency files:sudo apt-get install libconfig-dev libconfig++-dev -y

MPS2280iPoE_19.png

4) Enter the oled-in219-src directory, then execute the following steps:

sudo apt install make

sudo apt install gcc

sudo make clean

sudo make

After a successful compilation, an executable file named "oled" will be generated.

MPS2280iPoE_20.png

Run ./oled -D after Compilation:

MPS2280iPoE_21.png

At the same time, the corresponding display will also be output on the OLED screen of the expansion board.

MPS2280iPoE_16.png

VI. POE function introduction

VII. POE output test (Only for MPS2280i-PoE)

7.1 Hardware connection

The MPS2280i-PoE expansion board supports POE input and ensures support for 5V4.5A output. We insert the POE output Ethernet port into the Raspberry Pi's built-in RJ45 Ethernet port, and the load is plugged into the USB-Type C port on the expansion board, thus completing the hardware connections.

7.2 View output status

Turn on the PoE power supply, and enter the Raspberry Pi OS. The output monitoring software used here is the Python script from Chapter 4 (INA219.py). Following the method described in Chapter 3, navigate to the directory where INA219.py is located and enter python INA219.py. Then, you will be able to see the current output status.

MPS2280iPoE_31.jpg

We turn on each load one by one, and we can see that the output voltage stabilizes at around 5.2V. The output current continuously increases, eventually reaching around 4.7A, which meets the rated 5V 4.5A output standard.

MPS2280iPoE_32.jpg

Contact Us

0001_x.jpg 0002_fb.jpg 0004_ytb.jpg 0003_bb.jpg 0005_qq.jpg QQ:8204136

Email: mcuzone@vip.qq.com

Tel: +86(0)13957118045

If there are any omissions, errors, or infringements on this page, please contact us through the above methods. Thank you!

Copyright 2004-2024 Wildchip