Project Left
Project Left
School of Engineering
American University in Dubai
1 ………………………………………………. …………………….…………………………
2 ………………………………………………. ……………………….………………………
Directions
- You must clearly and neatly show your work to qualify for full credit.
- The main task of your report is to communicate information, so report organization is very important.
- Project should be submitted with this cover page.
- Neatness counts, 20% will be deducted for lack of neatness or not following the directions.
- Work this project on your own.
- Use A4 paper size (single face).
- Do not stable your project report, instead use paper clip.
- Late submissions will not be accepted.
- All type of knowledge sources is allowed but it need to be clearly cited.
- Your work must be original: no copying from any other term or any other class, and no copying from any classmate.
CLO1: Design actuators, solenoids, and other mechatronics systems components for mechanical applications that
X
meet specified needs.
CLO2: Identify the main ethical and professional responsibility of mechatronic systems implementation, and
X
considering the global impact of mechatronic systems on the economy, environment, and society.
CLO3: Compare, through personal research, the applicability and characteristics of basic and advanced
X
mechatronics systems, such as PLCs, distributed control systems, and embedded microcontrollers.
No Format Abstract Chapter Chapter Chapter Chapter Chapter Chapter Interview Total
1 2 3 4 5 6 Factor
1 /10 /10 /20 /5 /35 /5 /10 /5 /100% /100
2 /10 /10 /5 /20 /5 /35 /5 /10 /100% /100
*By signing above you confirm that the submission has been fully prepared by you. Any suspicion of copying or plagiarism in this work will be
reported to the Dean or Chair for appropriate investigation and appropriate disciplinary actions, which may result in a “0” on the work, an
“F” in the course or other penalties as described in the Student Handbook, which can be found online at:
http://www.aud.edu/files/StudentHandbook.pdf
1|Page
EMEC455 - Project 01
School of Engineering
American University in Dubai
Project Title: Refrigerator Controller
Introduction
A refrigerator controller is basically the brains of the refrigerator cooling system—it runs the show. A
temperature sensor is typically found inside the refrigerator and have a knob that allows users to adjust the
temperature setting. Once a user sets the desired temperature, the controller maintains that temperature by
controlling the flow of electricity to the compressor based on the signal received from the temperature sensor.
If the controller is the brain, the compressor is the heart of the operation, responsible for pumping the
refrigerant through the system. When the air inside the refrigerator is at the desired temperature, the
controller stops the flow of electricity to the compressor. When the temperature sensor senses too much heat,
it allows electricity to flow, activating the compressor.
Project Description
In this project, each group of students is required to develop a refrigerator controller by utilizing the modern
approach used in the design and implementation of Mechatronic System. The objectives of this project are:
• Understand and utilize the concept of Hardware-In-the-Loop (HIL) simulation (sometimes called Real-
Time Interface). In HIL, the controller is used actual hardware by interfacing to it with some of the system
actuators and sensors.
• Produce efficient high-level source code from the block diagram or visual modeling interface using Code
Generator capability of MATLAB/Simulink. The control code will be compiled and used on the Computer
System.
• Abject the controller parameters using the Embedded Processor Interface feature. The Embedded Processor
Interface is used to tune the final product performance. This feature provides communication between the
controller and the computer-aided prototyping environment (MATLAB/Simulink).
Required Hardware and Software
The following hardware and software are required:
1. PC with MATLAB/Simulink and Arduino IDE (Integrated Development Environment),
2. MATLAB/Simulink with Simulink Arduino Toolbox.
3. Arduino Board,
4. Inputs/outputs:
▪ Inputs: two Potentiometers, one Switch;
▪ One Relay output, one LED output, One Audio Buzzer (or three LEDs for just testing purposes)
Making sure that the Simulink has the required Arduino Toolbox:
• Open new Simulink Model (By opening MATLAB, click “New” on the upper menu and choose
“Simulink Model”).
• Choose “Blank Model”.
• Click the “Library Browser” to open the Simulink Library.
• Scroll down in the Simulink Library items and make sure you have the “Simulink Support Packages for
Arduino Hardware” toolbox in the Simulink Library.
3|Page
EMEC455 - Project 01
School of Engineering
American University in Dubai
Inputs and Outputs:
Figure 2 below shows the refrigerator controller using Arduino board circuit diagram. The inputs and
outputs of the Arduino controller are identified below:
Inputs: two Analog Inputs, one Digital Input
1. Desired Temperature Potentiometer: Analog Input. The desired temperature for the refrigerator is
specified by the user via a rotary potentiometer (in real refrigerator, a Graphical User Interface
(GUI) with a potentiometer like input device is used).
2. Actual Temperature Sensor: Analog Input. The actual temperature of the refrigerator is specified by a
rotary potentiometer. (in real refrigerator, the actual temperature is measured using a temperature
sensor such as RTD or Thermistor).
3. Door Sensor: Digital Input. This sensor detects if the Door is Open or Closed.
Outputs: three Digital Outputs
1. Compressor Motor Relay Output: Digital Output. Controller turns ON/OFF compressor motor via
relay output (digital output) for the cooling function using a software control function for relay
control with hysteresis function.
2. Light Output (LED): Digital Output. Turn ON, when the Door is Open.
3. Audio Output (Buzzer): Digital Output. Turn ON, when the Door is Open more than a certain time
period.
6|Page