Circuitos Integrados

Produtos visualizados

L293D - Dual H-Bridge Motor Driver for DC or Steppers Ver maior

L293D - Dual H-Bridge Motor Driver for DC or Steppers

BE15000293

Novo produto

2,46 € com IVA

Adicionar à Lista de desejos

Mais informação

L293D  Push-Pull Four-Channel Motor Driver IC

 

  • 600mA OUTPUT CURRENT CAPABILITY
  • PER CHANNEL
  • 1.2A PEAK OUTPUT CURRENT (non repeti-
  • tive) PER CHANNEL
  • ENABLE FACILITY
  • OVERTEMPERATURE PROTECTION
  • LOGICAL "0" INPUT VOLTAGE UP TO 1.5 V
  • (HIGH NOISE IMMUNITY)
  • INTERNAL CLAMP DIODES

 

 

 

 

Arduino Code:

 

#define E1 10  // Enable Pin for motor 1
#define E2 11  // Enable Pin for motor 2

#define I1 8  // Control pin 1 for motor 1
#define I2 9  // Control pin 2 for motor 1
#define I3 12  // Control pin 1 for motor 2
#define I4 13  // Control pin 2 for motor 2

void setup() {

  pinMode(E1, OUTPUT);
  pinMode(E2, OUTPUT);

  pinMode(I1, OUTPUT);
  pinMode(I2, OUTPUT);
  pinMode(I3, OUTPUT);
  pinMode(I4, OUTPUT);
}

void loop() {

  analogWrite(E1, 153); // Run in half speed
  analogWrite(E2, 255); // Run in full speed

  digitalWrite(I1, HIGH);
  digitalWrite(I2, LOW);
  digitalWrite(I3, HIGH);
  digitalWrite(I4, LOW);

  delay(10000);

  // change direction

  digitalWrite(E1, LOW);
  digitalWrite(E2, LOW);

  delay(200);

  analogWrite(E1, 255);  // Run in full speed
  analogWrite(E2, 153);  // Run in half speed

  digitalWrite(I1, LOW);
  digitalWrite(I2, HIGH);
  digitalWrite(I3, LOW);
  digitalWrite(I4, HIGH);

  delay(10000);
}

Acessórios

Clientes que compraram este produto também compraram: