3.5 Digit Dot Matrix LED Display

Two QDSP-L149 5×7 dot matrix Red LED Displays were used to create 3.5 Digit display module. This was done by changing  the roles of rows and columns. So now each 5×7 Dot Matrix can show 2 digits.

Any other similar 5×7 Dot Matrix Display should work, just verify that right upper dot for each 5×7 unit is connected to RD0,RB0 (columns) and its row to RC0  respectively. You can use attached QDSP-L149  diagram as a reference , otherwise you’ll need to modify the code for your design. The prototype was build on a standard 830 Breadboard. Power supply is a simple 7805 regulator. However if you have PIC16LF877A that can operate with lower voltage 3.3V for example, current limiting resistors at ULN2003 outputs can be omitted, see  schematic for additional info

Four PIC16F877A PORTs were used to drive the display. PORTD upper 4 bits controls columns of Digit 4 (MSB) and lower 4 bits Digit 3. PORTB controls columns of Digit 2 and Digit 1.PORTC (RC0-RC2) and PORTE (RE1-RE2) used for row control.ULN2003was used to deliver the necessary current for two 5×7 Dot Matrix units.The rest of PORTC is not used in this version, giving the option to upgrade the design by adding SPI,I2C or UART functionality in the future. Dot Matrix is similar to LCD, you control every single dot, meaning that you can create and shape your own characters. Currently the Max reading is 1999 however the code can be easily modified to show more characters, digits and letters. Few additional characters already included in the code, they just commented out for now. In order to display a character you need to enable first row and send 4 bits of data then turn previous row OFF and next row ON and send new 4 bits of information representing part of the character being displayed. Here is the short summary of steps needed in order to drive the display: Put BCD number to convert in 0x25 –> Call BCDtoMatrix5x7 –>converted result in 0x30-0x34 representing 5 rows. 0x30 – Row1, 0x31 – Row2….Call ShowDigit1,2,3,4 to cycle through the Rows and create an image on the display. Use Microchip Programmers or compatible clones to download the code to microcontroller. Assembly code is here.


Leave a Reply

Your email address will not be published. Required fields are marked *