I am making a custom LED scoreboard. It's all volunteer work so the budget is paper thin. I know there's more than one way to do things but I'd like to know if this is it or if there's a better way.
The scoreboard has five digits and each digit will have seven segments. The numbers will be about 19" tall by 10" wide. What I was planning to do is have a host PIC to control everything. Because there are a number of things it will do other than the scoreboard, I decided to use MCP23S08's to control how the number is displayed and ULN2003's to drive the LED's. It works out pretty well seeing as how the MCP23S08's have 8 outputs and the ULN2003 has 7 outputs.
I was going to label the segments A-G so I would have 1A, 1B....1G then 2A, 2B, etc. Then I was going to use GOSUB's for the numbers. So if I want to display 14, I would put(I'm simulating with outputs instead of using the SPI since I haven't started it yet)
Code:
X=14
DIGIT_1=X/10
DIGIT_2=X//10
GOSUB DISPLAY_DIGIT_1
GOSUB DISPLAY_DIGIT_2
DISPLAY_DIGIT_1:
SELECT CASE DIGIT_1
CASE 1
1A=1
1B=1
CASE 2
1F=1
1A=1
1G=1
1D=1
1C=1
CASE 3
ETC.....
END SELECT
Does someone have a better idea?
Bookmarks