📜 ⬆️ ⬇️

Analog Meggy JR RGB do it yourself

Good afternoon, I want to briefly tell you about creating a budget equivalent of Meggy JR RGB, which was written about a long time ago .



Prehistory


After reading that post, I set about trying to do something similar, but cheaper. A year later, Arduino was purchased. Having played with him and blinking an LED, I decided to do what I wanted for a long time.

Element selection


The ATmega168A controller was chosen as the heart of the device. Looking back, I understand that this is not the best (budget) choice, but then I wanted to write code in the Arduino language. To display the picture I chose the LED matrix tbc1511egwa. This is a two-color matrix with a common cathode. To manage it used shift registers 74HC595. As the main source used the following article arduino.ru/projects/arduino_led_matrix . SWT-9 buttons. In general, everything.
')


Version 1


Initially, the device assembled on a breadboard with a lot of noodles on the back of the board.


Then he replaced the crown on the power supply and built a wretched likeness of the body.




The first version of the firmware was written in the Arduino language. It was a game like Galaxy. It was with enough bugs, but even this version pleased me a lot.

Version 2


Noodles from the back side strained, so I decided to independently dilute and erase the board (my first experience in this matter). There were of course errors in the layout and then they had to be corrected. After installation, we got the following

back side


Front side


After that, a plexiglas case was built (sadly, but there was not enough glass of the same color) and the firmware was already written in C ++. It was a Snake game. Oh yeah, I also bought a simple programmer



It turned out that through dark Plexiglas LEDs do not shine too brightly.





Source files


Project in IAR ge.tt/773ImDt/v/0?c
PCB layout (.lay) ge.tt/773ImDt/v/1?c
There are several errors in the layout of the board. I post it here only to satisfy the curiosity of those interested. If you use it, remember that you act at your own peril and risk.

Results


And finally, the video gameplay (carefully at the beginning of the video loud sound.


That's all. The device is ready and successfully functioning. I am pleased.

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


All Articles