ASSIGNMENT 1 – CONTROLLER FOR AN ELECTRIC WATER HEATER
A controller is to be designed for an Electric Water Heater using a 20MHz C167 microcontroller and this is to be developed using the Keil IDE.
Operation
The temperature setpoint is set by the user via a temperature control potentiometer. This potentiometer is connected across the power supply rails providing a voltage between 0V (minimum temperature) and 5V (maximum temperature). To maximise the resolution, the full range of the potentiometer should be used.
The temperature setpoint range should be between 45°C (to ensure legionella bacteria is destroyed) and 60°C (to limit the risk of scalding).
Signal conditioning has been provided that offsets, scales and linearises the thermistor temperature sensor output to occupy the full voltage range of the analogue to digital converter (ADC) for the temperature range required.
2 temperature sensors introduce redundancy in
case of temperature sensor failure. If the readings from the temperature sensors deviate from each other by more than 5°C then a warning buzzer should sound. The buzzer is activated by a high output from the microcontroller.
The heating elements are in parallel, i.e. one digital output drives one power transistor that switches one relay that powers both heating elements.
2°C of hysteresis should be implemented to prevent any chattering of the relay.
To be submitted:
Project files (zipped) with fully commented source code should be uploaded to MyUni. Use your student ID as the filename and in the header of the main program (as comment). Maintain a modular file structure, i.e. keep all ADC related functions in source file adc.c with prototypes exported through adc.h, etc.
Include a word document or pdf showing your flowcharts, state diagram or pseudo code to document the algorithmic details of your program. Also include Keil Simulator screenshots showing the correct operation of your controller.
State any necessary assumptions.
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。