Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

The University of the South Pacific (USP)

School of Engineering & Physics


Faculty of Science & Technology
Electrical & Electronics Engineering Discipline

EE363: Mechatronics

Task: Timer and Interrupt application with Arduino board


OBJECTIVE:

1. Understand Arduino UNO Timer and Interrupt features


2. Write a program in Arduino IDE to toggle LED state with
frequency of 2 Hz. The LED is toggled in the interrupt service
routine. Use Timer1.
3. Write a program to detect two switches operation and display
output with LED respectively. Assuming the LED0 is OFF, press
SW0 and the LED0 will come ON, release nothing happens.
Press again and the LED0 is OFF. Same operation performs
with SW1 and LED1.
MATERIALS REQUIRED

Arduino Mega / UNO board

LEDs #2

10K or 4.7K Resistor #2

Connecting wires

Push-button switch #2

Bread baord

Arduino MEGA:

Notes: Give the interfacing circuit with code with comments in the report. Draw
conclusion as below with observation.

CONCLUSION:
Lab Manual

EE363Lab/UVM

1. Write your observation on timer and interrupt


features.
2. List two applications in Mechatronics that can be
developed using above features.

Lab Manual

EE363Lab/UVM

You might also like