- Press the upload button to upload your Servo program to the Arduino board.
STEM Connections
The upload button translates the code you wrote into a program and sends that program to the Arduino board. Immediately after the Arduino board receives this program it begins running it. Once the Servo is properly connected to the Arduino board, you will see the programs effect on the Servo.
“done compiling” is not the same as “done uploading”
- Be sure to click the “upload” button not the “compile” button.
“expected ‘ ) ‘ before ‘;’ token
- Notice he Arduino software highlights the area where there is a problem.
- You’re missing a parenthesis somewhere, so make sure every parenthesis has its match.
“expected ‘;’ before ‘delay’"
- Notice the Arduino software highlights the area where there is a problem.
- You’re missing a ‘;’ after a line of code. Check that each line has a ‘;’ after it.
“error compiling”
- Try clicking ‘upload’ again
- Double check your code to make sure everything is included from the code demonstrated in the earlier steps.
“problem uploading to board”
- Check the most obvious first, that the Arduino board is connected to the computer with the USB cable.
- Check that the Arduino is connected to the right COM port, then upload again.#
- To check, go to Tools > Port and see if “COM# (Arduino/Genuino Uno)” is next to the word “Port”.it
- If not, select the option mentioned above.
- If no COM# shows “(Arduino/Genuino Uno)” next to it, make sure that your USB cable is connected to both the Arduino board and the USB port of the computer.
3. Try unplugging and re-plugging the USB cable and uploading again
4. Try disconnecting all wires from the Arduino board and uploading again
The Arduino software prompts the save before uploading
- To deactivate this option, go to File > Preferences and uncheck the "save when verifying or uploading" option.
- Sometimes we ask the students to stand up after they see ‘done uploading’ so they can move around a little bit. This is also an opportunity to walk around and help troubleshoot specific problems. Here is a link to a printable version of what we have found to be the most common problems we troubleshoot with regards to code.