Hi!
I have a project using an Arduino where I simply give a pulse every few seconds to activate a motor for a stress test unit.
Recently I purchased a 8 digit 7 segment LED display to basically count every pulse and give me an idea of the number of cycles.
The LED module I bought was the DFR0090 from DFRobot (Specifications I found).
I am trying to integrate this module with an Arduino Uno, and I just can't get to grasp on how to code it.
From what I can understand this module consists of basically 8 individual 7 segment displays, each with its own 74HC595D shift register.
I understand that I have to work with bytes and use the command shiftout to provide it bit by bit. My main doubt is how do I increment the value?
If you guys have any tips, it would be greatly appreciated.
Thank you!
You might be able to run it with my library:
https://lygte-info.dk/project/DisplayDriver%20UK.html
Using a HC595 static display definition.
If this work you can just use a int or long as counter.
_Thank you!
I've been reading and trying to play around with it, but I just can't get pass the following error: #error"_HC595_STATIC_must be defined in LEDDisplayDriver.h for this sketch to work.
It's probably something dumb that I'm not interprating right from your notes, but if you could guide me on what it means and what I have to do, it would help me a lot.
From the rest of the code, it is pretty intuitive, and I already have an idea of how to easily increment the value shown.
Really just pending on this to make further tests and evaluate if the library works with this particular LED module.
Thanks!
Because the library support many display types without taking up extra space I have to conditional compile some sections. This is controlled by a couple of #defines in the header file.
I.e. you must change the LEDDisplayDriver.h file to match your used display.
Either you have to put the LEDDisplayDriver.h & LEDDisplayDriver.cpp files in your project directory or you have to go to the Arduino libraries/LEDDisplayDriver folder and change it.
Only enable one of the display defines in the .h file, if you enable more you will also get errors.
Thank you so much!
It worked out perfectly, your library is really complete and intuitive! Amazing job!