Stacker : 4 Steps - reisingermonce1983
Introduction: Stacker
This project was for 'Creative Electronics', a Beng Electronics Engineering module at University of Málaga, School of Telecommunications (https://www.uma.es/etsi-de-telecomunicacion/).
Our undertaking consists of the pretence of an arcade machine from the 80s. We have selected a unfit that is quite an best-selling nowadays, commonly known as 'stacker'.
The end of the game is to make over a tug that reaches the top. We start by establishing the base of the tower and then we will take blocks moving from one incline to the another. The game leave be ready for us to press the button to stack the block on top of the pillar formed so remote. So if you align it perfectly on that point will be no job, but if you don't do it the city block will be cut out making it even more difficult.
Supplies
-Wire
- Arduino Mega 2560
- Neopixel matriz
- Speaker
- Four buttons
- 5V 5A force cater
- A switch
- Grant Wood
- A trained plate
- One 1000 uF value condenser
- A resistor of value 470 Ω
Step 1: Step 1: Software
To develop our game we had to install the Neopixel libraries, to control the riddle, LiquidCrystal (from AdaFruit), wire and TimerOne.
The basic functions are:
Adafruit_NeoPixel matriz = Adafruit_NeoPixel(256, LED_PIN, NEO_GRB + NEO_KHZ800);
- matriz.start out(): Initializes the array
- matriz.clear(): sets complete leds to 0. You pauperization a show() to update the array.
- matriz.depict(): turns on the leds that hold been configured and turns off those that are at 0.
- matriz.setPixelColor( number of the position, R,G,B): configures the box of the assigned color. (R,G,B decease from 0 to 255. With 0 beingness off).
- matriz.setBrightness( BRIGHTNESS ): configures the brightness. A value of 20 is normally sufficient.
You can download the code here.
If you have any questions, leave them in the comments and I will be riant to solvent them.
Step 2: Measure 2: Hardware - Connection
Here is the connection needed to use the neopixel matrix safely.
In the case of the speaker, it will live sufficient to connect IT betwixt any PWM output and run aground. In the case of MEGA these outputs are from fall number 2 to 13.
As from each one button leave work by means of interruptions, they wish have to personify machine-accessible to pins 2,3,18,19, which are of the 6 interruptions available on the MEGA card. We wish reserve pins 20 and 21 for the LCD screen
For the LCD display we own a microcontroller that requires the VCC, GND, SDA and SCL connections. The last two are located happening pins 20 and 21 severally.
Step 3: Step 3: Hardware - Box
For the elaboration of our box we decided to make it with wood, since we had the resources and tools to practise it, however, you can use the material you want, like 3D printing.
First and strategically, we planned the box with large dimensions, with the heading of providing a greater visual impression and have space if we want to expand at some point the loge, or we want to add more features.
In this way, we decided to create a structure for the boxwood with wooden slats, compacted collectively with a nail and silicone polymer gun. The conformation we gave to the slatted structure is as follows:
In this way we create our box and spring IT a structure with holes, these holes are moon-splashed with wood sheets, we join them to the social structure in the same way, with silicone and a nail throttle.
These sheets must be permeable since they will equal varicoloured later, and they must have the measurements of the holes left hand in the box. In the same manner, we have divided the hindermost of the box into two parts sol that the upper part can be detached from the structure ready to handle the electronic components inside.
On the other hand down, the front part of the box has 3 holes to set out the cables of the matrix and the panel is installed, to which the pertinent holes are made for the installation of the components.
The holes in the control board give birth been made with a 14 gauge bit, so they are easy to make if you have the tools, as are the holes along the front for the installation of the perish.
We as wel create another scratch connected the front for the lcd screen out and another on the lower back for the connector that will give power to the power supply:
On the other hand, wealso provide the box with a speaker so we make some small incisions connected the lateral and glue the speaker to the box with silicone.
In one case the speaker is glued and the holes and installation of the front panel are consummated, we proceed to paint the box. In our model we have non painted the front panel only the design is free.
To rouge the box we have bought 2 cans of nebulizer paint, black and silver to make the teetotum line and logo.
Initially we painted the whole box black and so we retouched IT with the silver paint, such American Samoa the logotype, which we obtained from a sheet of paper cutting out the image we wanted to achieve by printing it from the data processor.
For the stripe we use tape on the sides to get the key to only paint the sides we want. Finally, the box would fit the build:
Step 4: Dance step 4: Drilled Plate.
The required components for the correct operation of the set are included in a drilled plate. The components are the capacitor and resistance mentioned above, equally well as the ground and power connections between the power append, Arduino and the neopixel matrix.
Be the Inaugural to Share
Recommendations
-
Anything Goes Contest 2022
Source: https://www.instructables.com/Stacker/
Posted by: reisingermonce1983.blogspot.com

0 Response to "Stacker : 4 Steps - reisingermonce1983"
Post a Comment