A small server room contains electronic equipment that continuously generates heat during operation. If the room temperature rises beyond a safe limit, the performance and lifespan of the equipment can be negatively affected. Therefore, an automatic ventilation system is required to maintain a stable temperature and ensure reliable operation.
Designing and implementing such a system without prior testing may lead to incorrect temperature control, inefficient fan operation, or hardware damage. For this reason, simulation and careful planning are essential before real-world deployment. By simulating the system, we can verify that the temperature sensor accurately measures room conditions, the fan speed responds correctly to temperature changes, and the user interface operates as intended.
To address these challenges, we designed a Temperature-Controlled Ventilation System with Adjustable Fan Speed using an ATmega328P microcontroller. The system continuously monitors temperature using an LM35 sensor and automatically adjusts the DC fan motor speed through PWM control via an L298 motor driver. Users can increase or decrease the temperature threshold using two push buttons connected to external interrupt pins. All system information, including current temperature, threshold value, and fan speed, is displayed on a 16×2 LCD operating in 4-bit mode. Through simulation, the system can be tested and optimized before actual implementation, ensuring efficient cooling and reliable performance in a server room environment.
HOW TO USEYou can copy the source code and paste it into your preferred AVR development environment, such as Atmel Studio. After compiling the program, generate the HEX file that will be loaded into the ATmega328P microcontroller.
Next, open Proteus 8 Professional and create the circuit according to the designed schematic. Connect the ATmega328P with the LM35 temperature sensor, L298 motor driver, DC motor, two push buttons, and a 16×2 LCD operating in 4-bit mode. Ensure that all wiring connections match the pin configuration used in the program.
Feel free to enhance the simulation by adding indicators, labels, or other decorative components to improve visualization. You can also modify the temperature thresholds, PWM settings, or fan speed response within the program to observe different ventilation behaviors under various temperature conditions.
Once the circuit assembly is complete, load the generated HEX file into the ATmega328P component in Proteus. Run the simulation and vary the LM35 sensor output temperature. Observe how the system automatically adjusts the fan speed according to the measured temperature, how the threshold can be changed using the interrupt-based push buttons, and how all relevant information is displayed on the LCD. This simulation helps verify the functionality and reliability of the ventilation control system before hardware implementation.













_3u05Tpwasz.png?auto=compress%2Cformat&w=40&h=40&fit=fillmax&bg=fff&dpr=2)
Comments