Pico-Wordle
Wordle game build with Pico and programed in Rust
Author: Iudenco Ianos
GitHub Project Link: https://github.com/UPB-PMRust-Students/proiect-iragut
Description
Pico-Wordle is a simple word guessing game inspired by the popular game Wordle. The game is designed to be played on a Pico device, and it is implemented in Rust. The objective of the game is to guess a secret word within a limited number of attempts. The brain is the Raspberry Pi Pico 2W, the word apear to 1602LCD with I2C Interface display, the feedback is given by MAX7219LED 8x8 Matrix Module and the input is given by the PC keyboard via wi-fi. Words history is displayed on a second 1602LCD up to 5 words.
Motivation
I like to play logics games, so I decided to create a simple game who can easly kill some time.
Arhitecture
Raspberry Pi Pico 2W
- Conect all componets
1602LCD with I2C Interface
- Interface: I2C0
- Pin connections SDA(GP20), SCL(GP21)
- Display the word
Second 1602LCD with I2C Interface
- Interface: I2C1
- Pin connections SDA(GP14), SCL(GP15)
- Display used words
MAX7219LED 8x8 Matrix Module
- Interface: SPI
- Pin connections: DIN(GP19), CS(GP5), CLK(GP18), VBUS(VCC)
- Display the feedback
Log
- 21 - 27 april: Finish documentation
- 28 - 04 april - may: Finish hardware and update documentation
- 05 - 11 may: Start coding the game and functionality
- 12 - 18 may: Finish coding and add history of the words
Hardware
Using the Raspberry Pi Pico 2W, it will communicate with other components so when, someone give a input by keyboard(Wi-fi), the letter will be displayed on the LCD and after all 5 letters appear on the LCD, the player can press the Enter key to send the word. On the Matrix LED, the player will see the feedback of the word and the word will be visible on the second display.
Schematic
Bill of Materials
Device | Usage | Price |
---|---|---|
MAX7219 LED Dot Matrix Module | LED Display | 17.49 lei |
2.54 mm Pitch 40P Pin Header - Yellow | Connector | 2.56 lei |
2.54 mm Pitch 40P Pin Header - Green | Connector | 2.56 lei |
Micro USB Blue Cable 50 cm | USB Cable | 3.03 lei |
Raspberry Pi Pico 2W | Microcontroller | 39.66 lei |
Breadboard Kit HQ 830 P | Breadboard | 22.00 lei |
1602 LCD with I2C Interface and Blue Backlight | LCD Display | 2x 16.34 lei |
Software
Library | Description | Usage |
---|---|---|
lcd1602-driver | Display driver | Display driver for lcd1602 using I2C interface |
embassy-rs | Embeded framework | Libary what give me the tools to operate |
embassy-net | Driver for wi-fi | Library using to operate via wi-fi |
rand | Random crate | Tools to make random select on words |