Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. MySensors-powered arcade game screen with wireless gamepad controller

MySensors-powered arcade game screen with wireless gamepad controller

Scheduled Pinned Locked Moved My Project
esp8266
10 Posts 6 Posters 6.7k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by mfalkvidd
    #1

    OK, I realize that I am abusing the MySensors library a bit here :-)

    I have built a 9x16 pixel, 22" led screen after my last failure. The screen was inspired by this instructable.

    I have also built a wireless gamepad controller:
    0_1481918125040_DSC02831.jpg
    I wanted a barebone look, so I decided to build it directly on a 5x7cm prototype board. On the back is a 2xAA battery holder that is glued to the board. Raw and simple :)

    The gamepad uses a nrf24l01+ and a 3.3V Arduino Pro Mini. When powered up, it presents 6 switches to the "gateway", using MySensors.

    The "gateway" is a Wemos D1 Mini connected to the big screen seen below:
    0_1481919082873_DSC09768.jpg
    I merged the standard MySensors serial gateway sketch with a sketch for playing Tetris, and modified the game to read the status of the switches instead of using locally attached buttons.

    I am using the development branch of MySensors since v2.0 doesn't call receive() on the gateway.

    All kudos for the game should go to Aaron Liddiment, https://github.com/AaronLiddiment/LEDSprites - I did not write the game myself.

    Here is the result:
    https://youtu.be/Mq9ad47P9cI

    The wemos + screen draws less than 1 ampere, so a USB power pack can power it for hours. That means the game is portable and can be used anywhere. It would be fun to play it on the bus/train :sunglasses:
    Some thoughts for future development:

    • Add signing and see if that has a negative impact on the gaming experience. I don't want anyone sending fake button presses!
    • Figure out how to handle the screen flickering that happens sometimes. There is a very long thread about this on github: https://github.com/FastLED/FastLED/issues/306
    • Add more games. Snake, Pong, Sokoban, Breakout - ideas are very welcome :ear:
    • Build one more wireless controller for multiplayer games
    • Add the ability to use the screen as mood light when not playing.
    • Add the ability to show weather when not playing a game (temperature as text, yellow background when sunny, blue/gray "falling" background when raining, etc)
    • Use fadecandy
    • Spectrum analyzer
    1 Reply Last reply
    12
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      The "gateway" code is available on Github: https://github.com/mfalkvidd/MySensors-ArcadeGames
      The gamepad controller: https://github.com/mfalkvidd/MySensorsGamePad

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        Damn.. impressive build!

        1 Reply Last reply
        1
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #4

          @mfalkvidd

          Only one word can express this "IMPRESSIVE"!!

          Well done indeed..

          1 Reply Last reply
          1
          • scalzS Offline
            scalzS Offline
            scalz
            Hardware Contributor
            wrote on last edited by scalz
            #5

            @mfalkvidd
            pow pow pow :) excellent, that's really cool work! thx for share :+1:

            1 Reply Last reply
            1
            • mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              A friend developed a snake game for this screen:
              https://youtu.be/mhT-o-c3-_k

              1 Reply Last reply
              1
              • mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by mfalkvidd
                #7

                Update: I have updated the game code to include both Tetris and Snake. Press the the two extra buttons (the ones that would be called A+B on a classic 8-bit Nintendo controller) at the same time to switch between the games.

                1 Reply Last reply
                3
                • mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #8

                  New update: The game code now includes mood light, natural light and fire simulation modes.

                  Mood light can cycle through all colors of the rainbow and set brightness. Cycle colors by pressing left or right on the game pad. Set brightness by pressing up or down.

                  Natural light can adjust brightness (up/down). Left/right cycles between following color temperature:

                  • Candle 1900 K
                  • Tungsten 2850 K
                  • Halogen 3200 K
                  • Direct Sunlight 6000 K
                  • Clear Blue Sky 20000 K

                  Fire simulation can adjust heat level (left decreases, right increases) and cooling factor (up makes the fire cool off slower, down makes i cool off faster). The fire code is based on Darren P Meyer's project at https://github.com/darrenpmeyer/Arduino-FireBoard/

                  1 Reply Last reply
                  2
                  • R Offline
                    R Offline
                    r-nox
                    wrote on last edited by
                    #9

                    Great work. I'm going to build this for my back yard!

                    1 Reply Last reply
                    1
                    • alowhumA Offline
                      alowhumA Offline
                      alowhum
                      Plugin Developer
                      wrote on last edited by
                      #10

                      WOW!!! What a cool project!

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      17

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular