
Simon Says — SIK Circuit 16
Зааварчилгаа
Parts & Introduction
Parts & Introduction
The grand finale! Simon Says is a memory game where you repeat an ever-growing sequence of colored lights and sounds. This project combines LEDs, buttons, and a buzzer into a complete game with multiple modes. It's the most complex circuit in the SIK — a great capstone project.
Parts Needed
- 1x Arduino Uno + USB cable
- 1x Breadboard
- 4x LEDs (red, green, blue, yellow if possible)
- 4x Push Buttons
- 1x Piezo Buzzer
- 4x 330Ω Resistors
- 17x Jumper Wires
Game Modes
- Memory Mode (default) — Follow the growing pattern. Win after 13 rounds.
- Battle Mode (hold green at startup) — Two-player mode, each player extends the sequence.
- Easter Egg (hold yellow at startup) — Plays "Stayin' Alive" with flashing LEDs!
Энэ алхмын материал:
SparkFun Inventor's Kit - V3.21 багцШаардлагатай багаж:
Computer with Arduino IDEHardware Hookup
Hardware Hookup
Wiring Instructions
Pin Assignments
| Component | Arduino Pin |
|---|---|
| Red LED | 10 |
| Green LED | 3 |
| Blue LED | 13 |
| Yellow LED | 5 |
| Red Button | 9 |
| Green Button | 2 |
| Blue Button | 12 |
| Yellow Button | 6 |
| Buzzer pin 1 | 4 |
| Buzzer pin 2 | 7 |
- Each LED needs a 330Ω resistor between its negative leg and GND.
- Buttons use
INPUT_PULLUPmode — connect one side to the pin, other side to GND. No external resistors needed. - The buzzer uses two pins for push-pull drive (louder sound).
- Important: Make sure both GND rails on the breadboard are connected together!
Энэ алхмын материал:
Push Button4 ширхэг
Piezo Buzzer1 ширхэг
Breadboard1 ширхэг
Jumper Wires12 ширхэгArduino Code
Arduino Code
Open the Arduino IDE and upload the following sketch to your Arduino board.
Энэ алхмын материал:
Arduino Uno R31 ширхэгШаардлагатай багаж:
Computer with Arduino IDETest & Experiment
Test & Experiment
What You Should See
The game starts with a victory sound, then LEDs cycle in an "attract mode" pattern. Press any button to start playing:
- A random LED lights up with a tone — press the matching button.
- The sequence grows by one each round.
- Win after 13 correct rounds! Lose if you press wrong or take too long (3 seconds).
Troubleshooting
- Only half the circuit works: Make sure both GND rails on the breadboard are connected together!
- No sound: Check that both buzzer pins are in the correct rows.
- Buttons not responding: Pay close attention to which pin connects to each button. The
INPUT_PULLUPmode means buttons read LOW when pressed.
Experiments to Try
- Hold the green button during power-up for Battle Mode (2 players).
- Hold the yellow button during power-up for the Bee Gees easter egg!
- Modify
ROUNDS_TO_WINto make the game easier or harder. - Change
ENTRY_TIME_LIMITto give more or less time per button press.
Материал
8- SparkFun Inventor's Kit - V3.210% комисс1 багц$108.01
- -с эхэлж$1.22
- -с эхэлж$9.69
- -с эхэлж$4.24
- -с эхэлж$27.59
- 1 ширхэгТүр орлуулагч
- 4 ширхэгТүр орлуулагч
Шаардлагатай багаж
1- Түр орлуулагч
CC0 Нийтийн домэйн
Энэ загвар CC0 дор гаргагдсан. Та зөвшөөрөл авахгүйгээр хуулах, өөрчлөх, түгээх, ашиглах боломжтой.
Загвараар дамжуулан бүтээгдэхүүн худалдаж авч Бүтээгчийг дэмжээрэй Бүтээгчийн шимтгэл Борлуулагчаар тогтоосон, эсвэл энэ загварын шинэ хувилбар үүсгэж орлогоо хуваахын тулд өөрийн загварт холбоос болгон оруулна уу.