Template Laporan Mini Projek
Template Laporan Mini Projek
MINI PROJECT
DEC40053 EMBEDDED SYSTEM APPLICATION
NO NAME REG.NO
1
2
3
i
Contents
Introduction 1
Objective 2
Gantt Chart 1
Block Diagram 1
Schematic 2
Flowchart 3
Programme 5
Conclusion 7
Reference 8
ii
Mini Project Title
Introduction
A PWM (Pulse Width Modulation) Fan Controller is a system used to automatically control
fan speed based on the cooling requirements of electronic devices. In the world of
electronics and computing, regulating component temperatures is essential to ensure
optimal performance and prevent damage caused by overheating.
The PWM Fan Controller works by adjusting the fan speed through pulse width modulation,
which changes the duty cycle of the signal sent to the fan. By modifying the ratio of "on" to
"off" time in these pulses, the controller can vary the fan's speed according to the current
temperature of the device, saving energy and reducing fan noise.
One of the primary advantages of a PWM Fan Controller is its ability to provide smoother
and more efficient speed control compared to traditional fan controllers. This makes it
suitable for various applications, including computers, electronic coolers, power supplies,
and audio-video systems that require precise cooling
management……………………………………
1
Objective
b) To create customizable fan speed profiles, allowing users to set different fan speeds
for various temperature ranges, improving control over noise levels and cooling
performance.
c) To design the controller to be compatible with a wide range of PWM fans, ensuring
flexibility and ease of integration into different devices and systems.
Pulse Width Modulation (PWM) is a technique used to control power delivery to electronic
devices by varying the "on" and "off" duration of a digital signal. This method is efficient for
speed control in DC motors, like those in fans, because it minimizes energy loss in switching
components. According to Rashid (2013), PWM works by adjusting the duty cycle of a
square wave signal, where the ratio of on-to-off time (duty cycle) determines the average
power delivered to the load.
Control systems theory provides the basis for designing feedback systems in which a
controller, such as a PWM fan controller, adjusts outputs (fan speed) in response to changes
in system inputs (temperature). Ogata (2010) describes how closed-loop control systems
use feedback to maintain stability and accuracy. By monitoring temperature and adjusting
fan speed in real time, the PWM controller ensures consistent cooling within specified
parameters.
The duty cycle and frequency of PWM signals are critical for fan speed control. The duty
cycle represents the percentage of time a signal is "on" in each cycle, which directly
influences the speed of DC motors. Higher duty cycles result in higher average voltages and,
therefore, faster fan speeds. According to Erickson and Maksimovic (2007), adjusting PWM
2
frequency is also essential, as lower frequencies can lead to noticeable oscillation, while
higher frequencies reduce ripple and create smoother motor operation.
3
Gantt Chart
1
Block Diagram
Temperature Motor
sensor Driver
PIC18F4520 DC Fan
Feedback loop
(Adjust fan speed)
1
Schematic
2
Flowchart
start
Detect car
No
Car detected? GREEN LED ON
Yes
RED LED ON
No
Exit system?
Yes
finish
Based on this flowchart, the Parking System is always ready to detect a car in a parking slot.
If a car is detected, it will turn the red LED on to indicate that the parking slot is already
occupied. Else, if no car is detected, green LED will turn on that indicates the parking slot is
empty. Then, this system loops again until someone chooses to exit this system.
3
Cost for the project
Table 1 presents the cost breakdown for the components used in this PWM Fan Controller
project.
No Component Price
1 PIC
2 Temperature Sensor
3 Motor Driver
4 DC Fan
5 Printed Circuit Board
6 Jumper
7
4
Programme
The PWM Fan Controller program was developed using the C programming language,
implemented on a PIC microcontroller. The code for this system is shown in Figure 4 below:
// Name: Muhammad bin Abdullah, adam bin haris & Zikry bin Adhmad
// No matrc:
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
digitalWrite(LED_BUILTIN, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(LED_BUILTIN, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}
5
Result & Discussion
The PWM Fan Controller system was successfully designed and implemented to control fan
speed based on temperature readings. The system operates by continuously monitoring the
temperature through the temperature sensor (LM35) and adjusting the PWM signal sent to
the fan, which in turn adjusts the fan's speed.
Table 2: Result
Fan Speed Control: The PWM fan controller successfully controlled the fan's speed based
on the temperature input. The fan speed varied smoothly in response to temperature
fluctuations, ensuring the system was kept at an optimal operating temperature. The fan
speed ranged from 30% to 100% depending on the temperature readings, ensuring efficient
cooling.
Energy Efficiency: The PWM control mechanism proved to be energy-efficient, as the fan
consumed only the necessary power based on temperature demands. The fan did not
operate at full speed unless needed, resulting in energy savings.
6
Noise Reduction: By reducing the fan speed during lower temperature conditions, the
system also minimized noise levels. This feature is particularly beneficial in noise-sensitive
environments, where a quieter operation is desired.
Conclusion
The PWM Fan Controller project was successfully designed, developed, and tested,
achieving the main objectives of controlling fan speed based on real-time temperature
generate a PWM signal, the system was able to adjust the fan speed smoothly and
efficiently, ensuring optimal cooling performance while minimizing energy consumption and
noise.
This project successfully met its objectives, offering a cost-effective and efficient solution for
selecting the right components, tuning system parameters, and performing thorough testing
Moving forward, the system could be expanded with additional features such as multi-fan
systems. Overall, the PWM Fan Controller proves to be a valuable tool for any application
7
Reference
Rashid, M. H. (2013). Power electronics: Circuits, devices, and applications (4th ed.).
Pearson.
Yung, K. C., & Lai, J. K. (2010). Thermal management of electronics: Concepts and
applications. Springer.
Erickson, R. W., & Maksimovic, D. (2007). Fundamentals of power electronics (2nd ed.).
Springer