Please shows the calculation by referring the coding, theory formula and result of the coding. Coding: Result: formula:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please shows the calculation by referring the coding, theory formula and result of the coding. Coding: Result: formula:

Post by answerhappygod »

Please shows the calculation by referring the coding, theory formula and result of the coding.
Coding:
Please Shows The Calculation By Referring The Coding Theory Formula And Result Of The Coding Coding Result Formula 1
Please Shows The Calculation By Referring The Coding Theory Formula And Result Of The Coding Coding Result Formula 1 (93.66 KiB) Viewed 34 times
Result:
Please Shows The Calculation By Referring The Coding Theory Formula And Result Of The Coding Coding Result Formula 2
Please Shows The Calculation By Referring The Coding Theory Formula And Result Of The Coding Coding Result Formula 2 (18.91 KiB) Viewed 34 times
formula:
Please Shows The Calculation By Referring The Coding Theory Formula And Result Of The Coding Coding Result Formula 3
Please Shows The Calculation By Referring The Coding Theory Formula And Result Of The Coding Coding Result Formula 3 (11.3 KiB) Viewed 34 times
#define LM35 A1 #define RED 8 #define GREEN 7 #define sensorPin Al float lm_value; float tempc; void setup() { Serial.begin(9600); pinMode (RED, OUTPUT); pinMode (GREEN, OUTPUT); } void loop() { 1m_value= analogRead (LM35); tempe= (lm_value* 500) / 1023; Serial.println (tempc); //Temperature in Celcius. int reading analogRead (sensorPin); float voltage = reading float temperatureC= voltage* 100; Serial.print ("Voltage = "); Serial.print (voltage); = Serial.print("Temperature = "); Serial.print (temperatureC); //Condition if (tempc> 40) { digitalWrite (RED, HIGH); digitalWrite (GREEN, LOW); } else { digitalWrite (GREEN, HIGH); digitalWrite (RED, LOW); } (5.0/1024.0); delay(1000);
No. Time (Seconds) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 0 10 20 30 40 50 60 70 80 90 100 110 120 Serial Monitor Temperature Reading (°C) 29.79 29.31 30.27 35.64 77.65 87.89 82.53 76.66 62.02 54.75 45.41 33.69 30.76 Serial Monitor Voltage Reading (V) 0.30 0.29 0.30 0.36 0.78 0.88 0.83 0.77 0.62 0.55 0.45 0.34 0.31
ADC = Where: Vin = ADC input voltage Vref= ADC reference Voltage (4.9 Volts) Vin x 1024 Vref
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply