Punte H (H-Bridge) L9110S pentru motor DC

Reduceri! Punte H (H-Bridge) L9110S pentru motor DC Mareste

MZWGWD_module-L9110s

Produs nou

Acest produs nu mai este in stoc

3,24 lei cu TVA

-7,71 lei

10,95 lei

Descrierea produsului:

Punte H dubla, poate fi folosita pentru a controla viteza si sensul a doua motoare.

ATENTIE - Produsul are nevoie de racire adecvata in functie de nivelul intensitatii curentului utilizat. In cazul in care racirea nu este asigurata corespunzator, acestea se vor defecta si va duce automat la pierderea garantiei.

Pentru racire este nevoie sa atasati un radiator (nu este inclus) si sa asigurati un flux de aer corespunzator: carcasa sa fie aerisita sau sa folositi un ventilator (nu este inclus)

Specificatii tehnice:

Tensiune de alimentare: 2.5 - 12 V
Curent pe fiecare canal: 800 mA
Dimensiuni: 29x23 mm

Datasheet: l9110.pdf

Exemplu conectare:

Pentru realizarea acestui exemplu de conectare aveti nevoie de urmatoarele:

1x Placa de dezvoltare UNO || Referinta: TXVMOK_DB-UNO-R3
1x Sursa alimentare 9V 1A || Referinta LEVUOQ_PSU-9V-1A
1x Motoras curent continuu 3-6V || Referinta UCJSGR_motor_small_2
    diferite fire necesare pentru realizarea legaturilor electrice

  1. Conectati motorasul DC la unul din conectorii cu surub ai modulului.
  2. Faceti urmatoarele legaturi intre modulul L9110 si placa UNO:
    L9110 __________ UNO
    GND __________ GND
    VCC __________ 5V
    B-IA __________ D10
    B-IB __________ D11
  3. Alimentati placa de dezvoltare UNO de la sursa 9V 1A si conectati-o la un PC.
  4. Incarcati codul de mai jos:

Exemplu cod:

/*
HG7881_Motor_Driver_Example - Arduino sketch

This example shows how to drive a motor with using HG7881 (L9110) Dual
Channel Motor Driver Module. For simplicity, this example shows how to
drive a single motor. Both channels work the same way.

This example is meant to illustrate how to operate the motor driver
and is not intended to be elegant, efficient or useful.

Connections:

Arduino digital output D10 to motor driver input B-IA.
Arduino digital output D11 to motor driver input B-IB.
Motor driver VCC to operating voltage 5V.
Motor driver GND to common ground.
Motor driver MOTOR B screw terminals to a small motor.

Related Banana Robotics items:

BR010038 HG7881 (L9110) Dual Channel Motor Driver Module
https://www.BananaRobotics.com/shop/HG7881-(L9110)-Dual-Channel-Motor-Driver-Module

https://www.BananaRobotics.com
*/

// wired connections
#define HG7881_B_IA 10 // D10 --> Motor B Input A --> MOTOR B +
#define HG7881_B_IB 11 // D11 --> Motor B Input B --> MOTOR B -

// functional connections
#define MOTOR_B_PWM HG7881_B_IA // Motor B PWM Speed
#define MOTOR_B_DIR HG7881_B_IB // Motor B Direction

// the actual values for "fast" and "slow" depend on the motor
#define PWM_SLOW 50 // arbitrary slow speed PWM duty cycle
#define PWM_FAST 200 // arbitrary fast speed PWM duty cycle
#define DIR_DELAY 1000 // brief delay for abrupt motor changes

void setup()
{
Serial.begin( 9600 );
pinMode( MOTOR_B_DIR, OUTPUT );
pinMode( MOTOR_B_PWM, OUTPUT );
digitalWrite( MOTOR_B_DIR, LOW );
digitalWrite( MOTOR_B_PWM, LOW );
}

void loop()
{
boolean isValidInput;
// draw a menu on the serial port
Serial.println( "-----------------------------" );
Serial.println( "MENU:" );
Serial.println( "1) Fast forward" );
Serial.println( "2) Forward" );
Serial.println( "3) Soft stop (coast)" );
Serial.println( "4) Reverse" );
Serial.println( "5) Fast reverse" );
Serial.println( "6) Hard stop (brake)" );
Serial.println( "-----------------------------" );
do
{
byte c;
// get the next character from the serial port
Serial.print( "?" );
while( !Serial.available() )
; // LOOP...
c = Serial.read();
// execute the menu option based on the character recieved
switch( c )
{
case '1': // 1) Fast forward
Serial.println( "Fast forward..." );
// always stop motors briefly before abrupt changes
digitalWrite( MOTOR_B_DIR, LOW );
digitalWrite( MOTOR_B_PWM, LOW );
delay( DIR_DELAY );
// set the motor speed and direction
digitalWrite( MOTOR_B_DIR, HIGH ); // direction = forward
analogWrite( MOTOR_B_PWM, 255-PWM_FAST ); // PWM speed = fast
isValidInput = true;
break;

case '2': // 2) Forward
Serial.println( "Forward..." );
// always stop motors briefly before abrupt changes
digitalWrite( MOTOR_B_DIR, LOW );
digitalWrite( MOTOR_B_PWM, LOW );
delay( DIR_DELAY );
// set the motor speed and direction
digitalWrite( MOTOR_B_DIR, HIGH ); // direction = forward
analogWrite( MOTOR_B_PWM, 255-PWM_SLOW ); // PWM speed = slow
isValidInput = true;
break;

case '3': // 3) Soft stop (preferred)
Serial.println( "Soft stop (coast)..." );
digitalWrite( MOTOR_B_DIR, LOW );
digitalWrite( MOTOR_B_PWM, LOW );
isValidInput = true;
break;

case '4': // 4) Reverse
Serial.println( "Fast forward..." );
// always stop motors briefly before abrupt changes
digitalWrite( MOTOR_B_DIR, LOW );
digitalWrite( MOTOR_B_PWM, LOW );
delay( DIR_DELAY );
// set the motor speed and direction
digitalWrite( MOTOR_B_DIR, LOW ); // direction = reverse
analogWrite( MOTOR_B_PWM, PWM_SLOW ); // PWM speed = slow
isValidInput = true;
break;

case '5': // 5) Fast reverse
Serial.println( "Fast forward..." );
// always stop motors briefly before abrupt changes
digitalWrite( MOTOR_B_DIR, LOW );
digitalWrite( MOTOR_B_PWM, LOW );
delay( DIR_DELAY );
// set the motor speed and direction
digitalWrite( MOTOR_B_DIR, LOW ); // direction = reverse
analogWrite( MOTOR_B_PWM, PWM_FAST ); // PWM speed = fast
isValidInput = true;
break;

case '6': // 6) Hard stop (use with caution)
Serial.println( "Hard stop (brake)..." );
digitalWrite( MOTOR_B_DIR, HIGH );
digitalWrite( MOTOR_B_PWM, HIGH );
isValidInput = true;
break;

default:
// wrong character! display the menu again!
isValidInput = false;
break;
}
} while( isValidInput == true );

// repeat the main loop and redraw the menu...
}

         Dupa incarcarea codului deschideti "Serial Monitor" setati-l la 9600 baud si controlati motorul introducand comanda dorita urmata de tasta enter:

Continutul coletului:

1x Punte H (H-Bridge) L9110S pentru motor DC

Nu sunt review-uri în acest moment.

Scrie un review (doar daca ai cumparat produsul, pentru intrebari sau nelamuriri foloseste pagina de contact)

Punte H (H-Bridge) L9110S pentru motor DC

Punte H (H-Bridge) L9110S pentru motor DC

30 alte produse în aceeași categorie: