Blinking led using arduino.

NOW IN THIS POST I AM GOING TO DISCUSS ABOUT A BASIC PROGRAM OF BLINKING  A LED USING ARDUINO
                                                




                 We will complete the project in two part hardware part and programming part.

(i)Hardware part;-for the hardware part the things that are needed are
                                    (a)arduino board
                                    (b)breadboard
                                    (c)resistor and led
                                    (d)jumper or connecting cables


so...discussing about breadboard.the points or dots in column on each half side are on the same potential

\Now insert the the two pins of led in two different columns.Connect the 13th pin of arduino with +ve terminal of  arduino.and -ve one with GND pin of arduino.one more thing is to use resistors between arduino and LED's.
                                                         

now here comes the programming part


  1. int led = 13;
  2. // ddefining the pin of arduino connected with led.
  3. void setup() {
  4. // initialize the digital pin as an output.
  5. pinMode(led, OUTPUT);
  6. }
  7. // the loop routine runs over and over again forever:
  8. void loop() {
  9. digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
  10. delay(1000); // wait for a second
  11. digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
  12. delay(1000); // wait for a second
  13. }
  14. So...hope so we have completed our first project.good byee

Comments

Popular posts from this blog

Bascis of Arduino and its description.

Building a Wifi controlled bot using Nodemcu and l293d motor driver ic