INSTRUCTION: Answer all questions. a) Create a circuit on Proteus that consists of: i. 1 x Arduino UNO ii. 1 x red LED i
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
INSTRUCTION: Answer all questions. a) Create a circuit on Proteus that consists of: i. 1 x Arduino UNO ii. 1 x red LED i
questions. a) Create a circuit on Proteus that consists of: i. 1 x Arduino UNO ii. 1 x red LED iii. 1 x green LED iv. 2 x resistors v. 1 x logic toggle vi. Virtual terminal Connect all components together. You may use any pin that is suitable. b) Refer to your circuit on a), write an Arduino program on Arduino IDE that will continuously do the following requirement: i. Inside the loop function, continuously read the value of logic toggle. If the value of logic toggle is 0, execute Kuasa Dua function. If the value of logic toggle is 1, execute Puncakuasa function. ii. Inside the KuasaDua function, turn on only red LED, and display the square of a number from 1 to 10 on virtual terminal (use for statement). iii. Inside the Puncakuasa function, turn on only green, and display the square root of a number from 1 to 10 on virtual terminal (use while statement). Submit both answers of a) and b) through VLE.
INSTRUCTION: Answer all