Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q. No. 3 (10+10+10 = 30 Points): Design a temperature control system that consists of two microcontrollers. Microcontroller 1 (MI) uses the temperature sensor (LM34)
Q. No. 3 (10+10+10 = 30 Points): Design a temperature control system that consists of two microcontrollers. Microcontroller 1 (MI) uses the temperature sensor (LM34) to control a fan, LED and sends the temperature reading to second microcontroller (i.e. remote). The specifications of first microcontroller (which is operating at 8MHz frequency, 8-bit ADC and Vref = 2.56) are as follows: Turn the fan off if temperature is below 51C and there should be no square wave at PC4. 1. Run the fan at speed A, if the temperature is from 51C to 60C. And generate a square wave of Time period 250us at PC4. 2. Run the fan at speed B if temperature is between 61C and 80C. The square wave should be of Time period 250us at PC4. 3. If the temperature is above 80C, the fan runs at speed C, tum on warning LED (which is off otherwise) and the square wave with Time period of 5us at PC4. 4. Send temperature reading to second Microcontroller after every 10 seconds. Second microcontroller receives the data from Ml and displays it on to the LCD. Both microcontrollers communicate using serial communication protocol. Your Tasks: 1. Draw the block diagram of the system for both microcontrollers that consists of all the required external hardware modules. 2. Draw the flow chart for your design for each microcontroller. 3. Write a program in C for the flow chart you just made
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started