Wellcome a new tutorial of Robotic-Studio, today we analyze a new driver for controller a DC motor. (L9110 Dual-Chanel H-Bridge).
This component is useful for controlling 2 motors low amperage DC (maximum 1A) and a relatively low torque, but If you want user for simple robotics projects. This is your engine!.
The L9110 is a printed circuit comprising for 2 chipset (L9110S model), working between 2.5V and 12V (we recommend 5 to 12 volts) and It use an amperage of 800mA . Dimensions of this driver are 3.1 cm x 2.2 cm x 1.2 cm and weighs 7g.
The cost of driver is 3.53 € ,so there is no excuse to buy it: P, You can find where to buy in the breakdown of components that will follow.
For this tutorial, you will be required:
Now, I describe what you need for the tutorial and where to get the material:
Well once you have all the components, let's get down to work. For this I show a schematic of how you must interconnect the various components for this to work.
Importantly, we are currently feeding our motor 5v through our driver. This driver as explained above may work up to 12v (but never more than 1 amp) , or burn it. In order to achieve that we will reach 12v supply this voltage via an external source (This will do it in future tutorials), but basically would power the driver with the external source instead of the Arduino.
Once assembled everything correctly (check the connections that this can drive you crazy). We connect our Arduino to the computer and add the code that I put below:
int M1_Left = 12; //Direccion
int M1_Right = 11; //Direccion
pinMode(M1_Right , OUTPUT);
delay(1000); //1 sg
delay(1000); //1 sg
void turn(int direction)
boolean inPin1 = LOW;
boolean inPin2 = HIGH;
inPin1 = HIGH;
inPin2 = LOW;
digitalWrite(M1_Right , inPin2);
digitalWrite(M1_Right , LOW);
As we can see in the code, it works in 2 directions through a boolean must define it in the 2 data that you send via the digital output " digitalWrite (M1_Left, inPin1) digitalWrite (M1_Right , inPin2);".
The assessment of this product is 2 out of 5. The most penalizes this product are the quality of the components, because when you carry a while using it, overheats and begins to lose efficiency (even to stand).
It's a shame because otherwise does the job, it's a driver for 2 motors, very small, very cheap and very easy to use.