Wemos D1 - Minigame Console

In this project we will use a Wemos D1 Mini to create a tiny Minigame-console.

Nov 30, 2021

2144 views

0 respects

Components and supplies

1

Inertial Measurement Unit (IMU) (6 deg of freedom)

1

Wemos D1 Mini

1

OLED 0.66 Shield

1

Battery Shield

Project description

Code

Wemos Minigame

arduino

Here is the code that you can upload to the Wemos D1 mini. You need to install the libraries "Adafruit_GFX" and "Adafruit_SSD1306". I programmed four minigames and also added a function for charging (so that the screen is not on while charging). You can switch between the games by tilting the console far left/right. The brightness is also slightly adjustable by tilting the device forwards/backwards.

Wemos Minigame

arduino

Here is the code that you can upload to the Wemos D1 mini. You need to install the libraries "Adafruit_GFX" and "Adafruit_SSD1306". I programmed four minigames and also added a function for charging (so that the screen is not on while charging). You can switch between the games by tilting the console far left/right. The brightness is also slightly adjustable by tilting the device forwards/backwards.

Downloadable files

Schematics

The only thing to solder is the gyroscope. You have to make the connections as shown in the picture. You may also want to add a switch between the battery and the battery-module, because if you solder the battery to the module there would be no way to turn the device off. After you soldered the gyro to the battery-module the three modules (Wemos D1 mini, Battery Shield, OLED Display) can be stacked together with some header pins.

Schematics

Image

Comments

Only logged in users can leave comments

galoebn

0 Followers

0 Projects

0