Question

Design and implement an Air Conditioner Controller System to control automatically an air conditioner based on the ambient tempreture and surrounding light (Daytime/Nighttime). The ambient temperature and surrounding light (Daytime/Nighttime) should be displayed on a Liquid crystal display (LCD) as shown in Figure. I.To emulate the process of controlling an air conditioner, in your project you will control a 12V DC FAN 12V dc Fan Mbed emulating A/C microcontroller Relay LM35 Light LDR Relay Driver A/C Controller DOWN A/C ON T- 300C SET LCD Figure 1: A/C Controller Emulator The Air Conditioner Controller System should work in two modes: Setting Mode and Operation Mode. When the system is turned ON (Powered ON), it starts the Setting Mode and stays for 5 seconds as shown in Fig2.a. To enter the Setting Mode, the user should press on SET Push-button within seconds, otherwise, the system enters the operation Mode as shown in Fig.2.b. In the setting mode,the user should be able to use UP/DOWN buttons to scroll up and down in the menu, and the SET button to exit with or without (w/o) save (four options as shown in Fig.2.c). Thus, in this mode, the user should be able to set separately the temperature that will activate or turn ON FAN for Day-Time and Night-time, save the new setting and exit, or exit with saving the new setting.

please help me with the project it's an embedded system project and i need a help with the code (for setting part especially) the code should be in C language not C++ and the mbed application board will be used. thanks in advance :)

Note: mbed development board are used here with the mbed application board

0 0
Add a comment Improve this question Transcribed image text
Answer #1

work fun1(x) {return Math.sin(x); }
work fun2(x) {return Math.cos(3*x);}
work draw() {
var canvas = document.getElementById("canvas");
in the event that (null==canvas || !canvas.getContext) return;
var axes={}, ctx=canvas.getContext("2d");
axes.x0 = .5 + .5*canvas.width;/x0 pixels from left to x=0
axes.y0 = .5 + .5*canvas.height;/y0 pixels from top to y=0
axes.scale = 40;/40 pixels from x=0 to x=1
axes.doNegativeX = genuine;
showAxes(ctx,axes);
funGraph(ctx,axes,fun1,"rgb(11,153,11)",1);
funGraph(ctx,axes,fun2,"rgb(66,44,255)",2);
}
work funGraph (ctx,axes,func,color,thick) {
var xx, yy, dx=4, x0=axes.x0, y0=axes.y0, scale=axes.scale;
var iMax = Math.round((ctx.canvas.width-x0)/dx);
var iMin = axes.doNegativeX ? Math.round(- x0/dx) : 0;
ctx.beginPath();
ctx.lineWidth = thick;
ctx.strokeStyle = shading;
for (var i=iMin;i<=iMax;i++) {
xx = dx*i; yy = scale*func(xx/scale);
in the event that (i==iMin) ctx.moveTo(x0+xx,y0-yy);
else ctx.lineTo(x0+xx,y0-yy);
}
ctx.stroke();
}
work showAxes(ctx,axes) {
var x0=axes.x0, w=ctx.canvas.width;
var y0=axes.y0, h=ctx.canvas.height;
var xmin = axes.doNegativeX ? 0 : x0;
ctx.beginPath();
ctx.strokeStyle = "rgb(128,128,128)";
ctx.moveTo(xmin,y0); ctx.lineTo(w,y0);/X pivot
ctx.moveTo(x0,0); ctx.lineTo(x0,h);/Y pivot
ctx.stroke();
}
It is sheltered to call the draw() work after the whole body of the website page is stacked. The source code of a HTML page containing the canvas component may resemble this:
<!DOCTYPE html>
<html>
<head><title>Canvas code example</title>
<script type="text/javascript">
/JavaScript source code goes here
</script>
</head>
<body onload="draw()">
<canvas id="canvas" width="502" height="108"></canvas>
</body>
</html>

Add a comment
Know the answer?
Add Answer to:
please help me with the project it's an embedded system project and i need a help...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please help me with this project by using Android Studio. I need to know the xml...

    Please help me with this project by using Android Studio. I need to know the xml and the java activities in both activities. Also the manifest activity. I appreciate the effort and I'll rate you with 5 stars. 1. SUMMARY This project will simulate the card game Concentration for one player. In Concentration, all cards, or pictures in this case, are upside down. Two cards are chosen, and if they match they are taken out of the game. If they...

  • help me, how can wright the code using ( atmel 7 ) ( GCC C ASF Board Project ) C/C++ Equipment and Materials SAMD21 or...

    help me, how can wright the code using ( atmel 7 ) ( GCC C ASF Board Project ) C/C++ Equipment and Materials SAMD21 or SAMW25 Xplained Pro 1) 2) USB cable 3) PC ELVIS II board 4) Program UART Write a program that uses the default UART interface of the SAMD21 microcontroller to communicate with over the the UART of the EDBG microcontroller. The EDBG chip will then convert the serial data and send this USB to the PC....

  • help me, how can wright the code using ( atmel 7 ) ( GCC C ASF Board Project ) C/C++ Equipment and Materials SAMD21 or...

    help me, how can wright the code using ( atmel 7 ) ( GCC C ASF Board Project ) C/C++ Equipment and Materials SAMD21 or SAMW25 Xplained Pro 1) 2) USB cable 3) PC ELVIS II board 4) Program UART Write a program that uses the default UART interface of the SAMD21 microcontroller to communicate with over the the UART of the EDBG microcontroller. The EDBG chip will then convert the serial data and send this USB to the PC....

  • help me, how can wright the code using ( atmel 7 ) ( GCC C ASF Board Project ) C/C++ Equipment and Materials SAMD21 or...

    help me, how can wright the code using ( atmel 7 ) ( GCC C ASF Board Project ) C/C++ Equipment and Materials SAMD21 or SAMW25 Xplained Pro 1) 2) USB cable 3) PC ELVIS II board 4) Program UART Write a program that uses the default UART interface of the SAMD21 microcontroller to communicate with over the the UART of the EDBG microcontroller. The EDBG chip will then convert the serial data and send this USB to the PC....

  • Is it possible for anyone to help me with this assignment that I need in like...

    Is it possible for anyone to help me with this assignment that I need in like 5 hours? Part I: General HCI Questions 1) The "Start" button in Windows is located by default at the bottom left corner of the screen. How might you make accessing the "Start" button faster? What is the name of the principle you are relying on from the principals identified by Donald Norman and Section 1.6 from the textbook (visibility, feedback, constraints, consistency, affordance). What...

  • I am a student of EST, and now I have a group open project, which required us to design a device ...

    I am a student of EST, and now I have a group open project, which required us to design a device using components as shown below. We can choose maximum 9 credits worth of components, and the credits are marked after each component. I am asking for some good ideas. Please describe what can be made and what components should be used. Please provide ideas as more as possible. 1-101-Ultrasonic Sensor-Credit 1 2-102-Sound Wave Sensor (MAX9812)- Credit 2 3-103-Microphone Sound...

  • C#: I am working on this application and keep running into this error. Please help me fix it. Err...

    C#: I am working on this application and keep running into this error. Please help me fix it. Error: Design: Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SinghAjayProgram08 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } double totalInserted = 0; double totalWon = 0; private void spinButton_Click(object sender, EventArgs e) { Random rand = new Random(); int index = rand.Next(fruitsImageList.Images.Count); firstPictureBox.Image =...

  • I need this code in C programming. Can anyone pls help me in this? Project 8,...

    I need this code in C programming. Can anyone pls help me in this? Project 8, Program Design A hotel owner would like to maintain a list of laundry service requests by the guests. Each request was stored with the room number, the guest's first name, last name, and number of items. The program laundry_list.ccontains the struct request declaration, function prototypes, and the main function. Complete the function definitions so it uses a dynamically allocated linked list to store the...

  • I need help in C++ . Project 3 – Parking Deck Ticketing System Objectives: Use if,...

    I need help in C++ . Project 3 – Parking Deck Ticketing System Objectives: Use if, switch, and loop statements to solve a problem. Use input and output statements to model a real world application Incorporate functions to divide the program into smaller segments Instructions: Your task is to write a program that simulates a parking meter within the parking deck. The program will start by reading in the time a car arrives in the parking deck. It will then...

  • Please, I need help with program c++. This is a chutes and ladders program. The code...

    Please, I need help with program c++. This is a chutes and ladders program. The code must be a novel code to the specifications of the problem statement. Thank you very much. Assignment Overview This program will implement a variation of the game “chutes and ladders” or “snakes and ladders:” https://en.wikipedia.org/wiki/Snakes_and_Ladders#Gameplay. Just like in the original game, landing on certain squares will jump the player ahead or behind. In this case, you are trying to reach to bottom of the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT