TOCHORIS
Introduction: TOCHORIS
Don't you think array of windows on a building as a dot display? Imagine that a skyscraper as an arcade game machine and playing PONG with it. TOCHORIS is a tetris-like puzzle game run on a miniature scale Tokyo Metropolitan Government called "Tocho". This device is created with Arduino (ATmega328P board) and full-color RGB LED matrix (array of WS2812-2020).
(Special Thanks)
Here's the websites I referred to create this artwork.
https://create.arduino.cc/projecthub/john-bradnam/...
https://electronoobs.com/eng_arduino_tut104.php
Supplies
* Arduino (ATmega328P)
* WS2812-2020 (8x8 matrix) x 2
* WS2812B x 2
* DFPlayer Mini (mp3 decoder & 3W speaker amp.)
* TM1640
* 7-segment LED x 2
* Push button (tactile switch) x 5
* Resistor (100Ω x 8, 1kΩ x 2, 10kΩ x 3, 2.2kΩ, 4.7kΩ, 5.6kΩ, 33kΩ)
* Speaker (4Ω/8Ω)
* AAA battery x 3
Step 1: What Is It Inspired By?
This artwork is inspired by "Tokyo alert", which warns the epidemic risks and information of COVID-19 in Tokyo announced by Tokyo Metropolitan Government, and it's called "Gaming Tocho (Tokyo Metropolitan Government)" over social media because of its glowing color and amusing appearance.
When I found it, I remembered some creative projects using windows on a building as a dot-matrix display to enable people to play video games like Pong or Tetris, that is, making a building as an arcade game. Then I conceived an enjoyable creative work that reproducing them with a scale model of Tokyo Metropolitan Government building instead of remodeling itself.
Step 2: Electronic Circuit
First, I'd like to show the schematics of the circuit.
Basically the circuit of what I developed is the same as the picture, but I used Arduino Pro Mini (5V, 16MHz) instead of Arduino UNO to make it smaller as possible. My circuit is divided into two 2.8" x 1.87" (7.2 x 4.5 cm) PCB boards, one is the main board with MCU (Arduino Pro Mini), DF player Mini, and buttons, and the other is implemented an LED driver TM1640 to control 7-segment LEDs.
I will explain the detail of each component in the several following steps. If you don't need any explanation about the specification and description of every component, skip to the step 7.
Step 3: DF Player Mini (MP3 Player)
DF player mini is a tiny MP3 decoder & 3W speaker amp. 769
This module loads mp3 data from a SD card.
It has 3 control modes: IO control, A/D button control, and serial communication mode to play the music. In this project, I chose the 3rd one because microcontrollers can operate it only in this way.
To utilize this module from the microcontroller (Arduino), I also adopt a library "SoftwareSerial", which imitates serial communication (UART) with general IO pins to connect and communicate between them. I defined the pin 5 as receiver (RX) and pin 4 as transmitter (TX) connected to the peripheral module. Notice you do NOT connect them to the pins having the same name, but alternate with each other (pin 5 to TX, and pin 4 to RX of DF player mini).
Plus, 3 AAA batteries connected in series supplies its power (common with the main power source of the whole system), and a small piezoelectric speaker connected to the pin "SPK+" and "SPK-" outputs the sound.
Step 4: Score Counter (7-segment LED Display)
I used two cathode common 7-segment LED for displaying the current score and high-score. What I chose is very tiny but already discontinued now, so you need to find an alternative.
You may need to utilize an LED driver IC when you implement a 7-segment LED because the circuit is required to drive many LEDs. In this project, we selected TM1640, which can control up to 16 LEDs and has reasonable price.
When you use it, you need to connect the pin 9 - 16 (SEG1 - 8) to the anode pins (A - G, DP) of the both 7-segment LEDs, and the pin 18 - 25 (GRID1 - 8) to each cathode pin of them. 1003