Hello to all,
I connected two max7219 two matrix LEDs. A matrix of LEDs receives data from Arduino.
This works fine, because I planned that if the serial monitor I write "a", the matrix shows the character "a".
I want what I visualize the flow matrix of LEDs, that I want to get the effect of "shifhting."
Who can help me because I do not know how to do?
Thanks to all
Checkout the Parola library and the related MD_MAX72xx library for examples. Links in my signature block below.
marco_c:
Checkout the Parola library and the related MD_MAX72xx library for examples. Links in my signature block below.
but in doing so I have to buy other components .i m not want to do so. is there a way to shift
the message? ie using only the libraries and functions? someone can teach me?
Who can help me because I do not know how to do?
Do not know hoe to do what? Post your code? Read the stickies at the top of the forum, like you were supposed to do BEFORE you posted here.
No one can help you modify your code without seeing your code.
If you think about it for a second, if you can display "My name is Joe ", you really should be able to display "y name is Joe M" just about as easily. And then, " name is Joe My" can't be any more difficult.
Here is one way to do it.
Put your message in a large array.
Every 100mS, read out 32 bytes of the array and send it to the MAX7219.
Say 0 to 15 to start.
On the next 100mS, you move over 1 address in the array, and 1-16.
Then 2-17,
3-18,
4-19,
5-20,
and so on.
The array size is just limiteb by available SRAM.
Or, you can store it in PROGMEM for a larger array.
Or, you can store it in EEPROM, make your sketch fancier to allow changing it based on serial message received.
Lots of options.
PaulS:
Who can help me because I do not know how to do?
Do not know hoe to do what? Post your code? Read the stickies at the top of the forum, like you were supposed to do BEFORE you posted here.
No one can help you modify your code without seeing your code.
If you think about it for a second, if you can display "My name is Joe ", you really should be able to display "y name is Joe M" just about as easily. And then, " name is Joe My" can't be any more difficult.
I posted the code.
I want to write to the serial monitor for example "a", and display on the LED matrix, the letter "a" flowing .. this is an example:
Progetto.ino (14.1 KB)
CrossRoads:
Here is one way to do it.
Thanks for the reply, however, you can look at my code? I have programmed the binary letter by letter, number by number .. so I do not have a default message, but the user enters what you want displayed on LED matrix ..
I managed to see .. but I can not slide .. what do I see if I can explain well how do I'd thank you very much
but in doing so I have to buy other components .i m not want to do so. is there a way to shift
the message? ie using only the libraries and functions?
A LED matrix connected to a MAX7219 pretty much works the same way in most implementations. The point is if you want to look at code that scrolls messages and learn from it, there is a lot of that in the library examples for the MD_MAX library.
On the other hand if you want someone to do your work for you with your specific circuit, then you are not giving anyone enough information to do that.
You use
#include "LedControl.h"
I don't try to debug sketches that use libraries. Maybe a software guru can help you.
CrossRoads:
You use#include "LedControl.h"
I don't try to debug sketches that use libraries. Maybe a software guru can help you.
I use it ledcontrol.h .. however you have a code example that you can adapt to my to scroll the text? .. the program that I have done and it works okay .. I can assure you, because I tried it. I want to figure out how to scroll through the letters that I see.
In the program I wrote, if the monitor serial write "a", the led matrix belonging to the letter "a", however, remains still, not moving .. how do I slide it? .. I would like you to help me in this. Thank you.
marco_c:
On the other hand if you want someone to do your work for you with your specific circuit, then you are not giving anyone enough information to do that.
What information do you still need? .. I posted the code, I'd like you to tell me how I could, for example, is the code for "take" what a person writes on the serial monitor and display it on the matrix ..
If you can write this little piece of code I would be very grateful
That little piece of code is in the examples I have pointing you to for 2 days. And Crossroads has told what you need to do.
marco_c:
That little piece of code is in the examples I have pointing you to for 2 days. And Crossroads has told what you need to do.
no, the link that you gave me, there are no codes.
I do not know how to use the "PAROLA", how do you use it? .. I downloaded the library .. but I do not know .. how do you use it? Can you give me directions?
i tryed this sketch, but it isn't work..
What doesn't work? What were you expecting to happen that did not happen? You need to be specific.
What doesn't work? What were you expecting to happen that did not happen? You need to be specific.
[/quote]
I I expect from this program that I write on the serial monitor a message, this is what I see on the LED matrix.
But there is not an example that I can take and use? and running?
where do I put what I want from the serial monitor and display it on the led matrix as it flows? ..
This example works for everybody else so you must be doing something different.
- Have you set up the right bit rate for the serial interface?
- Have you set the monitor to send a newline at the end of the message from the serial monitor?
- Have you tried to read the code at all to see what else you need to do?
marco_c:
This example works for everybody else so you must be doing something different.
I've done everything you've told me.
If you look at my code that I posted, you can write to me the instructions of the program so that the message flow on the display?
No, your code is too far away from what it needs to be for me to be able to do that. Crossroads told you the general method in an earlier post.
CrossRoads:
Here is one way to do it.
Put your message in a large array.
Every 100mS, read out 32 bytes of the array and send it to the MAX7219.
Say 0 to 15 to start.
On the next 100mS, you move over 1 address in the array, and 1-16.
Then 2-17,
3-18,
4-19,
5-20,
and so on.
The array size is just limiteb by available SRAM.
Or, you can store it in PROGMEM for a larger array.
Or, you can store it in EEPROM, make your sketch fancier to allow changing it based on serial message received.
Lots of options.
but in this way the word flows on the led matrix? however I do not know .. there is no way using the library sprite?