Introduction: Simple Interrupts Practice

Picture of Simple Interrupts Practice

You will need:

-Arduino UNO

-Breadboard

-Four LEDs

-4 220 ohm resistors

-1 2.2k ohm resistor

-jumper wires

Step 1: Add a Button

Picture of Add a Button

Connect the button by adding a resistor to ground and connecting the button to power.

Step 2: Add Four LEDs

Picture of Add Four LEDs

(Or as many LEDs as you would like.)

Attach the LEDs to the breadboard.

Connect 220 ohm resistors to the positive ends of the LEDs (the long ends).

Step 3: Connect the LEDs to the Arduino

Picture of Connect the LEDs to the Arduino

Connect the shorter ends of the LEDs to ground. Connect the resistors to pins on the Arduino (I used pins 13-10).

Step 4: Finish Connections + Add Code

Picture of Finish Connections + Add Code

Connect the power rail to 5v and the ground rail to the GND pin on the Arduino.

-Connect the button to pin 2 on the Arduino.

Add your code to the Arduino IDE.

Comments

About This Instructable

106views

3favorites

License:

More by lfmikel:Simple Interrupts PracticeLCD Screen With 74HC595 and Keypad ModuleCommunicating With Two Arduinos
Add instructable to: