Question: KINDLY WRITE THE CODE BY HAND I DO NOT NEED NO SIMULATIONS I JUST NEED A HAND WRITTEN CODE WHICH SHOWS LOGIC AND DIRECTION ,

KINDLY WRITE THE CODE BY HAND I DO NOT NEED NO SIMULATIONS I JUST NEED A HAND WRITTEN CODE WHICH SHOWS LOGIC AND DIRECTION , DOESNT HAVE TO BE ALL RIGHT.(PROCESSOR IS ATMEGA 32 AND LANGUAGE IS C LANGUAGE )

KINDLY WRITE THE CODE BY HAND I DO NOT NEED NO SIMULATIONS

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, turn 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!