Smart Temperature-Controlled Desk Fan

AVR-based embedded control system using temperature sensing, PWM fan control, servo movement, user input, and multi-mode system logic.

Smart Temperature-Controlled Desk Fan schematic

Project Overview

The Smart Temperature-Controlled Desk Fan is an embedded systems project built around an Arduino-compatible Elegoo Uno R3 using the ATmega328P microcontroller. The system reads temperature data, processes user input, and controls multiple outputs including fan speed, servo movement, and buzzer feedback.

The project was originally developed as an Arduino-style embedded system and later rebuilt in AVR C using Microchip Studio. This made the project stronger technically because the system behavior was implemented closer to the microcontroller level instead of relying only on simplified Arduino functions.

The final system demonstrates practical embedded control by combining sensor input, PWM output, ADC input, button logic, and actuator behavior into one complete smart fan platform.

Project Specs

Role: Embedded Systems Developer Controller: ATmega328P Board: Elegoo Uno R3 Language: AVR C IDE: Microchip Studio Focus: Smart Fan Control

This project included embedded C programming, hardware pin mapping, schematic planning, sensor integration, PWM fan control, analog input handling, servo output, button-based mode switching, buzzer feedback, and system testing.

Engineering Challenges

One of the main challenges was coordinating several inputs and outputs at the same time without turning the project into separate disconnected features. The system needed to read temperature data, respond to a mode button, process potentiometer input, control fan speed, move a servo, and trigger buzzer feedback in a structured way.

Another challenge was rebuilding the behavior in AVR C. This required more direct control over the ATmega328P’s embedded features and forced the system logic to be organized around registers, timing, pin behavior, and hardware-level control.

System Design

The Smart Fan uses the ATmega328P as the main embedded controller. A DHT11 temperature sensor provides environmental input, while a potentiometer gives the user manual control through analog input. A button is used to switch operating modes, allowing the fan to respond differently depending on the selected behavior.

Output behavior includes PWM fan speed control, servo positioning, and buzzer feedback. The fan is controlled through a PWM signal on D11, the servo is connected to D9, the mode button is connected to D2, the buzzer is connected to D6, the DHT11 sensor is connected to D4, and the potentiometer is connected to A1.

The schematic documents the full wiring layout and shows how each input and output connects into the embedded control system.

Testing & Iteration

Testing focused on confirming that each subsystem worked independently and then verifying that the full system behaved correctly when all components were combined. The fan control, temperature sensing, servo movement, button input, potentiometer input, and buzzer output all needed to work together without conflicting.

Rebuilding the code in AVR C also required iterative testing because low-level embedded behavior can be less forgiving than higher-level Arduino code. Pin configuration, timing behavior, PWM setup, and input reading all needed to be checked carefully.

Results & Findings

The Smart Temperature-Controlled Desk Fan successfully demonstrated a complete embedded control system using the ATmega328P. The project combined multiple inputs and outputs into one working platform and showed how a microcontroller can process sensor data, user input, and actuator behavior.

A major result of the project was the successful transition from a basic embedded prototype into an AVR C implementation. This improved the technical depth of the project and made it a stronger example of microcontroller-level programming, hardware control, and embedded design.

The project is a strong portfolio example because it shows both software and hardware integration: the code controls real components, the schematic documents the system, and the demo video shows the behavior in operation.

Future Improvements

Future versions of the Smart Fan could improve the system’s usability, reliability, and appearance by adding more advanced feedback and cleaner hardware packaging.

Technologies Used

AVR C ATmega328P Microchip Studio Embedded Systems PWM Control ADC Input DHT11 Sensor Servo Control Button Input Schematic Design Hardware Integration

Project Links

Demo Video: Watch Smart Fan Demo

GitHub Repository: View Source Code

Demo Evidence: The schematic above documents the full hardware layout, and the linked video demonstrates the programmed smart fan behavior in operation.

Key Contributions

← Back to Portfolio