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

 Given the device in Figure Q4 (both design and C++ sketch

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

are given), describe the following: 1 Design of the circuit 2 Sketch

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 = baselinetemp. 20 65 celsius = baselinetemo - 30) digitalWrite(2, HIGE); digitalWrite(3, HIGH); digitalWrite(4, HIGH); delay(1000)

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!