O1M0001_fan_module

The electric fan is a device that electrically drives the motor to generate air flow. After the internal motor is energized, it drives the blade to rotate and converts the electric energy into wind energy.
Specification
Operating Voltage: 3 to 5V
Operating Current: less than 100mA
Rotate speed: Max 8300
Dimensions: 35*27.1mm
Dimensional drawing

Schematic diagram
Logical table
Input Pin |
Input Pin |
Output Pin |
Output Pin |
Motor |
---|---|---|---|---|
INA |
INB |
OA |
OB |
State |
L |
L |
L |
L |
Brake |
L |
H |
L |
H |
Positive/reverse turn |
H |
L |
H |
L |
Reverse/positive turn |
H |
H |
H |
H |
Brake |
Control fan speed:
INA |
INB |
Direction |
---|---|---|
0 |
PWM |
Positive/reverse turn |
PWM |
0 |
Reverse/positive turn |
Example Code
Arduino IDE:
Please refer to the link to use Arduino IDE: Link
wiring diagram
Digital pin code:
const int ina = 9;
const int inb = 10;
void setup() {
pinMode(ina, OUTPUT);
pinMode(inb, INPUT);
}
void loop() {
digitalWrite(ina, HIGH);
digitalWrite(inb, LOW);
delay(2000);
digitalWrite(ina, LOW);
digitalWrite(inb, HIGH);
delay(2000);
}
PWM pin code:
const char ina = 9;
const char inb = 10;
void setup() {
pinMode(ina, OUTPUT);
pinMode(inb, INPUT);
}
void loop() {
char i=0;
for(i=0; i<256; i++>){
analogWrite(ina, i);
analogWrite(inb, 0);
delay(10);
}
for(i=0; i<256; i++>){
analogWrite(ina, 0);
analogWrite(inb, i);
delay(10);
}
}
End!