LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need urgent help controlling led matrix 7219

Solved!
Go to solution

I have been trying to control a led matrix with max7219 for a class project but i cant get it to work. I am pretty new to labview and arduino so I really confused at what i am doing wrong. The first three states are to initialize the led matrix, the 4th case does nothing while the 5th case inputs a 16bit binary code. It seems that for display test and shutdown mode works fine but when i try a digit mode to utilize the matrix in normal mode nothing happens. If someone can point out what i am doing wrong it would be of so much help. I attach my VI as well as some data from data sheets. I suspect I also am using wrong the function 'spi write by n frames'. I have been trying a number of different things but i cant figure out where the fault is.

TheMartin_0-1637255927614.pngTheMartin_1-1637255941101.pngTheMartin_2-1637255978468.png

TheMartin_0-1637256120992.png

I am using an Arduino Uno and led matrix max7219. I dont get any error code, but i dont get the output wanted in the matrix.

 

0 Kudos
Message 1 of 4
(874 Views)
Solution
Accepted by topic author TheMartin

Hello  TheMartin

 

- If the first three states are for "initialization":

  • Why do you start the state machine in the number 4?

GCarlos22_0-1637364832018.png

 

 

- What is the "boolean" button for?

GCarlos22_1-1637364879021.png

 

 

- You are only going through numbers 4 and 5 states, the code never goes to the 0, 1, 2 and 3 states numbers because you are starting at 4.

 

In addition, where you are building the array, you are doing this:

GCarlos22_2-1637365279279.png GCarlos22_3-1637365333274.png

 

As you can see, this is not what you need for writing into the SPI function.

Staff Technical Support Engineer
Message 2 of 4
(833 Views)

Thank you very much, indeed the initialization was the problem. I know the structure is a mess, but changing the initialization to 0 instead of 4 worked. Sorry for such a rookie mistake. I just got such an immense relief. Thank you very much.

0 Kudos
Message 3 of 4
(793 Views)

Hello TheMartin,

 

That's great!

You're welcome, good luck.

Staff Technical Support Engineer
0 Kudos
Message 4 of 4
(789 Views)