A smart home is a technologically modern home that uses different types of electronic methods, voice activation methods and sensors to collect specific data. Information gained from that data is used to manage assets, resources and services efficiently. By using assembly/Arduino language, keeping in mind finite state concepts, you are required to simulate the functionalities of the Temperature warning system to control room temperature. Using the Arduino simulator integrate with NTC Thermistor that will turn on different LEDS. . Green when temp < 30C . . Yellow when temp 30- 45C (inclusive) Red when temp > 45C

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
const int greenLedPin = 2;
const int yellowLedPin = 3;
const int redLedPin = 4;
const int thermistorPin = A0;
const int greenThreshold = 30;
const int redThreshold = 45;
void setup() {
pinMode(greenLedPin, OUTPUT);
pinMode(yellowLedPin, OUTPUT);
pinMode(redLedPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
int rawValue = analogRead(thermistorPin);
float voltage = rawValue
float resistance = (5.0
float temperature = 1.0 / (log(resistance /
10000.0)/3950.0+ 1.0 / 298.15) 273.15;
Serial.print("Temperature: ");
}
Serial.print (temperature);
Serial.println("C");
if (temperature < greenThreshold) {
digitalWrite(greenLedPin, HIGH);
digitalWrite(yellowLedPin, LOW);
digitalWrite(redLedPin, LOW);
} else if (temperature <= redThreshold) {
digitalWrite(greenLedPin, LOW);
digitalWrite(yellowLedPin, HIGH);
digitalWrite(redLedPin, LOW);
} else {
(5.0/1023.0);
voltage) / voltage;
}
digitalWrite(greenLedPin, LOW);
digitalWrite(yellowLedPin, LOW);
digitalWrite(redLedPin, HIGH);
delay(1000);
Transcribed Image Text:const int greenLedPin = 2; const int yellowLedPin = 3; const int redLedPin = 4; const int thermistorPin = A0; const int greenThreshold = 30; const int redThreshold = 45; void setup() { pinMode(greenLedPin, OUTPUT); pinMode(yellowLedPin, OUTPUT); pinMode(redLedPin, OUTPUT); Serial.begin(9600); } void loop() { int rawValue = analogRead(thermistorPin); float voltage = rawValue float resistance = (5.0 float temperature = 1.0 / (log(resistance / 10000.0)/3950.0+ 1.0 / 298.15) 273.15; Serial.print("Temperature: "); } Serial.print (temperature); Serial.println("C"); if (temperature < greenThreshold) { digitalWrite(greenLedPin, HIGH); digitalWrite(yellowLedPin, LOW); digitalWrite(redLedPin, LOW); } else if (temperature <= redThreshold) { digitalWrite(greenLedPin, LOW); digitalWrite(yellowLedPin, HIGH); digitalWrite(redLedPin, LOW); } else { (5.0/1023.0); voltage) / voltage; } digitalWrite(greenLedPin, LOW); digitalWrite(yellowLedPin, LOW); digitalWrite(redLedPin, HIGH); delay(1000);
Description
A smart home is
technologically
a
modern home that uses different types
of electronic methods, voice activation methods and sensors to collect specific data Information
gained from that data is used to manage assets, resources and services efficiently.
By using assembly/Arduino language, keeping in mind finite state concepts, you are required to
simulate the functionalities of the Temperature warning system to control room temperature.
Using the Arduino simulator integrate with NTC Thermistor that will turn on different LEDs.
Green when temp < 30C
Yellow when temp 30- 45C (inclusive)
Red when temp > 45C
Triggering conditions/events could be passed to microprocessor directly (pulses) or programmatically.
Marking scheme:
Transcribed Image Text:Description A smart home is technologically a modern home that uses different types of electronic methods, voice activation methods and sensors to collect specific data Information gained from that data is used to manage assets, resources and services efficiently. By using assembly/Arduino language, keeping in mind finite state concepts, you are required to simulate the functionalities of the Temperature warning system to control room temperature. Using the Arduino simulator integrate with NTC Thermistor that will turn on different LEDs. Green when temp < 30C Yellow when temp 30- 45C (inclusive) Red when temp > 45C Triggering conditions/events could be passed to microprocessor directly (pulses) or programmatically. Marking scheme:
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Types of System Design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education