Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 Hothouse Temperature Control You are to draw a structure diagram and from this write the C program that controls the temperature inside a

Question 3 Hothouse Temperature Control

You are to draw a structure diagram and from this write the C program that controls the temperature inside a hothouse. The hothouse temperature is controlled by two methods: a) to increase the temperature, a heater controlled by a PWM signal is used, and b) to decrease the temperature, windows connected to a servo motor can be adusted.

The operation is as follows

Window

  • At night time the window should be closed (A light level below ADCW = 250 )
  • Daytime the window is:
    • closed if temperature is below 100
    • quarter open if temperature is between 100 and 150
    • half open if temperature is between 150 and 200,
    • three quarters open if temperature is between 200 and 250
    • fully open if temperature is above 250

Heater

  • At daytime the heater should be off. (A light level above ADCW = 750 )
  • Night time the heater is
    • fully on if the temperature is below 100
    • three quarter on if temperature is between 100 and 150
    • half on if temperature is between 150 and 200,
    • quarter on if temperature is between 200 and 250
    • off if if temperature is above 250

Servo Motor Characteristics

The period of the pulse used to conrol the servo motor should be 30ms

The mark should be

  • 2ms for window closed
  • 2.5ms for window quarter open
  • 3ms for window half open

Temperature Characteristic

The temperature range is the ADCW reading times by 10, e.g 100 will have a ADCW reading of 100, e.g 150 will have a ADCW reading of 150 etc

ADC

The ADC should be set to 10 bits, and should run using ADC interrupts.

Inputs

Outputs

Temperature sensor ADC7

Servo Motor Timer1A (PB5)

Light Sensor ADC6

Heater Timer0A (PB7)

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

Corporate Governance And Statutory Audit Stakes And Articulations

Authors: Chefick Olagbèyindé Olafa

1st Edition

6204385682, 978-6204385686

More Books

Students also viewed these Accounting questions

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago