아두이노 L293D 모터드라이버 쉴드 (1A Motor Shield For Arduino)
판매가격 : 14,300원 (부가세 포함)
상품코드 :[6443]ZAS-DFR-DRI0001
배송일 :당일발송
제조사 :DFRobot
브랜드 :DFRobot [브랜드몰 바로가기]
남은수량 : 1개
구매수량 :
총 금액 :
추가&대량구매 요청 053-588-4080

  • 상품상세
  • 관련상품
  • 배송/교환/반품 안내
  • 상품리뷰

L293을 사용하여 7~12V의 DC 모터 제어를 할 수 있는 쉴드입니다. 아두이노 우노, 듀에밀라노브, 메가에 끼워서 사용할 수 있습니다.




PinFunction
Digital 4Motor 2 Direction control
Digital 5Motor 2 PWM control
Digital 6Motor 1 PWM control
Digital 7Motor 1 Direction control

위와 같이 핀을 연결한 후에 다음의 소스코드를 업로드하여 사용할 수 있습니다.

//This motor shield use Pin 6,5,7,4 to control the motor
// Simply connect your motors to M1+,M1-,M2+,M2-
// Upload the code to Arduino/Roboduino
// Through serial monitor, type 'a','s', 'w','d','x' to control the motor
// www.dfrobot.com
// Last modified on 24/12/2009
 
int EN1 = 6; 
int EN2 = 5;  //Roboduino Motor shield uses Pin 9
int IN1 = 7;
int IN2 = 4; //Latest version use pin 4 instead of pin 8
  
 
 
void Motor1(int pwm, boolean reverse)
        {
          analogWrite(EN1,pwm); //set pwm control, 0 for stop, and 255 for maximum speed
         if(reverse)
         {
          digitalWrite(IN1,HIGH);   
         }
        else
        {
          digitalWrite(IN1,LOW);   
         }
        
         
void Motor2(int pwm, boolean reverse)
        {
          analogWrite(EN2,pwm);
         if(reverse)
         {
          digitalWrite(IN2,HIGH);   
         }
        else
        {
          digitalWrite(IN2,LOW);   
         }
        
        
void setup()
{
    int i;
   // for(i=6;i<=9;i++) //For Roboduino Motor Shield
   // pinMode(i, OUTPUT);  //set pin 6,7,8,9 to output mode
 
    for(i=4;i<=7;i++)  //For Arduino Motor Shield
    pinMode(i, OUTPUT);  //set pin 4,5,6,7 to output mode
 
    Serial.begin(9600);  
}
 
 
void loop()
{
  int x,delay_en;
  char val;
  while(1)
  {
    val = Serial.read();
    if(val!=-1)
       {
          switch(val)
           {
             case 'w'://Move ahead
                        Motor1(100,true);  //You can change the speed, such as Motor(50,true)
                        Motor2(100,true);
                       
                         break;
             case 'x'://move back
                        Motor1(100,false);
                        Motor2(100,false);
                         break;
             case 'a'://turn left
                        Motor1(100,false);
                        Motor2(100,true);
                         break;      
             case 'd'://turn right
                        Motor1(100,true);
                        Motor2(100,false);
                        break;  
               case 's'://stop
                        Motor1(0,false);
                        Motor2(0,false);
                         break;
                                   
           }    
         
       }
            
  }                          
}


INTRODUCTION

This Motor shield  for Arduino uses L293 chip which allow to drive two 7-12V DC motors with maximum 1A current. This shield can be directly mount onto standard Arduino Duemilanove and Arduino Mega. 

 

SPECIFICATION

·         2 way 7-12V motor drive 

·         Up to 1A current each way

·         PIN 4,5,6,7 are used to drive two DC motors

·         Support PWM speed control 

 

DOCUMENTS

·         Manual

SHIPPING LIST

·         1A Motor Shield  For Arduino  x1

 

메카리워즈






견적요청
구매대행
퀵/방문수령
후불결제
기술문의