Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HW-06A: NXC Oven Control An oven has two touch sensors and one temperature sensor. Touch sensor 1 has dual functions: it is first used to

image text in transcribed
HW-06A: NXC Oven Control An oven has two touch sensors and one temperature sensor. Touch sensor 1 has dual functions: it is first used to show incremental time in minutes on the display. The time is incremented by five minutes every 0.5 sec as long as touch sensor 1 is pressed. After the time is accepted, it is thern used to show the incremental temperature in Fahrenheit. The temperature is incremented by ten degree Fahrenheit every 0.5 sec as long as touch sensor 1 is pressed. Touch sensor 2 is used to accept the time or temperature displayed when it is pressed. After the time and the temperature have been set and accepted, the gas will be turned on when the temperature is below the selected temperature and turned off when the temperature is above the selected temperature. OUT _A is used to turn the gas on or off. Within the selected time, the display will continuously display the remaining time. When the time expires, the gas will be turned off and the cooking cycle will be repeated. Draw a structured flowchart to control the oven in the manner described above and translate the flowchart into NXC codes. Sensors Assignments: Sensors Mode alue Usage SENSOR1 TOUCH BOOL 1-pressed; 0 not pressed Choose time or temperature SENSOR2 TOUCH SENSOR3 Temperature FAHRENHEIT BOOL 1 = pressed; 0 = not pressed Accept time or temperature Cooking temperature Outputs assignments: Outputs OUT_A Program Requirement: alue Usage On = Gas on; Off= Gas off turn gas on or off 1. Must include all sensor configurations.toetured lw 2. Must have a one-to-on 3. Must include a comment header for the description of the program. 4. Must include plenty of comment statements to explain the flow of instructions 5. Must include proper indentation. e mapping with the structured flowchart. Work to do and document to submit: 1. A copy of the structured flowchart. 2. A fully documented NXC program that passed the compilation with no syntax errors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Construct a nontriangular 2 2 matrix with eigenvalues 2 and 5.

Answered: 1 week ago