Please login to use this feature. You can use this feature to add the product to your favourite list.
Close
You have added this product to your favorite list. Check My Favourite
Close
You have removed this product from your favourite list.
Close
Please login to use this feature. You can use this feature to add the company to your favourites list.
Close
This company has been added successfully. Check My Favourite
Close
This company has been removed from your favourite list.
Close
Please login to use this feature. You can use this feature to add the company to your inquiry cart.
Close
This company has been added to your inquiry cart.
Close
This company has been removed from your inquiry cart.
Close
This product has been added to your inquiry cart.
Close
This product has been removed from your inquiry cart.
Close
Maximum number of Product/Company has been reached in inquiry cart.
Close
Utsource Holding Company Limited
Utsource Holding Company Limited 58474938-000-06-24-A
Onesync AI SSM
Business Nature:

Manufacturer Supplier Wholesaler

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.
Main Office

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

Tel:

Email:
Website: https://www.utsource.us
Website: https://utsource.newpages.com.my/
Website: https://utsource.onesync.my/

Other Office

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

Tel:
Tel:
Email:

Germany
Germany.

Tel:
Tel:
Email:

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

Tel:
Email:

Browse by : Home - Classifieds - Companies - Location - Tags - Products - News & Promotion - Job Vacancy - Mobile Website - Google - SEO Results

NEWPAGES

  • US 12084
  • GB 10601
  • CA 8719
  • AU 7588
  • IE 5102
  • BR 1899
  • SG 916
  • NZ 859
People Online
Seni Jaya Logo
Brochure
Download
Our PackageContact Us