กลับไปหน้ารวมไฟล์
board-interactive-game-on-line-game-play-46619e-en.md

This project is an arduino board game with 2 consoles. Each console can host up to four players and they compete with players on the other console in five memory, speed and reflex game scenarios. For this game, two electronic consoles were created that are connected to each other online. Arduino Mega, the MQTT protocol and the interactive Node-red programming environment were used to create the console.

The core of this project relies on Arduino Mega paired with an Ethernet Shield to establish a stable network connection. Node-RED serves as the central dashboard and server for processing score logic, while the MQTT protocol facilitates real-time data exchange between both consoles, significantly reducing latency during competitions.

Game play

Start game

The game starts by holding one of the buttons pressed for 5 seconds. When both consoles do this the game starts with a count down. if a console is ready to start the LED on the Buttons are on.

Game 1: (Reaction Time - LED Game)

This game tests hand-eye coordination. 2 Red Led dots turns on the right and the left led strip, also 2 random buttons luminates, in front of these 2 buttons there is a led, one led has green color and the other blue, the selections is random. Now the middle Led strips has a led that moves up and down in different speeds, one is green and the other blue. The purpose is to press the correct arcade button when the moving led is aligned with the red steady dot. When both led stopped in the correct spot the game ends.

Game 2: (Reaction Time)

This is a true test of reaction speed. Randomly, one led in front of the arcade buttons turns on, the purpose of this game is to press the button as fast as possible.

Game 3: (Memory)

The system will display a blinking LED pattern. The led in front of the buttons creates a pattern, the players should recreate the pattern with the buttons, if the player fails, a new pattern is created. The game ends when the correct pattern is recreated.

Game 4: (Color Reaction)

This game creatively utilizes RFID technology. The player will see in front of them a different led color, the purpose of the game is to place the rfid tag with the different color in the correct position. The system will scan and verify the Tag's UID to confirm accuracy.

Game 5: (Music Memory)

Concluding with an audio memory game, each button is assigned a different musical note via a DF Player Mini. The last game is a sound memory game, each of the 4 position will make a sound, means that each button represents a melody, the players should recreate the whole melody using the buttons.

Score:

In every game the time that needs to completed is counted. The winner Console is the one that completes everything faster. Each console sends the Score on the dashboard and the dashboard shows the winner. Node-RED acts as the central Dashboard, collecting the time spent in each game from both Consoles. At the end of the competition, the system calculates who achieved a faster time and sends a signal back to the Arduino:

  • Winning Console: LEDs will turn green, accompanied by a Victory Sound.
  • Losing Console: LEDs will turn red, accompanied by a Fail Sound.

Electronics

Each Console has sophisticated engineering and high-performance components:

  1. Arduino Mega 2560 with Ethernet shield: Serves as the main processor, requiring numerous I/O Pins for connecting various sensors. The Ethernet Shield provides a stable internet connection for MQTT data transmission.
  2. 4 Arcade buttons with Leds: With integrated LEDs, serving as the primary interface for player input.
  3. 4 Ir sensors (TCRT-5000): For detecting objects or positions in close proximity.
  4. 4 Rfid Readers: Used to identify Tag identities in the color test game.
  5. 4 Addressable Led strip with 10 Leds each (WS2812B): Creating beautiful lighting effects and displaying game status.
  6. 1 DF Player: An MP3 audio module for background music and sound effects.
  7. 1 Speaker 8 Ohm
  8. 1 Audio Amplifier: Amplifies the audio signal to be clear and loud enough for public play.

Network

Network Diagram and MQTT Connectivity

Construction

The assembly emphasizes durability, as this game involves constant pressing and touching.

Node - Red

Node-RED acts as the central dashboard and server for processing score logic.

Design

PCB

To professionalize the project and mitigate issues with loose wires, a PCB was designed to centralize the connections between the Arduino Mega and various peripheral modules.

This project not only demonstrates Arduino's capability in creating entertainment but also perfectly integrates network systems and IoT to deliver an exciting and ingeniously engineered collaborative/competitive gaming experience.

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x MQTT"
  - "1x Node-RED"
  - "1x Arduino IDE 2.0 (beta)"
author: "electrozist"
category: "Gadgets, Games & Toys"
components:
  - "1x Arduino Mega 2560 Rev3"
  - "1x RFID-RC522"
  - "1x Arduino Ethernet Shield 2"
  - "1x 3 Watt Speaker"
  - "1x WS2811 Addressable LED strip (1m, 60 LEDs)"
  - "1x TCRT5000 Infared Sensor"
  - "1x Arcade Button with Led"
  - "1x DFPlayer - A Mini MP3 Player"
description: "Multi-player Interactive Board Game"
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles: []
encryptedPayload: "U2FsdGVkX1+vf5qmWh+lI51lWcupFLaJDy72zgoKu2DFuzsIsxPTQjFWCOof5F/qzvBf8H9uySpWbeUWOrxVvLNzwlMcsEacAfWKI8GoNQlWvEGuiyjXSCdyAIwwUe6uo1eLw8Bi6SuxQJEAaI6yZA=="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/board-interactive-game-on-line-game-play-46619e_cover.jpg"
lang: "en"
likes: 2
passwordHash: "914475696bee044f66fbfc6ae2b099788a8deeecdafa27d6d9e4dbefcc0d070a"
price: 2450
seoDescription: "Multi-player Interactive Board Game with On-Line game play support. Built using Arduino and ESP32 for an immersive experience."
tags:
  - "Games"
  - "Audio"
  - "Communication"
  - "Entertainment System"
  - "Internet Of Things"
  - "Lights"
  - "Monitoring"
  - "Music"
  - "Remote Control"
title: "Board Interactive Game (On-Line game play)"
tools: []
videoLinks:
  - "https://youtu.be/Rnjg_v-43XQ"
views: 773