You’ve got your board — now let’s make it do something. In ten minutes you’ll install the software and blink an LED, the “hello world” of electronics.
Step 1 β Install the Arduino IDE
Go to arduino.cc/en/software and download the Arduino IDE for your operating system (Windows, Mac or Linux). Install it like any other program. It’s free and official.
Step 2 β Install the CH340 driver (most Pakistani boards)
Most affordable Uno and Nano boards sold here use a CH340 USB chip. Windows often doesn’t recognise it until you install the free CH340 driver — search “CH340 driver”, install it once, and restart. If your board appears as a COM port straight away, you can skip this.
Step 3 β Connect the board
Plug your board into the computer with the USB cable. A small power LED on the board should light up.
Step 4 β Select Board and Port
- Tools β Board β choose “Arduino Uno” (or Nano).
- Tools β Port β choose the COM port that appeared (e.g. COM3). If none shows, revisit the driver step.
Step 5 β Upload your first program
Open File β Examples β 01.Basics β Blink. This is the code — it turns the on-board LED on and off every second:
void setup() {
pinMode(13, OUTPUT); // pin 13 has an LED on the board
}
void loop() {
digitalWrite(13, HIGH); // LED on
delay(1000); // wait 1 second
digitalWrite(13, LOW); // LED off
delay(1000); // wait 1 second
}Click the Upload button (the right-arrow). After a few seconds you’ll see “Done uploading” and the LED on the board will start blinking. Congratulations — you just programmed a microcontroller.
Understanding the code
setup() runs once and prepares the board — here it sets pin 13 as an output. loop() then runs forever: turn the LED on, wait a second, off, wait a second. Change 1000 to 200, upload again, and watch it blink faster. That edit-upload cycle is how you’ll build everything.
Troubleshooting
| Problem | Fix |
|---|---|
| No COM port | Install the CH340 driver, try another USB cable |
| ‘Port busy’ / upload fails | Close the Serial Monitor, re-select the port |
| Uploads but LED doesn’t blink | Wrong board selected, or a data-less charging cable |
A surprising number of “dead board” problems are actually a charge-only USB cable with no data wires. Use a proper data cable.
Frequently asked questions
Is the Arduino IDE free?
Yes, completely free and official from arduino.cc.
Which cable do I need?
The Uno uses a USB-B cable; the Nano a mini-USB or USB-C. It must be a data cable, not charge-only.
Can I program without internet?
Yes — once the IDE and driver are installed, everything works offline.
Related guides
Get your board
Everything here is in stock at Smart Home | Arduino Corner — Shaheen Market, DAV College Road, Rawalpindi — with same-day delivery in the twin cities and cash on delivery across Pakistan. Grab the Arduino Uno (data cable included) or the Starter Kit, or browse all Arduino boards.