Made a handheld game console that runs OG SPACE TRASH GAME using an XIAO expansion board.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
SpaceTrash.inoino - 36.73 kB - 03/02/2024 at 17:33 |
|
|
pinpinpin4.jpgJPEG Image - 1.74 MB - 03/02/2024 at 17:33 |
|
|
GAME CONSOLE v5.f3dfusion - 1010.10 kB - 03/02/2024 at 17:33 |
|
|
body.3mf3mf - 41.20 kB - 03/02/2024 at 17:33 |
|
An XIAO ESP32C3 microcontroller and an XIAO extension board manufactured by Seeed Studio comprised the heart of this project.
It comes with rich peripherals that include an OLED, RTC, SD Card Sot, passive buzzer, reset/user button, 5V servo connector, and Grove connector for pairing multiple Grove devices with XIAO.
We can power the entire setup using any Li-ion or LiPo cell thanks to its integrated Li-ion charging circuit.
If you would like to get one for yourself, here is the link to its page.
https://www.seeedstudio.com/Seeeduino-XIAO-Expansion-board-p-4746.html
The battery input section and the SSD1306 OLED were the two major elements we used in the expansion board.
The OLED screen is connected to the XIAO's i2c pins, allowing us to control it directly without requiring additional connections.
the Adafruit's SSD1306 library can be used with the OLED screen, but you can also use the u8g2 library.
As for the microcontroller, we are using the XIAO ESP32C3, which is a IoT mini-development board based on the Espressif ESP32C3 WiFi/Bluetooth dual-mode chip. ESP32-C3 is a 32-bit RISC-V CPU, which includes an FPU (Floating Point Unit) for 32-bit single-precision arithmetic with powerful computing power.
This board comes with an external antenna to increase the signal strength for wireless applications. It also has a small and exquisite form-factor combined with a single-sided surface-mountable design.
It is equipped with rich interfaces and has 11 digital I/O that can be used as PWM pins and 4 analog I/O that can be used as ADC pins. It supports four serial interfaces, such as UART, I2C and SPI. There is also a small reset button and a bootloader mode button on the board.
You can check out Seeed Studio's brief product introduction for the expansion board and XIAO ESP32C3, which includes a ton of information, by clicking the link below.
https://wiki.seeedstudio.com/Seeeduino-XIAO-Expansion-Board/
https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/
Visit Seeed Studio to get a wide range of services, including 3D printing, PCB/PCBA, and microcontroller/module services.
Setting up a basic breadboard version of the project, which consists of three push buttons connected to one 1K resistor each between VCC and GND, is the first phase or level. When the button is pressed, a value is obtained at the GPIO Pins, which is read by the XIAO MCU and triggers it to execute the XYZ set in the code. The middle pin between the resistor and switch is linked to the GPIO of the XIAO MCU.
Follow the added wiring diagram for this setup.
We added the main code to the XIAO EXP32C3 board and tested the system.
D0 is for fire, D1 is for the up button, and D2 is for the down button.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates