In: Electrical Engineering
You are a homeowner and you have decided to invest some time into developing a temperature control system in your house instead of paying someone to do this work. You have available to you a microcontroller of your choice a well developed Kernel and your task is to write software to perform the temperature measurements and adjust the temperature accordingly. Provide a list of tasks you would need to realize your project (you can consider interrupts service routines to be tasks as well). Note:You do not have to write any code to solve this problem, but you must list the tasks you will need and draw a block diagramof the software system (show the states you could operate in and how your tasks can get into and out of those states. (Use the ideas used in the mC/OS-II or mCOS).
Temperature Control System :
Let us first decide what are the requirements :
We need:
1) Microcontroller
2) Temperature Sensor
3) The power supply
4) Connecting leads
5) Feedback Control System (Connected with microcontroller )
6) Digital to Analog and Analog to Digital Controller
The various steps are as follows:
1 ) Microcontroller ports are connected with Temperature sensor output ( which is analog converted into digital )
2) One port is connected to the switch of cooling device
3) Let us make a timer which counts upto 5 seconds
4) After 5 seconds the external sensor is sent a signal to on.
5) The sensor detects the temperature and the outtput is compared with the comparator circuits like (opamp or bridges )
6) If temperature is above 20 C . Then start the Cooling device connected to other port of Microcontroller .
7) If temperature is below 10 C . Then stop the Cooling device connected to other port of Microcontroller .
8) Else no action .
9) Repeat above steps .