Question: Given the device in Figure Q4 (both design and C++ sketch are given), describe the following: 1 Design of the circuit 2 Sketch of the
Given the device in Figure Q4 (both design and C++ sketch are given), describe the following: 1 Design of the circuit 2 Sketch of the circuit 3 Purpose of the device

Figure Q4
Given the device in Figure (both design and C++ sketch are given), describe the following: Design of the circuit Sketch of the circuit Purpose of the device

TMP 10 ... ... 12 ... O con DIGITAL (PWM-) O UNO TX TON RX ARDUINO POWER ANALOG IN ! 1 int baselineTemp = 0; 2 int celsius = 0; 3 int fahrenheit = 0; 4 void setup() 5 { 6 pinMode (AO, INPUT); 7 pinMode (2, OUTPUT); 8 pinMode (3, OUTPUT); 9 pinMode(4, OUTPUT); 10 ) 11 void loop() 12 { 13 baselineTemp = 40; 14 celsius = map(((analogRead(AO) - 20) - 3.04), 0, 1023, -40, 125); 15 fahrenheit = ((celsius - 9) / 5 + 32); 16 if (celsius = baseline Temp && celsius = baselineTemp + 10 && celsius = baselineTemp + 20 && celsius = baseline Temp + 30) { 29 digitalWrite (2, HIGH); digitalWrite(3, HIGH); digitalWrite(4, HIGH); 30 } 31 delay(1000); 32 } TMP int baselineZemp = 0; 2 int celsius = 0; 3int Fahrenheit = 0; void setup() 5 pinMode(AO, INPUT); pinMode(2, OUTPUT); pinkode (3, OUTPUT); pinMode(4, OUTPUT); 10) 11 void loop() 12 13 baseline temp = 40; 14 celsius = map((analogRead(AD) - 20). 3.04), 0, 1023, -40, 125); 15 fahrenheit = ((celsius. 9)/5 + 32); if (celsug = baselineZempos celsius = baseline Temp + 10 5 celsius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
