Unoardusim Exercises: Department of Engineering
Unoardusim Exercises: Department of Engineering
Q1. Write a program to calculate the hypotenuse of a right angle triangle. Use Serial Monitor
to perform the input and output.
Q2. Eight leds are connected to a Arduino Uno board. They are labelled 1-8. Write a program
to turn on the odd number leds for 2 seconds, then the even number leds for two seconds.
Q3. Add a switch to the circuit in Q2, such that when switch can select red or yellow leds to
turn on.
Q4. Referring to the circuit in Q2, using Serial input to select red or yellow leds to turn on.
DEPARTMENT OF ENGINEERING