The most simple and exciting fall into the world of microcontrollers or Meggy Jr RGB
So, to all fans of retro games, pixel art, iron like arduino and those who have the idea to write to write their own simple game, without going too much into the wilds of datasheets!
I want to introduce you to the 8-bit gaming handheld, on the Atmega-328 microcontroller, with a large, bright screen with pixels that are impossible not to notice. On board there is: 32KB of memory for your code, 6 buttons, a simple speaker, 8 additional diodes and a connector for programming and data exchange.
')
What can be done with such small resources? But after all, in any case, the main resource is your imagination and experience!
device overview
Atmega328
- the heart of our toys
Clock frequency: 16 MHz
Flash Memory Size: 32 KB
Volume of SRAM-memory: 2 kb
EEPROM-memory: 1 KB
RGB LED Matrix
consists of 64 RGB diodes, so we have to manage 192 diodes. With the help of PWM you can get the glow of absolutely any color and brightness.
ISP interface
in fact, the good old RS-232, with its help we will flash the ATM and transfer data from the computer to meggy, or from meggy to meggy, or to any other scarf.
other elements of the board
The speaker is very simple, controlled by PWM, produces funny blips, The buttons are loudly clicked, there is a case for three AAA batteries and the ability to solder the connector under the headphones.
I am a lover of minimalism, to do something as rationally as possible and as cheaply as possible - this is a real challenge! This immediately attracted me to Meggy. Remember how to compete with dad in childhood who will score more points in tetris? This is it. This game brings back that unforgettable feeling.
I completely forgot to collect everything you need with your own hands!
Assembly
The set comes in a box, as for a small pizza, inside a bunch of sealed bags, in which the parts are laid out right in steps of assembly, detailed instructions for assembly and programming, a couple of stickers and a cable for connecting to a computer.
But I hasten to please everyone who is afraid or just did not try to solder something! It's all very simple, even a junior school student can assemble with the help of the simplest soldering iron.
The assembly process itself takes an hour or two and introduces a peaceful mood. :) The game is already sewn into the microcontroller, so immediately after assembling, you can relax a bit and experience your creation.
Programming
Here, as with the assembly. Everything is very simple! Download the latest version of arduino, library for meggie and go! The brochure is all very detailed. Who was in the school BASIC-pascal can easily write the first program.
At the same time, many interesting programs have been written for Meggy:
built-in game first
twitter reader
Midi-game with a computer and Wii-mout
a bunch of snakes, pongs, mazes and other things.
Subjective opinion
I have always loved simple toys: tetris, electronics, pinballs and more. When I saw this kit, I immediately decided to buy it, while I was still studying at the institute and worked part-time as a technician in one place. Checked and repaired shawls. I was already familiar with ibei, so I had a card and a paper pen. I ordered the set, after 3 weeks I received it. Prior to this, I programmed only at school, with microcontrollers being you. A month later he wrote his snake, then a couple more games. Then I tried ARM controllers at work, I gradually got involved, and now I have graduated from the institute for a year now, I haven’t repaired it for a long time and do not dig into the errors of collectors. I changed my job to a more interesting one and continue to dive this fascinating abyss of computers in a crystal.
I wrote all this to the fact that I consider that education should be: interesting and fun - it motivates. Such and should be toys for adults and children - developing.