Welcome! You're about to set up your own muscle-powered Dino Game. Follow these steps in order, and don't skip any — each one builds on the last. If something doesn't look right, check the "Uh oh, help!" boxes along the way.
- A Windows computer
- Your Arduino UNO board
- A USB cable to connect it
- Your MyoWare EMG sensor
Git is a tool that lets you download ("clone") a copy of the project's code onto your computer.
- Go to https://git-scm.com/downloads/win
- Click "Click here to download" to get the 64-bit Windows installer.
- Double-click the downloaded file to run it.
- Click Next through the setup screens — the default options are fine for this project. Click Install when you reach that screen.
- Click Finish when it's done.
- Press the Windows key, type
cmd, and press Enter to open the Command Prompt. - Navigate to where you want the project saved, for example your Desktop:
cd Desktop - Type the following, replacing the URL with your project's actual repo link, and press Enter:
git clone https://github.com/mun-medtech/Arduino-Pulse.git
- This creates a new folder containing all the project files, including
read.ino,requirements.txt, and theguifolder. - Move into the new folder:
cd Arduino-Pulse
- "'git' is not recognized": Close and reopen the Command Prompt (Git needs a fresh window after installing to update PATH). If it still doesn't work, re-run the Git installer.
- I don't have a repo link: Ask your teacher or whoever shared this project with you for the GitHub link.
The Arduino IDE is the program that lets your computer "talk" to your Arduino board.
- Open a web browser and go to https://www.arduino.cc/en/software
- Find the Arduino IDE 2.x section.
- Click "Windows Win 10 and newer, 64 bits".
- On the next page, click "JUST DOWNLOAD" (no need to donate).
- Go to your Downloads folder and double-click the file you just downloaded (it ends in
.exe). - If a window pops up asking for permission, click Yes.
- Click I Agree on the license page.
- Choose "Just for me" (unless a teacher tells you otherwise), then click Next.
- Leave the install location as-is, and click Install.
- Windows may ask if it's okay to install a "driver" from Arduino — always click Install on these. This is what lets your computer recognize the board.
- When it's done, leave "Run Arduino IDE" checked and click Finish.
- If a firewall message pops up, click Allow access.
🔌 Wiring reminder: Your MyoWare EMG sensor connects to the Arduino UNO like this:
MyoWare Sensor Pin Arduino UNO Pin + / VCC 3.3V – / GND GND Signal (SIG) A0
- Nothing happens when I double-click the installer: Right-click it and choose "Run as administrator."
- I don't see a driver prompt: That's okay — some versions install drivers automatically.
Now let's load the code that reads your muscle sensor onto the board.
- Open the Arduino IDE (if it's not already open).
- Click File → Open...
- Navigate to your project folder (the one you cloned in Part 1) and select
read.ino. Click Open. - Plug your Arduino UNO into the computer with the USB cable. (Make sure it's a real data cable — some USB cables only charge and can't send data!)
- At the top of the Arduino IDE, click the board/port dropdown and select:
- Board: Arduino UNO
- Port: the one that says something like COM3 (Arduino UNO) — the exact number may differ.
- Click the Upload button (the right-facing arrow icon, top-left).
- Watch the bottom of the window. You'll see a compiling message first, then wait for "Done uploading."
- To double-check it worked, open Tools → Serial Monitor (set the dropdown in the bottom-right to 9600 baud). You should see a stream of numbers. Try flexing the muscle the sensor is attached to — the numbers should jump up when you flex and settle back down when you relax.
If you're not sure which COM port your Arduino is using — or want to double check it matches what you selected in the Arduino IDE — you can find it from the Command Prompt (this only works once Python is installed; see Part 4 below):
python -c "import serial.tools.list_ports; [print(p) for p in serial.tools.list_ports.comports()]"This prints every serial device your computer can see, something like:
COM3 - USB-SERIAL CH340 (COM3)
The COM3 part is the port number you'll need — it should match the port you selected in the Arduino IDE, and it's what the game will connect to when you run it later.
- I don't see any COM port: Unplug and replug the USB cable. Try a different USB port.
- "Upload error," "Failed to open port," or "Access is denied": This means something else is already using that port. Close any open Serial Monitor windows and stop any Python scripts that might be running, then try uploading again. If it still won't work, unplug and replug the Arduino and try once more.
- Nothing in the port dropdown looks right: Ask a teacher or adult to check Device Manager for a "USB Serial Device."
- The numbers in Serial Monitor don't change when I flex: Check that all three wires (VCC, GND, Signal) are firmly connected, and that the sensor's electrode pads are pressed against skin, not clothing.
Python is the language that runs the Dino Game itself.
⚠️ Important: Install Python 3.12 specifically, not the newest version. Some of the game's tools don't have ready-to-go installers for the very latest Python yet, which can cause confusing errors. Python 3.12 is fully supported and works great.
- Go to https://www.python.org/downloads/release/python-3120/ (or the newest 3.12.x version listed there).
- Scroll down to Files and click Windows installer (64-bit).
- Open the downloaded file.
⚠️ Very important: At the bottom of the first screen, check the box that says "Add python.exe to PATH." If you miss this, nothing else will work!- Click Install Now.
- If you see an option to "Disable path length limit" at the end, click it, then click Close.
- Press the Windows key, type
cmd, and press Enter. - Type this and press Enter:
You should see something like
python --version
Python 3.12.x. - Type this and press Enter:
You should see a version number too.
pip --version
- It says "'python' is not recognized": You probably missed the PATH checkbox during install. Re-run the Python installer, choose Modify, and make sure "Add Python to environment variables" is checked.
- It shows a much newer version, like 3.13 or 3.14: You may have an older Python already installed. That's usually fine to leave alone — just make sure you use
py -3.12instead ofpythonin the next steps ifpython --versiondoesn't show 3.12.
"Dependencies" are extra tools the game needs to run (for talking to the Arduino and drawing graphics).
- In the Command Prompt, navigate to your project folder (the one you cloned in Part 1):
cd Desktop\Arduino-Pulse - Type this and press Enter:
pip install -r requirements.txt
- Wait for it to finish. You'll see a list of packages being installed.
- "No such file or directory": Make sure you're in the right folder. Type
dirto see the files there — you should seerequirements.txtlisted. - Errors mentioning "building a wheel" or a missing compiler: This usually means Python installed isn't 3.12. Double check with
python --versionand revisit Part 4 if needed.
- Make sure your Arduino is still plugged in and
read.inohas already been uploaded (Part 3). - Close the Arduino IDE's Serial Monitor if you left it open — the game needs the port to itself.
- In the same Command Prompt window, type:
python gui/dino_game.py
- The Dino Game window should pop up! 🎉
⚠️ Before you play: Make sure the game connects at a baud rate of 9600 (same as the sensor). If it asks you to pick a COM port, choose the same one you found using the command in Part 3 (or the one you selected in the Arduino IDE).
- The game says it can't find the serial port: Double check the Arduino is plugged in and that
read.inowas successfully uploaded (Part 3), and that no other program (like Serial Monitor) is holding the port open. - The game opens but nothing happens when I move: Make sure the MyoWare sensor is wired correctly and the electrode pads are touching skin properly, not clothing.
Once the window pops up and your muscle sensor is connected, jump the dino by flexing your muscle. Have fun!