Difference between revisions of "MAX7219X4"

From Land Boards Wiki
Jump to navigation Jump to search
Line 75: Line 75:
  
 
* [https://github.com/douggilliland/MultiComp/tree/master/MultiComp%20(VHDL%20Template)/Components/IO/max7219 MAX7219 VHDL code]
 
* [https://github.com/douggilliland/MultiComp/tree/master/MultiComp%20(VHDL%20Template)/Components/IO/max7219 MAX7219 VHDL code]
 +
* Instance
 +
 +
<pre>
 +
instance: MAX7219
 +
    generic map(
 +
            devices => 2,
 +
            intensity => (16#1#, 16#3#)
 +
        )
 +
    port map (
 +
            clk => clock,
 +
            data_vector => x"FEDCBA9876543210",
 +
            clk_out => MAX7219_CLK,
 +
            data_out => MAX7219_DATA,
 +
            load_out => MAX7219_LOAD,
 +
            reset_n => globalResetN
 +
        );
 +
</pre>
  
 
== Test ==
 
== Test ==

Revision as of 13:42, 3 August 2022

Tindie-mediums.png


MAX8219X4 P18496 720PX.jpg

Features

  • (4) MAX7219 8 digits, 7 Segment display modules
  • 32 digits
    • 4 rows
    • 8 digits per row
  • Can display decimal, hex values, some text values
  • Each display has 8 of 7 segment LED displays
  • "Blue" card
  • 3.3V interface operation
    • 3.3V to 5V Level shifter
  • Requires both 3.3V and 5V power supplies
  • 8 pin connector
  • 95x95mm ODAS form factor
  • (4) 6-32 mounting holes

MAX7912 8 Digs 001.jpg

J1 Connector

  • 3.3V signal level
  • 5V power to LEDs
  • 1x8 right angle header mounted on rear of card
  1. GND
  2. GND
  3. DOUT
  4. CLK
  5. CS
  6. DIN
  7. 3.3V
  8. 5V

Programming

Arduino Drivers

Arduino Example Code

LBMAX7219X4_ADDR

  • LBMAX7219X4_ADDR
    • void writeHexDigit(uint8_t rowVal, uint8_t colVal, uint8_t digitVal) - Write Hexadecimal digit to location
    • 8 columns, 4 rows
    • rowVal = 0 is top row in display
    • colVal = 0 = left character

LBMAX7219X4

  • LBMAX7219X4
    • Displays Land-Boards channel intro video across the LEDs on 4 rows of 8-digits MAX7219X4 card
    • "LAND-" (first line)
    • "BOARDS" (second line)
    • "PRESENTS" (third line)
    • "CARDS...", "AND CODE" (4th line)

VHDL Code

instance: MAX7219
    generic map(
            devices => 2,
            intensity => (16#1#, 16#3#)
        )
    port map (
            clk => clock,
            data_vector => x"FEDCBA9876543210",
            clk_out => MAX7219_CLK,
            data_out => MAX7219_DATA,
            load_out => MAX7219_LOAD,
            reset_n => globalResetN
        );

Test

  • Test single 8-digit modules
  • Test MAX7219X4 card with (4) 8-digit modules

Test Single Modules

SensorShield P1080453-720px.JPG

SenShld Desc MAX J1 Color
VCC VCC 1 RED
GND GND 2 BLK
D12 DATAIN 3 WHT
D10 CS 4 BRN
D11 CLK 5 YEL

Test MAX7219X4 Card

ArduinoInABox CAD X1.png

AiB Signal MAX7219X4 Signal Color
J5-25 GND J1-1 GND BLK
D11 J5-19 J1-4 CLK YEL
D10 J5-21 J1-5 CS WHT
D12 J5-17 J1-6 DIN BLU
+3.3V J5-1 J1-7 +3.3V RED
VFILT J9-1 J1-8 5V ORG

"Red" Modules

RedModule Overall P1080454-720px.jpg

  • Incompatible pinouts
    • Flipped from blue modules

RedModile Left P1080456-720px.jpg

RedModule Right P1080455-720px.jpg

Mechanicals

MAX7912X4 MECHS.PNG

Rev 2

  • Add 5V interface connector - J2

MAX7219 Front Rev2 3D.png

  1. VCC
  2. DIN
  3. CS
  4. CLK
  5. DOUT
  6. GND

Assembly Sheet