Chipkit Max32 and L9110 fan module example

In this example we connect a Chipkit Max32 to a L9110 fan module. This is a commonly found, basic low cost module which consists of an L9110 chip and a small motor attached. You need 4 connections between the arduino and the module. VCC, GND , INA and INB.

Description

The ASIC device control and drive motor design two-channel push-pull power amplifier discrete circuits integrated into a monolithic IC, peripheral devices and reduce the cost, improve the reliability of the whole. This chip has two TTL / CMOS compatible with the level of the input, with good resistance; two output terminals can directly forward and reverse movement of the drive motor, it has a large current driving capability, each channel through 750 ~ 800mA of continuous current, peak current capability up to 1.5 ~ 2.0A; while it has a low output saturation voltage; built-in clamp diode reverse the impact of the current release inductive load it in the drive relays, DC motors, stepper motor or switch power tube use on safe and reliable. L9110 is widely used in toy car motor drives, stepper motor drive and switching power tube circuit.

L9110 fan module

Parts List

name Link
Chipkit Max32 Digilent chipKIT Max32 Microcontroller Board with Mega R3 Headers – 410-202
L9110 module L9110 Fan Module Robot Design and Development Control
connecting wire Free shipping Dupont line 120pcs 20cm male to male + male to female and female to female jumper wire

 

Schematic/Layout

Lets look at how to connect the Chipkit Max32 to the module

max32 and L9110

Code

No libraries needed in this example, fairly basic example this one, upload the sketch and the fan will just run

 

[codesyntax lang=”cpp”]

int INA = 8; 
int INB = 9;

void setup() 
{ 
pinMode(INA,OUTPUT); 
pinMode(INB,OUTPUT); 
}

void loop() 
{ 
digitalWrite(INA,LOW);
digitalWrite(INB,HIGH); 
delay(1000); 
}

[/codesyntax]

a second example

[codesyntax lang=”cpp”]

int INA = 8; 
int INB = 9;

void setup() 
{ 
pinMode(INA,OUTPUT); 
pinMode(INB,OUTPUT); 
}

void loop() 
{ 
digitalWrite(INA,LOW);
digitalWrite(INB,HIGH); 
delay(5000); 
digitalWrite(INA,HIGH);
digitalWrite(INB,LOW); 
delay(5000); 
}

[/codesyntax]

 

Link

L9110 Fan Module for Arduino

Related posts

Chipkit Max32 and ADXL335 accelerometer example

Chipkit Max32 and LSM303 Accelerometer example

Chipkit Max32 and LSM303 Magnetometer example

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More