-
Step 1
Assembly Steps:
- LCD Screen Connection:
- Connect the SDA and SCL pins of the LCD to the corresponding SDA (A4) and SCL (A5) pins on the Arduino.
- Connect VCC and GND pins of the LCD to the 5V and GND pins on the Arduino, respectively.
- SD Card Module Connection:
- Connect the MOSI, MISO, and SCK pins of the SD card module to pins 11, 12, and 13 on the Arduino (for Uno).
- Connect the CS (Chip Select) pin of the SD card module to pin 10 on the Arduino.
- Connect the VCC and GND pins of the SD module to the 5V and GND pins on the Arduino.
- Speaker Connection:
- Connect the positive lead of the speaker to a PWM pin on the Arduino (e.g., pin 9).
- Connect the other lead of the speaker to GND.
- Button Connection:
- Connect one pin of the button to pin 2 on the Arduino.
- Connect the other pin of the button to the GND through a 10kΩ resistor.
- Software Preparation:
- Format the microSD card to FAT16 or FAT32 and load it with audio files (WAV format, 8-bit, mono, 22050 Hz or less).
- Insert the microSD card into the SD card module.
- Arduino Sketch:
- Write and upload the Arduino sketch for your fishing game, ensuring the code correctly initializes and uses the I2C LCD and SD card module.
- Test each component individually (LCD, SD card, button, speaker) to ensure they work before combining them in the game logic.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.