Builds › Kit Unpacked › KU-02
The Board: your first code
Step 1
Download the Arduino IDE
It's free. Get it from the official site only:
arduino.cc/en/software. Copycat download sites exist.Step 2
Plug in the board
Use the kit's USB cable. The little L light may already be blinking: that's a test program from the factory. On Windows, if the IDE offers to install drivers the first time it opens, say yes.
Step 3
Open Blink and change two numbers
Open the IDE, then File > Examples > 01.Basics > Blink. It's already written for you, and it may open in a new window: do the rest there. Scroll past the grey text at the top to
loop(), and change both1000s to100.Step 4
Pick the board, then Upload
In the board selector at the top, pick Arduino Uno and its port. If it shows as "Unknown," click it and pick Arduino Uno. Not sure which port? Unplug the board, look at the list, then plug it back in: the new one is yours. Click Upload (the arrow). When it says "Done uploading," the light blinks fast. That's your code.
void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); // light on delay(100); // was 1000 digitalWrite(LED_BUILTIN, LOW); // light off delay(100); // was 1000 }
setup() runs once when the board starts. loop() runs forever. 1000 milliseconds is one second. Try 50 in both places, then turn off the lights.
Want to keep your version? File > Save As and name it my_blink. The original Blink is always in File > Examples.
If it doesn't work
No port shows up
Try another USB cable or another USB port. Some cables only charge.
The upload fails
Check that the board says Arduino Uno and that the port is the one that appears when you plug the board in.
I have a Chromebook
Use the free Arduino Cloud Editor (cloud.arduino.cc) instead of downloading the IDE. Its menus look a little different. The free plan allows 25 compiles a day. A school Chromebook may block it; try a home computer.
I only have a phone or an iPad
Those can't program the board. You need a computer.
Engineer mode
That blink is a heartbeat
Engineers program one into factory controllers. If it ever stops, the operator's screen flashes an alarm.