# Configure Matrix Panels

## Configure P10 Matrix Panels

In this example, the setup consists of 8 P10 panels (4H x 2 W) driven via a Beagle Black Bone (BBB) with an octoscroller running the Falcon Player (referred to as the FPBBB). This process should be the same for Raspberry Pi's running FPP with a Pi Hat or Colorlight Card.
First Add a New Ethernet Controller to the Controller Tab. It is recommended to use a DDP Protocol for FPP based P10/P5 panels. An E131 Protocol can also be used but for this guide DDP was selected.
Set the Name to FPPBB. Set the IP Address of the device IP(192.168.5.200 in this example). The Id is a unique controller ID for xLights to use, this Id must be different for each out. The default Id of 1 is okay for this example. The number of channels is the total number of channels for the P10 matrix. To calculate this number channels, multiple the number of channels per LED(3 in most cases) by the number of LEDs per panel(512 for P10's) and then multiple that result by the number of Panels(eight in this example). The final values is the total channel for the Matrix.
$Channels Per LED * LED Per Panel * NumberOfPanel = Channel Count$
For this example, the total number of channels is: 3 x 512 x 8 = 12288 channels.
Set the Description Field To 'P10Matrix' and set the Vendor to 'FPP' and the Controller Type to 'PiHat'. The Description . Enable the 'Auto Upload Configuration' setting.
Click 'Save' when complete.
Next, Define a model ‘P10Matrix’ for in the Layout Tab
Layout Tab
First Select the 'Matrix' model icon in the Model Toolbar.
Matrix Model
Click the Left Mouse Button Down then Drag the Pointer to the Right, and Release.
Next, define the model settings. Set the model name to ‘P10Matrix’ (or any name of your choice) set it as a horizontal matrix.
Set ‘# Strings’ = 64 (corresponds to number of rows), ‘Nodes/String’ as 64 (corresponds to the columns) and ‘Strands /String’ = 1. 'Starting Location' = Top Left.
A single 32 * 16 P10 panel has 16 rows (height) and 32 columns (width). Right click on the image in your Layout and select Node Layout to view the node definition.
To set the Start Channel Click the Ellipsis(three periods) button in the Start Channel Box.
Set the start Channel by Clicking the 'Controller' Option and selecting the Controller Name set earlier, from the drop-down list. Keep the 'Start Channel' set to 1.
The start channel should be set to '!P10Matrix:1' and xLights will automatically calculate the end channel.
Click the 'Save' Button when done.