Who does not know you, the little yellow sticky note? Quick information for your loved ones, the colleagues or your friends leave or write down a thought support.
In times of electronic support, this also goes by means of matrix display, Blynk and a photon also quickly from the hand, including a timestamp. If no note is to be transmitted, the display will show not the weather (compare this project), but cited your mind-building words from the Bible (to find a similar project of mine here) within a daily update.
Whats going on?You'll learn how to get a Matrix7219 (with 4 digits) up and running, hook up the appropriate 3 libaries and webhook and leave text messages via Blynk from your smartphone.
Deployment OptionsMy son is in Australia via "Work & Travel" on the road and has a significant time lag of 10 hours to my time zone. The oral communication is accordingly sporadic. However, using the Blynk authorization code, he has the ability to use short text messages even at our time of night, and we know from the timestamp that he's basically fine.
Of course, an info can be sent at any time without screaming through the whole house that "the food is ready".
- VIN to VCC,
- GND to GND,
- D1 to CLK,
- D2 to CS,
- D3 to DIN
The Blynk integration is fast and cheap: you need 2 Widgets to place into the app: a terminal widget (mapped on virtual V1) and a button widget (mapped on virtual V2) which costs 400 Blynk Energy Points in sum.
Here are the information for the webhook configuration (follow console.particle.io - Integration):
- Event Name: tageslosung
- Full URL: http://losungen.klose.cloud/api/today
- Request Type: GET
- Request Format: <nothing>
- Enforce SSL: No
At least there is a function to check your winter/summer-time. Set your timezone in the "void setup"-Function:
Time.zone(isDST() ? +2.00 : +1.00);
Conclusion- At the moment you can not transmit via Blynk the Umlauts like ö, ü, ä, ß
- A test with several matrix in the concatenation could not be performed due to the lack of another matrix - checked with Update 02.01.2018
- The bible texts are available for access in German. You will certainly find suitable service providers in your own language.
A test with linkable matrix displays (3 in sum) could be completed today and successfully completed. The code requires only 2 changes in void setup:
led = new LEDMatrix(12, 1, D1, D2, D3);
and adding
// third Matrix
led->addMatrix(11, 0, 0, false, false);
led->addMatrix(10, 0, 0, false, false);
led->addMatrix(9, 0, 0, false, false);
led->addMatrix(8, 0, 0, false, false);
// second Matrix
led->addMatrix(7, 0, 0, false, false);
led->addMatrix(6, 0, 0, false, false);
led->addMatrix(5, 0, 0, false, false);
led->addMatrix(4, 0, 0, false, false);
I have not soldered the transfer yet: the video shows the nested displays above the corner.
Today I have dedicated myself to the topic of concatenation: with a little soldering (the existing PINs I just bent up, put together to the next matrix and soldered) it works in a line.
You can still fix the white plastic digits with hot glue so there is no visible gap in the transition, but that's optional.
If one breaks off when bending up the straight PINs, this is not tragic: just make a direct connection on the backside.
Update 02.02.2018Thanks to ScruffR I have optimized the code with a for-clause and currently also implemented the support of German umlauts (ö, ä, ü, ß, Ö, Ä, Ü).
for (int i = 11; i >= 0; i--)
led->addMatrix(i, 0, 0, false, false);
// Umlaute check - Start
/*
//https://community.particle.io/t/umlauts-in-ledmatrix-lib/37837/2
//https://community.particle.io/t/nochmals-die-umlaute/38488/5
char | ASCII | coded
| HEX | DEC | HEX | DEC
Ä | 8e | 142 | c3 84 | 195 132
ä | 84 | 132 | c3 a4 | 195 164
Ö | 99 | 153 | c3 96 | 195 150
ö | 94 | 148 | c3 b6 | 195 182
Ü | 9a | 154 | c3 9c | 195 156
ü | 81 | 129 | c3 bc | 195 188
ß | e1 | 225 | c3 9f | 195 159 // changed to e0 >> http://graphemica.com/%C3%9F
*/
text.replace("Ä", "\x8e");
text.replace("ä", "\x84");
text.replace("Ö", "\x99");
text.replace("ö", "\x94");
text.replace("Ü", "\x9a");
text.replace("ü", "\x81");
text.replace("ß", "\xe0"); // xe1
// Umlaute check - Ende
Update 09.03.2018Today I soldered 5 matrix displays with 4 digits each other - works well.
Comments