0% found this document useful (0 votes)
53 views

Task: Timer and Interrupt Application With Arduino Board

This document provides instructions for an Arduino task involving timers and interrupts. The objective is to use the Arduino UNO's timer and interrupt features to toggle an LED at 2 Hz and detect input from two switches to control two LEDs. Students are asked to write code with comments to interface the Arduino with LEDs, resistors, and push buttons, then draw a conclusion discussing observations of the timer and interrupt features and listing two mechatronics applications that could use these features.

Uploaded by

Shawn Sagar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Task: Timer and Interrupt Application With Arduino Board

This document provides instructions for an Arduino task involving timers and interrupts. The objective is to use the Arduino UNO's timer and interrupt features to toggle an LED at 2 Hz and detect input from two switches to control two LEDs. Students are asked to write code with comments to interface the Arduino with LEDs, resistors, and push buttons, then draw a conclusion discussing observations of the timer and interrupt features and listing two mechatronics applications that could use these features.

Uploaded by

Shawn Sagar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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