Oct 5, 2014

P10 LED Controller (AT89S52)

This is P10 LED module. Each module contains 16x32 single color LEDs, could be red, yellow,
green, blue, white or purple. The controller normally using SPI of ARM mcu which powerful enough to handle several module connected in series and  more than one module rows.
There are two types of P10, semioutdoor and outdoor; the difference is obvious but the enclosure you use determine the protection level (drizzle, rain or heavy rain).
Example from ebay: http://www.ebay.com/itm/Red-LED-Display-Module-Board-Window-Sign-P10-PH10-16X32-Matrix-DIY-/190502734646

This is for experimental purpose only, I try to show small, medium and large font running text on single LED module. I use AT89X52 this time, because it doesn't have SPI then I have to simulate the SPI by the software.

Put attention on the horizontal arrow, it shows the flow of data, the controller must be connected to the connector behind the arrow. The vertical arrow shows the counting direction of the row but never mind because we use only one module this time.

Here below the connector configuration
OE: Output Enable for tuning on/off the entire LED
A and B: selection of row to turn on. 4 rows turn on at a time.
Row sequence: 1,5,9,13 then 2,6,10,14 then 3,7,11,15 then 4,8,12,16
CLK: SPI clock
SCLK: Latch register data to LED
Connector configuration at controller module are similar with connector at the LED module. They can be connected 1 to 1 with 2x8 female header with ribbon cable.

Crystal is 24MHz. Internally microcontroller has internal pull-ups so external pull-ups are optional. Just in case you P10 module very uncommon specification. Decoupling capacitor at power and another capacitor for reset. A little revision, pin 1 of the connector is A and pin 2 is B, in the schematic they are misplaced. LED module and controller require one 5V/2A power supply.

Get the code here https://play.google.com/store/apps/details?id=com.silvesterdao.c51forp10led


Rachman Luzan said...

cool.. nice blog

Chukwuma Egugbo said...

Hello!! This is exactly what I was searching for. How do you programme it with the sort of text you first. I have not purchased it yet. I want to have a background understanding about the prerequisites first. Thanks in advance!!

Silvester Dao said...

You can study the schematic and the code.

christyjames said...

I actually found this blog and that is amazing thing I enjoy reading this easy to understand stuff. Keep it up.
Sign Board Manufacturers in Chennai | Name Board Makers in Chennai

Raman Arumugam said...

Is this code is to compatible to add more P10 module in series?

Unknown said...

No. It can drive only 1 P10 module.

ogbekwe theophius said...

I need the code pls sir ogbekwetheophilus@gmail.com

shriram said...

hello friend, i had purchased this code but still it not work properly.
I have problem like, 4 line are (ie. line no 3,7,11,15) are ON other all lines are off.

SSDao said...

make sure your mcu is working. 4 lines only means the row selection is not changing.

Post a Comment

P10 Module x2 Running Text (STM32F103C8T6)

Interested to build a running text display made of two P10 modules? The text looks shaky on video but actually not, recording quality ...