I am an absolute newbie with some knowledge of C++... and I would like to raise a question regarding "MD_Parola.h" in combination with a MAX7219 8x32 LED matrix display using an Arduino Nano.
Is it absolutely necessary to use "MD_Parola.h" or can I do without it, by just using the "MD_MAX72xx.h" library to display whatever needs to be shown.
The project is a weather station and I'd prefer it without fancy scrolling texts or other things. I just want it to simply show the barebone information.
Basically, it just needs to show " T 32c" for a few seconds, " H 58%" for a few seconds and finally "P 1005mb" also for a few seconds. (and then re-start with the temperature "T")
So far there is no algorithm available (except in my mind) ... but I will certainly use some bits of the codes I have seen here and there on the internet.
Thanks in advance for your help and have a great day (or evening ... or night ...)
the matrix is as figure 2
The Temperature sensor is a BME280
And for the code... I did not have the time to look into that yet but I have a pretty good idea how it should look like... (Work keeps me busy and wife/kids/dog too (ha ha ha))
So without the library ("MD_Parola.h"), things will get more complicated...
Is there a "MD_Parola.h" "LIGHT" version?
I fear that the footprint of this library will not allow me to add anything else in the NANO.
Sketch uses 5682 bytes (18%) of program storage space. Maximum is 30720 bytes.
Global variables use 84 bytes (4%) of dynamic memory, leaving 1964 bytes for local variables. Maximum is 2048 bytes.
Much better than the MD_Parola library at
Sketch uses 20910 bytes (68%) of program storage space. Maximum is 30720 bytes.
Global variables use 288 bytes (14%) of dynamic memory, leaving 1760 bytes for local variables. Maximum is 2048 bytes.
The downside however is that the MAX72xx code is not really for beginners
@indev2
Great, thank you for this,
I just had a look and it seems to be exactly what I am searching for.
Now, I will have to integrate the readings of the BME280 into the sketch and have happy days watching temperature, air pressure and humidity go up and down...
Regarding the MAX72xx, somehow, I will manage to get it show what I want ...
(else I come back here and bother everybody again... ha ha ha)
This will be my second project.
The first is a PM2.5 meter which works perfectly, also using a NANO and a DSM501A air quality module with 9 LEDs of different colors showing also the tendency (go up or down) of the particles in the air. My readings correspond with what the internet sais for my region.
Eventually, I want to build a whole weather station and get my daughter (12 years old) to leave the screen of her mobile phone --- get her interested in something else such as making LEDs blink, have a text showing on a matrix module...
NOTE regarding the Arduino NANO and the DSM501A air quality module.
With a lot of try and error, I found out that the DSM501A air quality module does not work well when sourcing its power from the Arduino NANO. I had to use 2 power supplies (2x mobile phone chargers (2x1.5W)) to get correct readings.
My project works like a charm.
If one day we meet, I pay for the Pizza...
I somehow squeezed everything inside the NANO...
(Sketch uses 30694 bytes (99%) of program storage space. Maximum is 30720 bytes.)
and below is my Sketch...
(I know, it is somebody else's Sketch which was written for an UNO ... BUT, I managed to adapt it to fit into the NANO...)
Note that I used an old MD_Parola library which was smaller than the most recent one.
Newest: MD_Parola version 3.7.3
The one I used... version 3.5.4 (slightly smaller footprint)
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
If you have an idea on how to make my code better (how to reduce its overall footprint), please feel free to give me hints...
As told, I am a complete newbie in the world of Arduino... and I think I got hooked.
Not Bob, but code tags (posting code in a code block) mskes it easy to copy the code to our local IDE or other text editor for formatting or examination. Doing the copy any other way is a pain in the bottom. The convenience is worth any few extra bytes.
Also:
Always use code tags (<CODE/>) when posting code or compiler error messages.
Using code tags makes the code easier to read and easy to copy. Not using code tags means some of the code gets displayed with smiley faces and other stuff that should not be there. Be aware that there is a limit of 120000 characters for a post. If your code takes you above this limit then you can add your .ino file as an attachment. However, it will be much easier to help you if you can write a short program that illustrates the problem you are having and post that.
Please don't post an image of code instead of the code itself, or an image of error messages instead of the error messages themselves.