Compute Module PoE Board

From Waveshare Wiki
Jump to: navigation, search
Compute Module PoE Board
Compute Module PoE Board

Compute Module IO Board with PoE Feature, Composite Breakout Board for Developing with Raspberry Pi CM3 / CM3L / CM3+ / CM3+L
CM-IO-POE-BOX
CM-IO-POE-BOX

Mini-computer Add-ons Based on Raspberry Pi Compute Module CM3 / CM3L / CM3+ / CM3+L
{{{name3}}}

{{{name4}}}

{{{name5}}}

Instruction

The Compute Module PoE Board is a development board that you can plug a Raspberry Pi Compute Module into, and make use of the resources of Pi more flexibly. With the PoE (Power over Ethernet) feature, and versatile onboard peripheral interfaces, it is suitable for evaluating the Raspberry Pi compute module, also is an ideal choice for end products.

Features

  • Raspberry Pi GPIO header, for connecting sorts of Raspberry Pi HATs.
  • 10/100M auto-negotiation Ethernet port, with PoE enabled.
  • 4 x USB ports, which allows connecting more USB devices.
  • 2 x CSI camera interfaces.
  • Onboard HDMI / DSI interfaces for connecting displays.
  • Onboard USB TO UART, for serial debugging.
  • Cooling fan interface, autorun on power-up OR controlled by IO pins.
  • Adopts isolated SMPS (Switching Mode Power Supply).

Specification

  • Power supply: micro USB port / PoE Ethernet port
  • PoE power input: 37V ~ 57V DC in
  • PoE power output: 5V 2.5A DC out
  • Operating Temperature: -25℃ ~ 80℃
  • Network standard: 802.3af PoE standard
  • Dimensions: 114mm × 84.4mm
  • Mounting hole size: 3.2mm

What's on board

Compute Module PoE Board User Manual-1.png

Type Label Name Description
Core
Interface
Introduction
1 Compute Module interface can be connected to Compute Module 3/3 Lite/3+/3+ Lite
2 Raspberry Pi GPIO interface can be connected to various Raspberry Pi HATs
3 Ethernet interface with PoE function 10/100M self-adaptive, can be connected to a router or switch with PoE function
4 DSI Display Interface Can be connected to Raspberry Pi LCD
5 USB interface 4 x USB interface, can be connected to various USB devices
6 CSI camera interface 2 x CSI interface, can be connected to Raspberry Pi Camera
7 HDMI Interface Can be connected the HDMI devices
8 USB TO UART interface Easy for serial debugging
9 USB SLAVE interface Compute Module 3/3+ can burn the system image through this interface
10 Power Connector Generally connected to 5V 2.5A power supply
11 TF card interface (rear) Used to insert the Micro SD card with the system to start the Compute Module 3 Lite/3+ Lite
12 Fan Interface Easy to connect to the cooling fan
On
Board
Introduction
13 LAN9514 (back) Integrated 10/100M Ethernet and USB hub function chip
14 Si3404 PoE power management chip (back)
15 CP2102 USB to serial port chip
16 EP13 PoE Power Transformer
17 Optocoupler Isolator
18 Double hole LED lamp holder Red light: Raspberry Pi power indicator
Green light: Raspberry Pi working status indicator
19 NET Network Indicator
Jumper
Switch
Description
20 VGx Power Select Jumper Select I/O Level
21 Serial port output selection Dial to the left: CP2102 serial port is connected to the Raspberry Pi serial port
Dial to the right: CP2102 serial port is disconnected from the Raspberry Pi serial port
22 Fan selection jumper P34: Programmatically control the fan through the P34 pin
EN: Direct 5V power supply to run the fan
23 PoE enable pin DIS: Disable PoE power supply
EN: Enable PoE power supply
24 PoE power supply voltage measurement solder ports

User guide

Power

1. PoE power
  • To enable POE function, you should set the PoE jumpers to EN side
Compute Module PoE Board User Manual-2.png

If you need to turn on the PoE power supply, please turn the jumper cap to the right EN position. If you turn it to the left, it means that the PoE power supply is disabled.

  • When using PoE function, this module supports DC 27V ~ 57V input, and voltage output is 5V and 2.5V.
  • To check PoE, you can test pad 24.
Compute Module PoE Board User Manual-3.png
You can measure the voltage of pad 24 by multimeter, if the voltage is about 5.25V, the PoE function works normally, otherwise, it doesn't.
2. DC power
  • Except PoE, you can also power on the Compute PoE board by DC 5V 2.5A (or above) power adapter.
  • You should set the jumper 22 to the DIS side and connect a power adapter to the POWER interface.

Write image

1. If you use Compute Module 3 or Compute Module 3+ with EMMC version, you should write an image to the internal eMMC
  • Run rpiboot_setup ( please download it from #Resources) to install driver. After installing, you will get an rpiboot.exe file in the installation directory.
Compute Module PoE Board User Manual-4.png
  • Jump all the jumpers 20 on the Compute Module PoE Board to the left (3.3V), and jump the jumpers 22 and 23 to the left (P34 and DIS).
Compute Module PoE Board User Manual-5.png
  • Insert your Compute module to PoE board.
  • Connect SLAVR interface of PoE board to your PC
  • Connect Power interface of PoE board to power adapter
  • Run rpiboot.exe as administrator, PC will recognize eMMC of Compute module as a portable drive.
  • Run WinDiskImager software to write image to eMMC.
  • After writing, you can disconnect the USB cable, and re-power the POE board to start the CM3/CM3+.

【Note】

  • While writing image, the PC DO NOT write/read other portable storage drives to avoid conflicting.
  • The default user name and password of image of Raspberry is pi and raspberry.
  • The EMMC of CM3+ is extended, which allows CM3+ to install a common desktop image. However, the eMMC of CM3 is only 4G, therefore if you want to write image to CM3, please choose Raspbian Lite. You can also install GUI for Lite image separately by commands below (network is required)
sudo apt-get update
sudo apt-get install raspberrypi-ui-mods

If you are unable to program normally with Compute Module PoE Board, please try the following steps:

  • Make sure you are using the latest version of RPiboot.
  • Use WIN10 system for programming, most customers report that WIN7 or linux system programming is unstable.
  • Make sure your CM3/CM3+ version is normal, there will be an extra IC on the back of board. Only the eMMC version can be burned in the this method. For the verison without eMMC, please refer to step 2.

Compute Module PoE Board User Manual FAQ10.jpg

  • Note that the Power interface needs to be connected to a 5V power adapter.
  • Replace a USB cable.
  • Replace the USB interface of a PC.
  • Try restarting the PC.
  • Try reseating the CM3/CM3+.
  • Try to burn in another computer.

2. If you use Compute Module 3 Lite or Compute Module 3+ Lite, you should write the image to SD card just like common Raspberry Pi
  • Download the latest version of the image on the Raspberry Pi official website
  • To write image, you should prepare an SD card (16G or larget) and card reader.
  • Use Win32DiskImage software to write image to SD card. (It is same as how you write image for Pi 3B)
  • After writing, insert the SD card to the card slot of PoE Board.

Connect DSI display

Here we use 4.3inch DSI LCD for example, you can also use official 7inch LCD.

  • Please power off PoE board
  • Connect 15Pin FPC cable to Compute Module PoE Board and DSI display'
  • Connect power adapter to PoE board
  • Wait for several seconds to start Raspbian.

Note:

If you use Raspberry Pi official image, you need to compy dt-blob.bin file to /boot directory
You can download DT_Bin file here
Compute Module PoE Board01.jpg

Connect HDMI display

Here we use 7inch HDMI LCD (H) as examples

  • Remove the DSI display if you have connected. Connect the HDMI display to PoE board (both HDMI interface and Touch interface should be connected)
  • Modify /boot/config.txt fuke:
 max_usb_current=1
 hdmi_force_hotplug=1 
 config_hdmi_boost=10
 hdmi_group=2 
 hdmi_mode=87 
 hdmi_cvt 1024 600 60 6 0 0 0
  • Reboot

Connect CSI camera

1. Test camera with pre-configured image
【Note】: Unlike the official Compute Module IO Board V3, the camera pins of this Compute PoE Module are not conflicted with 40Pin GPIO.
  • Download the pre-configured image from Waveshare wiki. The image was pre-configured to use two cameras
  • Connect RPi FPC camera to PoE board
  • Power on PoE board and test camera
  • Test the camera 1
sudo raspivid -t 0 -cs 0
  • Test camera 2
sudo raspivid -t 0 -cs 1

【Note】:The -cs parameter indicates which camera is connected, but the camera number indicated by the -cs parameter is not exactly the same as the screen printing of the board and the shell (the parameter -cs indicates the number of cameras that are connected. If a camera is connected to the CAM1 interface, check that the -cs parameter of the camera command is 0, indicating the 0th camera connected).

2. Test camera with original image
If you use the original Raspbian image, you should configure an image for using the camera manually.
  • Modify /boot/config.txt file, add statement to it
dtparam=arm_i2c
  • Run commmand sudo raspi-config. choose Interfacing Options -> Camera -> Yes
  • Download the official device tree file, Raspberry Pi Foundation Device Tree Introduction Link, Raspberry Pi Foundation Device Tree download link 1, download link 2
  • After downloading, modify the dts file
Compute Module PoE Board User Manual-13 .png
Compute Module PoE Board User Manual-14.png
Compared with the official device tree file, the specific modification is: The LDE and SHUTDOWN of Camera0 are modified from the original 4,5 pins to 32,33 pins.
  • After modifying, you need to compile it
dtc -I dts -O dtb -o dt-blob.bin dt-blob-dualcam.dts
  • After compiling, a dt-blob.bin file will be generated, and you can copy (replace) this file directly to the boot directory.
  • To test camera, you can use commands below:
sudo raspivid -t 0 -cs 0
sudo raspivid -t 0 -cs 1

Connect colling fan

1. Directly enable fan

The 12 interface is Fan port for Fan-4010-5V

  • To directly enable cooling fan, you need to set the jumper 23 to the right side.
Compute Module PoE Board User Manual-8.png

Move the jumper cap 23 to the right to enable the fan directly, otherwise, move it to the left to control the Raspberry Pi through the P34 pin of the Raspberry Pi computing module.

2. Control fan speed based on CPU temperature
  • To control fan based on CPU temperature, you should set the jumper 23 to the left side
Compute Module PoE Board User Manual-9.png
  • edit /boot/config.txt file:
sudo nano /boot/config.txt
  • Add a line at the end:
dtoverlay=gpio-fan,gpiopin=34,temp=55000
  • Reboot. After rebooting, when the CPU temperature is higher than 55 degrees Celsius, the fan will be turned on (the first parameter 34 indicates that the BCM number 34 pin is used to control the fan, and the second parameter 55000 indicates the temperature critical value * 1000)
  • You can check the CPU temperature by the following command, the data divide by 1000 is the current temperature.
cat /sys/class/thermal/thermal_zone0/temp
  • You can also check it by watch
watch -n 0.1 cat /sys/class/thermal/thermal_zone0/temp
3. Control fan by GPIO
  • To control fan by GPIO P34, you should set the jumper 23 to the left side
Compute Module PoE Board User Manual-9.png
  • To control the fan, you should make a script. Here is script for reference.
#include <bcm2835.h>
#include <stdio.h>
#define PIN 34
int main(int argc, char **argv)
{
    if (!bcm2835_init())
    {
      return 1;
    }
   
    // Set the pin to be an output
    bcm2835_gpio_fsel(PIN, BCM2835_GPIO_FSEL_OUTP);
 
    while (1)
    {
        // Turn it on
        bcm2835_gpio_write(PIN, HIGH);
        
        // wait a bit
        bcm2835_delay(50);
        
        // turn it off
        bcm2835_gpio_write(PIN, LOW);
        
        // wait a bit
        bcm2835_delay(50);
    }
    bcm2835_close();
    return 0;
}
  • You had better set the frequncy higher than 10Hz, the codes above set it to 10Hz.
  • If you use pre-configured image, this code is saved in the path /home/pi
  • You can compile code by command:
sudo gcc fan.c -o fan -l bcm2835
  • Run the code
Compute Module PoE Board User Manual-10.png
  • If you use offical image, you can also download the script manually, before it, pelase install bcm2835 libraries firstly
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz
tar zxvf bcm2835-1.60.tar.gz 
cd bcm2835-1.60/
sudo ./configure
sudo make
sudo make check
sudo make install
# For more information of bcm2835 libraries:http://www.airspayce.com/mikem/bcm2835/

Serial port

Compute Module PoE Board integrates CP2102 chip. You can connect the USB to UART interface of PoE board to PC, turn DIP siwtches into CPTXD, CPRXD. In this mode, you can communicate Compute Module board by serial port in PC

Compute Module PoE Board User Manual-11.png

Level selection jumpers

Compute Module PoE Board User Manual-12.png
The jumper caps of this level conversion are used for the IO ports on the Compute Module, and some of them include the 40Pin of the Raspberry Pi. Jump the jumper caps to the left together, and the 40Pin on the board is 3.3V level. If you jump to the right together, the 40Pin on the board is 1.8V level. Generally, the Raspberry Pi expansion board is 3.3V level, and you can directly jump to the left.

Indicators

  • NET: The network indicator, flashing if network is connectted normally
  • PWR: Power indicator, red. The LED keeps on if the board is powered normally, and it flashs if abnormal
  • ACT: Green. This is the indicator for TF card read/write. It is flashing when read/write files.

Resources

Documents

Codes

Software

Drawing

Datasheet

FAQ


Support

If you require technical support, please go to the Support page and open a ticket.