📜 ⬆️ ⬇️

“My business is a gift to give, and you yourself think up what to do with this crap” (© Masyanya)

Publications about high-tech gifts (see References [1] and [2]) inspired me to create my own crap funny things.

image

Maybe it looks not as aesthetically pleasing as [2], but it can not only blink a heart, but also congratulate from the heart, or even make a declaration of love. Congratulations are displayed with a running line using an 8x8 LED matrix (in the absence of imagination, I called my project - led8x8 ). I soldered such a matrix with wires to the microcontroller's paws:
imageimage

The device is powered and configured from USB. Any number of texts and pictures can be stored in memory (as long as there is enough space in the EEPROM), they are stored in memory after turning off the power. Control and configuration is carried out through a text console connected to a virtual COM port (via any console such as Hyperterminal, Terraterm or putty), the management interface has a hint system. Texts can be entered using the TXT command, and BMP images in black and white 8x8 pixels can be downloaded using the XMODEM protocol (my favorite SecureCRT console can do this). Both texts and pictures are added to the common pool, and are played by the RUN command in the order in which you memorized them - so if you like, you can compose a very complex congratulatory combination. The speed of the running line and changing images is changed by the SPEED command (from 1 to 10). Some debug commands are also available. The screenshot shows an example of the execution of commands in the console.
image
')
When creating the program, we used the V-USB library, an example of the USB CDC class from Osamu Tamura and free AVRStudio + GCC software (I don’t provide links because you can easily find it on the Internet if you wish), as well as the font from the ZX Spectrum computer.

UPD 100627 : at the request of some readers wrote an article explaining the principle of the dynamic display (link [5]).

[Links]
1 . "High-tech gift" by March 8 .
2 LED gift for March 8 .
3 Project for AVRStudio ledx8x8 (ATmega32 microcontroller is used on AVR-USB-MEGA16 layout tool).
4 Small demo video . The flashing heart animation is made up of 3 BMP pictures drawn in Paint.
5 Dynamic display using the example of the 8x8 GNM-7881AUE LED matrix control .

Source: https://habr.com/ru/post/96964/


All Articles