Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Mega 2560-Based Interactive Game with RGB LEDs, LCD Display, and DFPlayer Audio

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Interactive Game with RGB LEDs, LCD Display, and DFPlayer Audio

Circuit Documentation

Summary

This circuit is designed to control an RGB LED, read button inputs from three players, display the winner's name on an LCD, and play the winner's name using a DFPlayer module. The circuit is powered by a 12V power supply, which is stepped down to 5V using a buck converter to power the Arduino Mega 2560 and other components.

Component List

  1. RGB LED (Wokwi compatible)

    • Pins: R, COM, G, B
    • Description: RGB LED used to display different colors based on the player's input.
  2. Arcade Button (green)

    • Pins: no name yet
    • Description: Green arcade button used for player input.
  3. Arcade Button (white)

    • Pins: no name yet
    • Description: White arcade button used for player input.
  4. Arcade Button (red)

    • Pins: no name yet
    • Description: Red arcade button used for player input.
  5. Arcade Button (blue)

    • Pins: no name yet
    • Description: Blue arcade button used for player input.
  6. Rocker Switch

    • Pins: output, input
    • Description: Rocker switch used to control the power supply.
  7. Loudspeaker

    • Pins: pin1, pin2
    • Description: Loudspeaker used to play audio from the DFPlayer module.
  8. 2.1mm Barrel Jack with Terminal Block

    • Pins: POS, NEG
    • Description: Barrel jack used to connect the 12V power supply.
  9. 16X2 LCD

    • Pins: VSS, VDD, V0, RS, RW, E, D1, D0, D2, D3, D4, D6, D5, D7, A, K
    • Description: LCD used to display the winner's name.
  10. 12V Power Supply

    • Pins: +, -
    • Description: Power supply providing 12V to the circuit.
  11. DFPlayer MINI

    • Pins: VCC, BUSY, RX, USB -, TX, USB +, DAC_R, K2/ADC_KEY, DAC_L, K1/ADC_KEY, SPK1, IO 2, GND, SPK2, IO 1
    • Description: Audio module used to play audio files.
  12. Step Down Buck Converter

    • Pins: IN +, IN - GND, OUT +, OUT - GND
    • Description: Buck converter used to step down 12V to 5V.
  13. Arduino Mega 2560

    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, D21/SCL, D20/SDA, D19/RX1, D18/TX1, D17 PWM/RX2, D16 PWM/TX2, D15/RX3, D14/TX3, D0 RX0, D1 TX0, D2 PWM, D3 PWM, D4 PWM, D5 PWM, D6 PWM, D7 PWM, D8 PWM, D9 PWM, D10 PWM, D11 PWM, D12 PWM, D13 PWM, AREF, SDA, SCL, D52, D50, D48, D46, D44, D42, D40, D38, D36, D34, D32, D30, D28, D26, D24, D22, D53, D51, D49, D47, D45, D43, D41, D39, D37, D35, D33, D31, D29, D27, D25, D23
    • Description: Microcontroller used to control the circuit.
  14. LCM1602 IIC

    • Pins: GND, VCC, SDA, SCL, D6, D7, A, K, VSS, VDD, V0, RS, D2, D3, D4, D5, RW, E, D0, D1, LED_A, LED_B
    • Description: I2C interface for the 16X2 LCD.
  15. Resistor

    • Pins: pin1, pin2
    • Description: Resistor used to limit current.
    • Properties: Resistance: 1000 Ohms

Wiring Details

RGB LED (Wokwi compatible)

RGB LED (Wokwi compatible)

RGB LED (Wokwi compatible)

RGB LED (Wokwi compatible)

Arcade Button (green)

Arcade Button (white)

Arcade Button (red)

Arcade Button (blue)

Rocker Switch

Loudspeaker

2.1mm Barrel Jack with Terminal Block

16X2 LCD

12V Power Supply

DFPlayer MINI

Step Down Buck Converter