
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 အစုံလိုအပ်သော ကိရိယာများ:
Arduino IDE ပါ ကွန်ပျူတာHardware 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!
ဤအဆင့်အတွက် ကုန်ကြမ်းများ:
နှိပ်ခလုတ်4 ခု
ပီအီဇိုမြည်သံပေးကိရိယာ1 ခု
ဘရက်ဘုတ်1 ခု
ဆက်သွယ်ဝါယာ12 ခုArduino Code
Arduino Code
Open the Arduino IDE and upload the following sketch to your Arduino board.
ဤအဆင့်အတွက် ကုန်ကြမ်းများ:
Arduino Uno R31 ခုလိုအပ်သော ကိရိယာများ:
Arduino IDE ပါ ကွန်ပျူတာTest & 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 အစုံ$106.79
- နေရာယူပစ္စည်း
- နေရာယူပစ္စည်း
- နေရာယူပစ္စည်း
- နေရာယူပစ္စည်း
- နေရာယူပစ္စည်း
- နေရာယူပစ္စည်း
- နေရာယူပစ္စည်း
လိုအပ်သော ကိရိယာများ
1- နေရာယူပစ္စည်း
CC0 အများပိုင်
ဤအစီအစဉ်ကို CC0 အောက်တွင် ထုတ်ဝေထားသည်။ ခွင့်ပြုချက်မလိုဘဲ ကူးယူ၊ ပြင်ဆင်၊ ဖြန့်ဝေ နှင့် အသုံးပြုနိုင်သည်။
အစီအစဉ်မှတစ်ဆင့် ကုန်ပစ္စည်းများဝယ်ယူ၍ လက်မှုပညာရှင်ကို ပံ့ပိုးပါ လက်မှုပညာရှင် ကော်မရှင် ရောင်းချသူက သတ်မှတ်သည်၊ သို့မဟုတ် ဤအစီအစဉ်၏ ဗားရှင်းအသစ်ဖန်တီး၍ ဝင်ငွေခွဲဝေရန် သင့်အစီအစဉ်တွင် ချိတ်ဆက်မှုအဖြစ် ထည့်သွင်းပါ။