请登录后使用此功能。 您可以使用此功能将商品添加到您的收藏列表。
关闭
您已经添加该商品到您的收藏列表。 查看我的收藏
关闭
从您收藏列表中删除此商品。
关闭
请登录后使用此功能。 您可以使用此功能将公司添加到您的收藏夹列表。
关闭
这家公司已成功添加。 查看我的收藏
关闭
这家公司已从你的收藏夹列表中删除。
关闭
请登录后使用此功能。 您可以使用此功能将公司添加到您的询问车。
关闭
这家公司已被添加到您的询问车。
关闭
这家公司已从询价车中删除。
关闭
该商品已被添加到您的询问车。
关闭
该商品已经从您的询价车中删除。
关闭
商品/公司已达到添加至询价车的数量。
关闭
Utsource Holding Company Limited
Utsource Holding Company Limited 58474938-000-06-24-A
Onesync AI SSM

Building a USB-Powered Fan Controller Using AN2131QC - Utsource Holding Company Limited

Building a USB-Powered Fan Controller Using AN2131QC

20-May-2025

Introduction

In today’s era of compact electronics, USB-powered devices are everywhere — from small lamps to cooling fans. Many users want to control these devices in an intuitive and efficient way. The AN2131QC, a highly integrated USB microcontroller, offers a versatile platform for such projects, combining USB communication capabilities with internal peripherals suitable for device control.
In this project, we will design and build a USB-powered fan controller that can regulate fan speed based on USB commands, all using the AN2131QC microcontroller. The device plugs directly into a USB port, draws power from it, and allows the user to adjust the speed of a connected 5V DC fan smoothly and precisely.

Why AN2131QC?

The AN2131QC is an ideal choice for USB peripheral development because it integrates a USB transceiver and a microcontroller in one package. This makes it easier to implement USB device communication without extra hardware. Its internal timers and I/O pins allow simple control of analog devices, such as a fan via pulse-width modulation (PWM).
The AN2131QC's built-in USB protocol handling means we don’t need external USB controllers or complicated interfaces. This saves space, cost, and design complexity, perfect for compact projects like our fan controller.

Project Overview

The goal of the project is to build a compact, USB-powered fan controller that:
●  Plugs into any USB port (PC, charger, power bank).
●  Controls a small 5V DC fan’s speed via PWM.
●  Receives simple commands from the PC over USB.
●  Is small, reliable, and easy to assemble.
We will focus on hardware design, component choices, and conceptual operation of the system.

Components Needed

●  AN2131QC USB microcontroller — the brain of the system.
●  5V DC Brushless Fan — typical small cooling fan.
●  N-channel MOSFET — used as a PWM switch to control fan speed.
●  USB Type-A or Type-C connector — for power and communication.
●  Passive components — resistors, capacitors for power stabilization.
●  LED indicator — to show power status or operation mode.
●  Optional: Voltage regulator — if USB power conditioning is needed.

Hardware Design

USB Power and Communication

The AN2131QC connects directly to the USB port. The USB connector supplies 5V power, which powers the entire system. The microcontroller’s internal USB transceiver handles communication with the host PC.
A small LC filter (inductor and capacitor) can be added between USB 5V and the microcontroller power input to smooth out any noise from the USB source, ensuring stable operation.

Microcontroller and Fan Interface

The fan speed control is accomplished using PWM — a technique where the power to the fan is switched on and off rapidly at a fixed frequency, with varying duty cycles controlling the effective power delivered to the fan.
The AN2131QC outputs the PWM signal on one of its general-purpose I/O pins. This PWM signal controls the gate of an N-channel MOSFET connected in series with the fan’s ground line. When the MOSFET switches on, current flows and the fan runs; when it switches off, current stops. By adjusting the PWM duty cycle, we adjust the fan speed.
The MOSFET chosen should have a low gate threshold voltage and low Rds(on) for efficient switching at 5V logic levels.

Additional Components

●  Power LED: A simple LED connected through a resistor to 5V indicates the system is powered and working.
●  Decoupling Capacitors: Placed near the microcontroller to reduce power supply noise.
●  Optional reset circuit: To allow manual reset of the microcontroller during development or troubleshooting.

Assembly Process

  1. PCB Design and Fabrication
Design a small PCB with the AN2131QC footprint, USB connector pads, MOSFET circuit, and supporting passive components. Careful attention to USB data lines is important; keep their length short and matched for impedance.
  1. Component Placement
Place the AN2131QC close to the USB connector. Position the MOSFET near the fan connector for efficient power routing. Ensure the LED and resistors are easily visible for status indication.
  1. Soldering
Use fine-pitch soldering techniques for the microcontroller and surface mount parts. Through-hole parts like the fan connector can be hand soldered. Double-check polarity and orientation of all components before soldering.
  1. Testing
After assembly, connect the device to a PC USB port. The device should power on, with the LED lit. The fan should initially run at a default speed.

Operation and User Interaction

Although we are not including any code or firmware details, the conceptual operation involves the AN2131QC recognizing USB commands sent from a custom PC application or standard USB interface tools.
When a speed command is received, the microcontroller adjusts the PWM duty cycle, increasing or decreasing the fan speed smoothly. This creates a pleasant user experience, where the fan can run quietly or more forcefully depending on cooling needs.
The LED indicator can blink or change brightness based on status messages — for example, blinking during communication or staying steady when idle.

Practical Considerations

●  Heat dissipation: The MOSFET and fan should have adequate ventilation to avoid overheating.
●  EMI concerns: Switching at PWM frequencies can cause electromagnetic interference. Adding small capacitors and careful PCB layout can mitigate this.
●  USB compliance: The AN2131QC is designed to handle USB protocol correctly, but the overall design should ensure proper USB power draw limits (usually under 500mA for USB 2.0).
●  Fan type: Ensure the fan used is compatible with PWM control on its ground line.

Benefits of This Project

●  Hands-on USB device design: Understanding direct USB microcontroller integration without external controllers.
●  Real-world power control: Learning to drive motors or fans with PWM, a crucial skill in electronics.
●  Compact, practical gadget: The resulting device is useful in daily life, extending PC cooling options.
●  Foundation for expansion: The same design principles apply to more complex USB peripherals.

Conclusion

This project demonstrates how to leverage the AN2131QC microcontroller’s integrated USB capabilities to build a simple yet effective USB-powered fan controller. The hardware-centric design offers a neat solution to a common cooling need with minimal external components.
By combining the AN2131QC’s native USB interface with efficient PWM motor control through a MOSFET, hobbyists and electronics enthusiasts can gain valuable experience in USB device design, power electronics, and practical system integration.
While this article avoids code and formulas, it lays out a clear path to constructing a device that is both educational and functional. The AN2131QC, with its ease of integration, is an excellent platform to bring such USB-powered projects to life.
总办事处

Utsource Holding Company Limited 58474938-000-06-24-A
1111 Sullivan St Irvine, CA 92614 U.S.A.

电话:

邮件:
网址: https://www.utsource.us
网址: https://utsource.newpages.com.my/
网址: https://utsource.onesync.my/

其他办事处

Mexico
Eje Central Lazaro Cardenas No.13 Piso 1005 Col.centro C.P.06050 Mexico,D.F.

电话:
手机:
邮件:

Germany
Germany.

电话:
手机:
邮件:

Hong Kong
FLAT/RM 22 5/F WAH LUEN CENTRE 15-21 WONG CHUK YEUNG STREET FOTAN NT HONG KONG.

电话:
邮件:

游览 : 首页 - 分类 - 公司 - 地区 - 标签 - 商品 - 消息与促销 - 工作征聘 - 手机版 - 谷歌 - 搜索引擎优化结果

NEWPAGES

  • US 14320
  • GB 12633
  • CA 10286
  • AU 8651
  • IE 6086
  • BR 2483
  • NZ 2062
  • SG 835
人 在线
Seni Jaya Logo
Brochure
Download
Our PackageContact Us