I. Team Introduction:
wzp100 is responsible for PCB fabrication and programming;
sunwu2004 is responsible for PCB schematic design and soldering.
II. Design Goal:
A smart fan using an STC8H8K64U as the main control chip and a DS18B20 as the temperature sensor. The fan measures the current temperature, adjusts the fan speed, and displays the data in real-time on an OLED screen.
III. Design Summary:
PCB design and soldering
; code writing, burning, and debugging.
IV. Design Analysis:
The STC8H8K64U main control chip integrates circuits such as the crystal oscillator, which originally required external design, greatly simplifying the circuit design.
V. Overall Design Block
Diagram: TD
reset --> Sensor acquires temperature --> Displays current temperature and fan speed --> Adjusts fan speed --> Sensor acquires temperature.
VI. Hardware Circuit Composition
: Detailed description of each circuit component in the project, along with analysis of the circuit schematic. If using a pre-built module board, please indicate that it is open source.
Hardware Components : Main
Control Chip: STC8H8K64U
integrated crystal oscillator, simplifying design;
Temperature Sensor: DS18B20
high-precision temperature acquisition;
Display Module: OLED screen
for real-time temperature and fan speed display
; Fan Drive Circuit:
Fan speed control
circuit schematic analysis ;
Power Management Circuit:
Provides stable power to each module
; Main Control Circuit
: STC8H8K64U main control chip and its peripheral circuits;
Sensor Interface Circuit :
DS18B20 connection and data acquisition circuit;
Display Circuit:
OLED screen connection and drive
circuit; Fan Control Circuit:
Fan drive and speed control circuit .
VII. Program Flowchart
: TD
Start --> Initialization --> Read Temperature --> Display Temperature and Speed --> Determine Temperature Range --> Adjust Fan Speed --> Temperature reading
program flow
initialization
Initialize each module
Initialize temperature
Read current temperature via DS18B20
Display temperature and fan speed
Display temperature and fan speed on OLED screen
Determine temperature range Adjust
fan speed according to temperature Adjust fan speed VIII. Physical demonstration IX. Precautions Soldering precautions Ensure solder joints are strong and avoid cold solder joints Power management Ensure stable power supply and avoid voltage fluctuations X. Demonstration video see attachment XI. Attachment contents Attachment 1: Demonstration video Attachment 2: Program code
