Arduino Blink


Posted on Feb 4, 2014

To build the circuit, attach a 220-ohm resistor to pin 13. Then attach the long leg of an LED (the positive leg, called the anode) to the resistor. Attach the short leg (the negative leg, called the cathode) to ground. Then plug your Arduino board into your computer, start the Arduino program, and enter the code below. Most Arduino boards already


Arduino Blink
Click here to download the full size of the above Circuit.

have an LED attached to pin 13 on the board itself. If you run this example with no hardware attached, you should see that LED blink. That takes pin 13 back to 0 volts, and turns the LED off. In between the on and the off, you want enough time for a person to see the change, so the delay() commands tell the Arduino to do nothing for 1000 milliseconds, or one second. When you use the delay() command, nothing else happens for that amount of time. Once you`ve understood the basic examples, check out the BlinkWithoutDelay example to learn how to create a delay while doing other things.




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    8 LED`s Audio VU Meter
    Guitar Reverb II
    Adaptor for the Dreamcast serial port
    Bat detector frequency counter
    active medium wave antenna
    1W Long Range FM Transmitter
    Mathematical approch to measuring current voltage and resistance of mixed series and parallel
    make 6v 4ah automatic battery charger
    Class A amp circuit
    Metal detector circuit diagram 5
    XR400
    Voice music outlet circuit diagram SK- made
    FGDF-3 three-phase low-temperature iron plating power supply circuit



    Top