Question: A push-button and an analog temperature sensor (LM35) are attached to pin-2 and pin-A0 of an Arduino Uno, respectively. Moreover, an RGB led is interfaced

A push-button and an analog temperature sensor (LM35) are attached to pin-2 and pin-A0 of an Arduino Uno, respectively. Moreover, an RGB led is interfaced with the pins of 13-12-11. Arduino Uno continuously reads analog temperature values and displays them on the serial monitor. When the button is released which is considered as external interrupt excitation, an interrupt subroutine, RGB_blink(), is executed. RGB_blink() includes blinking sequence of the RGB LED; 300ms on and off of RED, GREEN and BLUE colors. Write down the corresponding code; int TEMP_SEN = A0; int RED = 13; int GREEN = 11; int BLUE = 12; int BUTTON = 2; int SEN_VAL = 0; int T_DEL = 300; // time delay in ms

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!