Minifigures Battle Game

by Barqunics in Circuits > Arduino

147 Views, 0 Favorites, 0 Comments

Minifigures Battle Game

How To Make Minifigures Battle Game | Arduino Project

In this game, players use minifigures mounted on tag and push the minifigure towards the opponent's minifigure using stick so opponent’s led bar will drop by one. the winner is the final player who has not let their led bar drop to zero.

Hardware and Materials Required :

Arduino Uno : https://amzn.to/3KO9cTh

USB Cable for Arduino: https://amzn.to/3s9SObt

AC 100-240 to 9V 1A Power Supply Adapter: https://amzn.to/3qpFuiH

Jumper wires 40 cm/ 50 cm: https://amzn.to/2zKePBX

Cardboard : https://amzn.to/39ufbKH

Breadboard : https://amzn.to/3Eo2CBs

RFID Kit - Mifare RC522 RF IC Card Sensor Module: https://amzn.to/3ElO45d

T-Side Double Sided Tape : https://amzn.to/3PlOU7p

Led Bar Graph Module : https://amzn.to/3L6qb5y || https://www.alburyrcmodels.com.au/linker-led-bar-for-arduino || https://cutedigi.com/led-bar-module-of-linker-kit-for-pcduino-arduino/

Small magnet (2 pcs) : https://amzn.to/45R0spA

Magnet 40x10x2 mm (2 pcs) : https://amzn.to/45zVcae

Magnet 20x10x2 mm (4pcs) : https://amzn.to/44ApsjN

Soldering Iron Kit : https://amzn.to/3eHmp0i

Hot Glue Gun: https://amzn.to/3LaHjqG

Magnet 20x10x2 mm (4pcs) : https://amzn.to/44ApsjN

Soldering Iron Kit : https://amzn.to/3eHmp0i

Lego Minifigure SH684 Spider Man Printed Arms (ja23): https://www.ebay.com/itm/404509549021

Lego Minifigure Sandman from 76178 - Daily Bugle SH685 Green Outfit: https://www.ebay.com/itm/404509675938

Wiring the Components

vlcsnap-2023-09-19-22h00m54s456.png
vlcsnap-2023-09-19-22h01m25s408.png
Minifigures_Battle_Game.png

The RFID reader will check for any tags in the vicinity and if a tag is found, the reader will read the Unique ID from the tag. And if the UID matches with the UID in the code, the Arduino will change the state to true. If no tag is detected after your state is true, your LED Bar will drop by one and the state will change to false.

You can attach RFID reader and magnet using double-sided tape and attach the tag and magnet using double-sided tape too.

Program the Arduino

If you haven’t done so already, download Arduino IDE from the software page. You can find installation instructions here.

Download the code and transfer it over to the Arduino. Don’t forget to download & install Grove - LED Bar Library also.

Since you have downloaded the zip (Grove - LED Bar) Library, open your Arduino IDE, click on Sketch > Include Library > Add.ZIP Library. Choose the zip file you just downloaded, and if the library install correct, you will see Library added to your libraries in the notice window. Which means the library is installed successfully. If you haven’t done so already, download Arduino IDE from the software page. You can find installation instructions here.Download the code and transfer it over to the Arduino. Don’t forget to download & install Grove - LED Bar Library also.

Making the Game Board

3.png
4.png
5.png
2.png
vlcsnap-2023-09-18-22h08m18s820.png
vlcsnap-2023-09-18-21h48m19s635.png
vlcsnap-2023-09-18-22h02m35s706.png
vlcsnap-2023-09-18-22h02m45s425.png

The first step to gather all material including cardboards, a ruler, a pencil, scissor/cutter, and a hot glue gun. Once you have all the materials, next step is to measure and cut cardboard pieces according to the provided dimensions. You can use ruler and pencil to mark the cardboard before cutting it with the scissor/cutter. After cutting the cardboard pieces, you can start assembling by gluing the pieces together using hot glue gun.

Attach 2x6 plate lego and the tag using double sided tape. Attach magnets on the left and right sides of the back of the cardboard, and also attach magnets on the left and right sides of the top of the cardboard to prevent the top from being lifted upwards.



Play the Game

vlcsnap-2023-09-17-17h57m44s698.png
vlcsnap-2023-09-19-22h49m43s234.png

Bring the tags that have been attached with magnets close to the RFID reader, which is also attached with magnets on the top of the cardboard, so that the two magnets attract each other. The RFID reader will read the unique ID from the tag. And if the UID matches the UID in the code, Arduino will change the state to true, and the LED Bar will have a scrolling effect. Push the minifigure towards the opponent's minifigure using stick so that their RFID reader doesn't detect their tag, causing the LED bar module to decrease by one.


Hopefully, in this project, you gain new knowledge and enjoy the game.

Thank you for your support.