SlideShare una empresa de Scribd logo
1 de 34
FPGA Based RGB LED Tiling
System
Contents
• System Overview
• Digital Design
• Software Design
• Board Design
SYSTEM
OVERVIEW
UART
Block
Ram
Control
Block
GUI
Software for
decoding
and
transmission
FPGA
LED Matrix
FPGA MODULE
PC CONNECTIVITY STORAGE
COMMUNICATION LOGIC & CONTROL
FPGA
PC CONNECTIVITY
• Serial Transfer :UART MODULE
– RS 232 Protocol
– Asynchronous Transfer
– Full Duplex
– Tested at baud rate of 9600bps to 115200bps
UART MODULE IMPLEMENTATION
Marc STOP BIT
START
BIT
MARC
START
BIT
SIN=0
SIN=1
SIN=0
DATA
0
DATA
1
DATA
2
DATA
3
DATA
7
DATA
6
DATA
5
DATA
4
SIN=1
STOP
BIT
DATA
STORAGE
• Block RAM
– Dual Port
– Default : 256 X 32bit RAM
– Combined three to get 192 X 72bit RAM
STORAGE: ORGANISATION OF DATA
LED 1.1
RED
LSB(0)
LED 1.1
BLUE
LSB(0)
LED 1.1
GREEN
LSB(0)
LED 1.2
RED
LSB(0)
LED 1.2
BLUE
LSB(0)
LED 1.2
GREEN
LSB(0)
LED 1.1
RED
MSB(7)
LED 1.1
BLUE
MSB(7)
LED 1.1
GREEN
MSB(7)
LED 1.2
RED
MSB(7)
LED 1.2
BLUE
MSB(7)
LED 1.2
GREEN
MSB(7)
LED 2.1
RED
LSB(0)
LED 2.1
BLUE
LSB(0)
LED 2.1
GREEN
LSB(0)
LED 2.2
RED
LSB(0)
LED 2.2
BLUE
LSB(0)
LED 2.2
GREEN
LSB(0)
LED 2.1
RED
MSB(7)
LED 2.1
BLUE
MSB(7)
LED 2.1
GREEN
MSB(7)
LED 2.2
RED
MSB(7)
LED 2.2
BLUE
MSB(7)
LED 2.2
GREEN
MSB(7)
LED
1.1
LED
1.2
LED
2.1
LED
2.2
COMMUNICATION
• Inter-FPGA-Communication Module
– Modified I2C Bus Interface
• Two Wire Interface: Clock Signal and Data Signal
• Duplex with Single Master
• Connects 255 FPGAs
– Required to relay images to FPGAs
PC FPGA1 FPGA2
FPGA 4 FPGA 3
UART I2C
• Data transfer is initiated when data line is
pulled low while Clock stays high.
• The master puts new data on the falling edge
• The slave receives data on the rising edge
• Data Transfer is stopped by pulling the data
line high while clock is constantly high
Modified I2C : Timing
Start Signal
• Clock=‘1’
• Data 0-1
Device
Address
• 1-255
Command
Word
• Bulk Transfer
• Single
Transfer
• Address
DATA
• 576 Byte
• 1 Byte
Stop Signal
• Clock=‘1’
• Data 1-0
Modified I2C : Message Protocol
LOGIC & CONTROL
• PWM
RAM Read
Control
• UART
• I2C
RAM Write
Control
PWM Generation
• Example
– Generate 8 bit PWM
• 0 means 0% duty cycle
• 255 means 100% duty Cycle
– Let us try and find PWM level of 128
• 128=010000000
• Hold the value of output=
– bit 0 for 1 clock cycle
– bit 1 for 2 clock cycle
– bit 2 for 4 clock cycle
– bit 3 for 8 clock cycle
– bit 4 for 16 clock cycle
– bit 5 for 32 clock cycle
– bit 6 for 64 clock cycle
– bit 7 for 128 clock cycle
– Total clock cycles=255
• 128 would mean that we have 128 clock cycles for which the output is one and
127 cycles for which the output is 0 hence 50% duty cycle as required
PWM Generation + Read Control
LED 1.1
RED
LSB(0)
LED 1.1
BLUE
LSB(0)
LED 1.1
GREEN
LSB(0)
LED 1.2
RED
LSB(0)
LED 1.2
BLUE
LSB(0)
LED 1.2
GREEN
LSB(0)
LED 1.1
RED
MSB(7)
LED 1.1
BLUE
MSB(7)
LED 1.1
GREEN
MSB(7)
LED 1.2
RED
MSB(7)
LED 1.2
BLUE
MSB(7)
LED 1.2
GREEN
MSB(7)
LED 2.1
RED
LSB(0)
LED 2.1
BLUE
LSB(0)
LED 2.1
GREEN
LSB(0)
LED 2.2
RED
LSB(0)
LED 2.2
BLUE
LSB(0)
LED 2.2
GREEN
LSB(0)
LED 2.1
RED
MSB(7)
LED 2.1
BLUE
MSB(7)
LED 2.1
GREEN
MSB(7)
LED 2.2
RED
MSB(7)
LED 2.2
BLUE
MSB(7)
LED 2.2
GREEN
MSB(7)
LED
1.1
LED
1.2
LED
2.1
LED
2.2
Write Control
UART
9 Byte
Buffer
RAM
192X72
SOFTWARE DESIGN
•Python
•Pymedia
•TERMINAL v1.9b
•Serial Data
Transfer
•115200bps
•Matlab
Video
Decoding
Data
Transfer
GUI
Utilities
Video Decoding
• Any Image is a 3D array
– Image(; ;1) represents RED
– Image(; ;2) represents GREEN
– Image(; ;3) represents BLUE
• Any Video is a 4D array with time as the 4th
dimension
– Video(; ; ; N) where N represents the Nth frame
Our Mechanism
1 •Convert JPEG image to RGB Array
2 •Covert Array values to Binary Value
3 •Convert to RAM compatible format
4 •Generate a text file
5 •Transfer via Terminal at 115200bps
Our Mechanism
255 255
255 255
0 0
0 0
170 170
170 170
11111111 11111111
11111111 11111111
00000000 00000000
00000000 00000000
10101010 10101010
10101010 10101010
1 0 0 1 0 0 1 0 1 1 0
ASCII
VALUE for
10010010
Python in Progress
• Why Python?
– Open Source and Free ware
– Work:
• Image Decoding
• Data Transfer : PyUSB, PySerial
• GUI Development: PyCard
LED Board
• consists of matrix of RGB LEDs size –
24 X 24 RGB LEDs.
FPGA Board
• consists of power supply regulators,
RS-232 Port, JTAG, 7-segment displays,
buttons, and FPGA ( Spartan3AN-50K).
LED Board
• Separation between RGB LEDs – 20mm.
• Separate LEDs for each color because of cost
factors
• Board subdivided into 16 parts with 6 X 6 RGB
LEDs
• Board Specifications
– Clearance – 10 mil
– Width – 12mil
– Drill size – 24 mil
• Multiplexing of LED Columns using High Power
PMOS (FDC604P).
• Power Supply - 5 V (Blue LEDs require 3.3 V)
• NPN with every PMOS
Since FPGA only
Provides 3.3 V.
LED Board
LED Board Layout
FPGA Board
• Spartan3AN - XC3S50AN.
– Package - Thin QFP with 144 pins (TQ144).
• Power Supplies
– VCCINT - 1.2V
– VCCAUX – 3.3V
• CLKIN – 20 MHz
• Four Multiplexed - 7 Segment displays
• RS- 232 Port along with MAX232 IC for signal interface
with FPGA.
• Four Buttons and three DIL switches as configuration
selector.
FPGA Board Layout
Specifications of FPGA used
• Device Name - XC3S50AN
• System Gates -50K
• Equivalent Logic Cells - 1,584
• CLBs - 176
• Slices - 704
• Distributed RAM Bits – 11k
• Block RAM Bits - 54K
• Maximum User I/O -108
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display

Más contenido relacionado

La actualidad más candente

Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)A. Shamel
 
Spi master core verification
Spi master core verificationSpi master core verification
Spi master core verificationMaulik Suthar
 
Audio led bargraph equalizer
Audio led bargraph equalizerAudio led bargraph equalizer
Audio led bargraph equalizerdouglaslyon
 
Do you know what your digital pins are "really" saying
Do you know what your digital pins are "really" sayingDo you know what your digital pins are "really" saying
Do you know what your digital pins are "really" sayingLeroy Levin
 
74ls290datasheet
74ls290datasheet74ls290datasheet
74ls290datasheetneghy
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and ProgrammingDevashish Raval
 
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment RoutingPLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment RoutingPROIDEA
 
Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)PREMAL GAJJAR
 

La actualidad más candente (14)

Ccp
CcpCcp
Ccp
 
Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)
 
Lec08
Lec08Lec08
Lec08
 
Spi master core verification
Spi master core verificationSpi master core verification
Spi master core verification
 
Audio led bargraph equalizer
Audio led bargraph equalizerAudio led bargraph equalizer
Audio led bargraph equalizer
 
Digital Clock
Digital ClockDigital Clock
Digital Clock
 
Gold Duo Servo Drive | ElmoMC
Gold Duo Servo Drive | ElmoMCGold Duo Servo Drive | ElmoMC
Gold Duo Servo Drive | ElmoMC
 
SPI Protocol in LPC2148
SPI  Protocol in LPC2148SPI  Protocol in LPC2148
SPI Protocol in LPC2148
 
Pro tools HD Systems
Pro tools HD SystemsPro tools HD Systems
Pro tools HD Systems
 
Do you know what your digital pins are "really" saying
Do you know what your digital pins are "really" sayingDo you know what your digital pins are "really" saying
Do you know what your digital pins are "really" saying
 
74ls290datasheet
74ls290datasheet74ls290datasheet
74ls290datasheet
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment RoutingPLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
 
Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)
 

Similar a FPGA Based RGB LED Display

arm complete detail part 2
arm complete detail part 2arm complete detail part 2
arm complete detail part 2NOWAY
 
MYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleMYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleLinda Zhang
 
Introduction to FPGA and projects overview
Introduction to FPGA and projects overviewIntroduction to FPGA and projects overview
Introduction to FPGA and projects overviewVikrant Thakur
 
NXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & PeripheralsNXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & PeripheralsNEEVEE Technologies
 
Rtos for system integration
Rtos for system integrationRtos for system integration
Rtos for system integrationjaideep Dadi
 
Snapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 ArchitectureSnapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 ArchitectureSantosh Verma
 
Renesas RL78 The True Low Power Microcontroller Platform
 Renesas RL78 The True Low Power Microcontroller Platform Renesas RL78 The True Low Power Microcontroller Platform
Renesas RL78 The True Low Power Microcontroller PlatformRenesas Electronics Corporation
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptxSivakumarG52
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverviewGhazi BEN HMIDA
 
32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメ32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメYuya Yamada
 
Esp32 datasheet
Esp32 datasheetEsp32 datasheet
Esp32 datasheetMoises .
 
Not bridge south bridge archexture
Not bridge  south bridge archextureNot bridge  south bridge archexture
Not bridge south bridge archexturesunil kumar
 

Similar a FPGA Based RGB LED Display (20)

dsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCsdsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCs
 
arm complete detail part 2
arm complete detail part 2arm complete detail part 2
arm complete detail part 2
 
MarsBoard - NXP IMX6 Processor
MarsBoard - NXP IMX6 ProcessorMarsBoard - NXP IMX6 Processor
MarsBoard - NXP IMX6 Processor
 
MYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleMYC-C7Z015 CPU Module
MYC-C7Z015 CPU Module
 
Introduction to FPGA and projects overview
Introduction to FPGA and projects overviewIntroduction to FPGA and projects overview
Introduction to FPGA and projects overview
 
NXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & PeripheralsNXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & Peripherals
 
Rtos for system integration
Rtos for system integrationRtos for system integration
Rtos for system integration
 
Dsp ajal
Dsp  ajalDsp  ajal
Dsp ajal
 
Snapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 ArchitectureSnapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 Architecture
 
Psoc3 text book
Psoc3 text book Psoc3 text book
Psoc3 text book
 
Renesas RL78 The True Low Power Microcontroller Platform
 Renesas RL78 The True Low Power Microcontroller Platform Renesas RL78 The True Low Power Microcontroller Platform
Renesas RL78 The True Low Power Microcontroller Platform
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverview
 
Parth xyz
Parth xyzParth xyz
Parth xyz
 
32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメ32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメ
 
Esp32 datasheet
Esp32 datasheetEsp32 datasheet
Esp32 datasheet
 
Doc32059
Doc32059Doc32059
Doc32059
 
32059 sistem
32059 sistem32059 sistem
32059 sistem
 
Not bridge south bridge archexture
Not bridge  south bridge archextureNot bridge  south bridge archexture
Not bridge south bridge archexture
 
Msp430
Msp430Msp430
Msp430
 

Último

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 

Último (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

FPGA Based RGB LED Display

  • 1. FPGA Based RGB LED Tiling System
  • 2. Contents • System Overview • Digital Design • Software Design • Board Design
  • 4. FPGA MODULE PC CONNECTIVITY STORAGE COMMUNICATION LOGIC & CONTROL FPGA
  • 5. PC CONNECTIVITY • Serial Transfer :UART MODULE – RS 232 Protocol – Asynchronous Transfer – Full Duplex – Tested at baud rate of 9600bps to 115200bps
  • 6. UART MODULE IMPLEMENTATION Marc STOP BIT START BIT MARC START BIT SIN=0 SIN=1 SIN=0 DATA 0 DATA 1 DATA 2 DATA 3 DATA 7 DATA 6 DATA 5 DATA 4 SIN=1 STOP BIT DATA
  • 7. STORAGE • Block RAM – Dual Port – Default : 256 X 32bit RAM – Combined three to get 192 X 72bit RAM
  • 8. STORAGE: ORGANISATION OF DATA LED 1.1 RED LSB(0) LED 1.1 BLUE LSB(0) LED 1.1 GREEN LSB(0) LED 1.2 RED LSB(0) LED 1.2 BLUE LSB(0) LED 1.2 GREEN LSB(0) LED 1.1 RED MSB(7) LED 1.1 BLUE MSB(7) LED 1.1 GREEN MSB(7) LED 1.2 RED MSB(7) LED 1.2 BLUE MSB(7) LED 1.2 GREEN MSB(7) LED 2.1 RED LSB(0) LED 2.1 BLUE LSB(0) LED 2.1 GREEN LSB(0) LED 2.2 RED LSB(0) LED 2.2 BLUE LSB(0) LED 2.2 GREEN LSB(0) LED 2.1 RED MSB(7) LED 2.1 BLUE MSB(7) LED 2.1 GREEN MSB(7) LED 2.2 RED MSB(7) LED 2.2 BLUE MSB(7) LED 2.2 GREEN MSB(7) LED 1.1 LED 1.2 LED 2.1 LED 2.2
  • 9. COMMUNICATION • Inter-FPGA-Communication Module – Modified I2C Bus Interface • Two Wire Interface: Clock Signal and Data Signal • Duplex with Single Master • Connects 255 FPGAs – Required to relay images to FPGAs PC FPGA1 FPGA2 FPGA 4 FPGA 3 UART I2C
  • 10. • Data transfer is initiated when data line is pulled low while Clock stays high. • The master puts new data on the falling edge • The slave receives data on the rising edge • Data Transfer is stopped by pulling the data line high while clock is constantly high Modified I2C : Timing
  • 11. Start Signal • Clock=‘1’ • Data 0-1 Device Address • 1-255 Command Word • Bulk Transfer • Single Transfer • Address DATA • 576 Byte • 1 Byte Stop Signal • Clock=‘1’ • Data 1-0 Modified I2C : Message Protocol
  • 12. LOGIC & CONTROL • PWM RAM Read Control • UART • I2C RAM Write Control
  • 13. PWM Generation • Example – Generate 8 bit PWM • 0 means 0% duty cycle • 255 means 100% duty Cycle – Let us try and find PWM level of 128 • 128=010000000 • Hold the value of output= – bit 0 for 1 clock cycle – bit 1 for 2 clock cycle – bit 2 for 4 clock cycle – bit 3 for 8 clock cycle – bit 4 for 16 clock cycle – bit 5 for 32 clock cycle – bit 6 for 64 clock cycle – bit 7 for 128 clock cycle – Total clock cycles=255 • 128 would mean that we have 128 clock cycles for which the output is one and 127 cycles for which the output is 0 hence 50% duty cycle as required
  • 14. PWM Generation + Read Control LED 1.1 RED LSB(0) LED 1.1 BLUE LSB(0) LED 1.1 GREEN LSB(0) LED 1.2 RED LSB(0) LED 1.2 BLUE LSB(0) LED 1.2 GREEN LSB(0) LED 1.1 RED MSB(7) LED 1.1 BLUE MSB(7) LED 1.1 GREEN MSB(7) LED 1.2 RED MSB(7) LED 1.2 BLUE MSB(7) LED 1.2 GREEN MSB(7) LED 2.1 RED LSB(0) LED 2.1 BLUE LSB(0) LED 2.1 GREEN LSB(0) LED 2.2 RED LSB(0) LED 2.2 BLUE LSB(0) LED 2.2 GREEN LSB(0) LED 2.1 RED MSB(7) LED 2.1 BLUE MSB(7) LED 2.1 GREEN MSB(7) LED 2.2 RED MSB(7) LED 2.2 BLUE MSB(7) LED 2.2 GREEN MSB(7) LED 1.1 LED 1.2 LED 2.1 LED 2.2
  • 16. SOFTWARE DESIGN •Python •Pymedia •TERMINAL v1.9b •Serial Data Transfer •115200bps •Matlab Video Decoding Data Transfer GUI Utilities
  • 17. Video Decoding • Any Image is a 3D array – Image(; ;1) represents RED – Image(; ;2) represents GREEN – Image(; ;3) represents BLUE • Any Video is a 4D array with time as the 4th dimension – Video(; ; ; N) where N represents the Nth frame
  • 18. Our Mechanism 1 •Convert JPEG image to RGB Array 2 •Covert Array values to Binary Value 3 •Convert to RAM compatible format 4 •Generate a text file 5 •Transfer via Terminal at 115200bps
  • 19. Our Mechanism 255 255 255 255 0 0 0 0 170 170 170 170 11111111 11111111 11111111 11111111 00000000 00000000 00000000 00000000 10101010 10101010 10101010 10101010 1 0 0 1 0 0 1 0 1 1 0 ASCII VALUE for 10010010
  • 20. Python in Progress • Why Python? – Open Source and Free ware – Work: • Image Decoding • Data Transfer : PyUSB, PySerial • GUI Development: PyCard
  • 21. LED Board • consists of matrix of RGB LEDs size – 24 X 24 RGB LEDs. FPGA Board • consists of power supply regulators, RS-232 Port, JTAG, 7-segment displays, buttons, and FPGA ( Spartan3AN-50K).
  • 22. LED Board • Separation between RGB LEDs – 20mm. • Separate LEDs for each color because of cost factors • Board subdivided into 16 parts with 6 X 6 RGB LEDs • Board Specifications – Clearance – 10 mil – Width – 12mil – Drill size – 24 mil
  • 23. • Multiplexing of LED Columns using High Power PMOS (FDC604P). • Power Supply - 5 V (Blue LEDs require 3.3 V) • NPN with every PMOS Since FPGA only Provides 3.3 V. LED Board
  • 25. FPGA Board • Spartan3AN - XC3S50AN. – Package - Thin QFP with 144 pins (TQ144). • Power Supplies – VCCINT - 1.2V – VCCAUX – 3.3V • CLKIN – 20 MHz • Four Multiplexed - 7 Segment displays • RS- 232 Port along with MAX232 IC for signal interface with FPGA. • Four Buttons and three DIL switches as configuration selector.
  • 27.
  • 28. Specifications of FPGA used • Device Name - XC3S50AN • System Gates -50K • Equivalent Logic Cells - 1,584 • CLBs - 176 • Slices - 704 • Distributed RAM Bits – 11k • Block RAM Bits - 54K • Maximum User I/O -108