Prateek Kumar
Published

Getting started with arduino

Getting started with Arduino

BeginnerProtip340
Getting started with arduino

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LED (generic)
LED (generic)
×1
Resistor 221 ohm
Resistor 221 ohm
×1

Software apps and online services

https://www.arduino.cc/en/main/software
Download and install this software

Story

Read more

Schematics

Schematic

Code

Blinking LED

C/C++
Just COPY and PASTE it in arduino IDE
int ledPin = 13; //Connecting led's +ve pin to pin 13 of Arduino board

void setup() //Setting up once
{
  pinMode(ledPin, OUTPUT); //Defining LED as an OUTPUT object
} 

void loop() //To run this code forever
{
  digitalWrite(ledPin, HIGH);  //Turning the LED ON
  delay(1000);                //Turning the LED ON for 1 sec
  digitalWrite(ledPin, LOW); //Turning the LED OFF
  delay(1000);              //Turning the LED OFF for 1 sec
} 

Credits

Prateek Kumar
1 project • 0 followers

Comments