- Created pitches.h to define musical note frequencies. - Implemented Simon Game in simon-with-score.ino, featuring LED indicators, button inputs, and score display using a 74HC595 shift register. - Added game logic for sequence playback, user input validation, and game over conditions. - Included README.md for Simon Game instructions and hardware setup. - Added Wokwi project files for simulation of Simon Game. - Introduced Pong game with basic mechanics, including paddle movement and scoring, in pong.ino. - Included Wokwi project files for simulation of Pong game. |
||
|---|---|---|
| .. | ||
| README.md | ||
| diagram.json | ||
| pitches.h | ||
| simon-with-score.ino | ||
| wokwi-project.txt | ||
README.md
Simon is a simple electronic memory game: the user has to repeat a growing sequence of colors. The sequence is displayed by lighting up the LEDs. Each color also has a corresponding tone.
In each turn, the game will play the sequence, and then wait for the user to repeat the sequence by pressing the buttons according to the color sequence. If the user repeated the sequence correctly, the game will play a "leveling-up" sound, add a new color at the end of the sequence, and move to the next turn.
The game continues until the user has made a mistake. Then a game over sound is played, and the game restarts.
Hardware
| Item | Quantity | Notes |
|---|---|---|
| Arduino Uno R3 | 1 | |
| 5mm LED | 4 | Red, Green, Blue, and Yellow |
| 12mm Push button | 4 | Red, Green, Blue, and Yellow |
| Resistor | 4 | 220Ω |
| Piezo Buzzer | 1 |
Diagram
Pin Connections
| Arduino Pin | Device |
|---|---|
| 12 | Red LED |
| 11 | Green LED |
| 10 | Blue LED |
| 9 | Yellow LED |
| 8 | Buzzer |
| 5 | Red Button |
| 4 | Green Button |
| 3 | Blue Button |
| 2 | Yellow Button |
- The LEDs are connected through a 220Ω resistor each.
