Download it from here:-
Windows
Mac OS
You will get a ‘.zip’ file and extract it somewhere in your pc. No installation is required.
1. Open the application file named Arduino (with blue icon)
2. File >> New ( ctrl + N )
3. Led blinking code
Code: Select all
int led = 13;
void setup() {
pinMode(led, OUTPUT); // initialize the digital pin as an output.
}
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Pin 13 has an LED connected on most Arduino boards, that is why I have choosen pin13 as out pin.
4. Save it as LED_BLINK (as you like)
5. Connect your Arduino board
6. Select the model form Tools >> Board
7. Select the port to which your board is connected from Tools >> Serial Port
8. Upload the code to your Arduino
Now the built-in LED will blink as per the given programme. Or you can connect an LED in pin13 – Gnd.
Arduino can be programmed directly through usb.
Article courtesy of electrosome.com