pcDuino配件 arduino 电机模块 电机驱动模块 Motor Shield

价格:
US $12.10
国内运费:
$ 1.5
批发 价格:
数量 价格
1 - 3 $12.10
4 - 7 $12.10
8 - 15 $12.10
16 - 20 $12.10
21 - 99 $12.10
100+ 折扣咨询
数量:
- +
预估重量:
100 克
运费:
US $3.51 to United States via Usps
运输时间:
10-14
总计 价格:
1 x $12.10 + $1.5 + $3.51 = $17.11
 
请指定产品的所有参数。
对不起,这个组合已经售完。
×
Zoomloader
将产品添加到您的购物车...
一个新的商品已被添加到您的购物车。
你现在有 0 您的购物车中的项目。
收藏 0
+加入我的最爱 +提问

pcDuino 官方网站:
http://www.pcduino.com

pcDuino Cortex-A8 微型电脑:
http://item.taobao.com/item.htm?id=19067455821

Introduction

The Motor Shield is a perfect platform for robotics and mechanical applications. It enables the Arduino to drive two brushed DC motors or one 4-wire two-phase stepper motor. Based on the H-bridge driver Chip L298N motor driver integrated circuit, it requires a 6V to 15V power supply to power the motor and also includes an on-board 5V voltage regulator for powering the main Arduino board. Additional plug and play 2.54mm spacing Grove sensors can be connected to the 13 on-board Grove connectors.


Features

  • Standard Arduino compatible
  • Pulse-width modulated speed control mode
  • 4 direction indicator lights
  • Compatible with Linker Kit 2.54mm spacing Grove plug and play sensors
  • Extra large heat sink helps handle big loads
  • Supports up to 14 servos

CAUTION:

The Driver IC and Heat sink may become very hot when working with current more than 1000mA.

Specifications

ItemMinTypicalMaxUnitLogic Control VoltageMotor Supply VoltageOutput VoltageOutput Current( For Each Channel)Output Duty rangeDimensionNet Weight

4.5 5 5.5 V
6 / 15 V
0 / Vinput -1 V
/ / 2000 * mA
0%~100% /
68.5x54.5x29.5 mm
37 g

* Recommend maximum duty <50% at full load

Interface Function

Pin NameDirectionConnection to ArduinoDescriptionVCCVS, GNDEAEBIN1IN2IN3IN4M1-, M1+M2-, M2+

/ VCC Power supply selector
/ / Power Supply for Motor, 6V - 15V
Input D9 TTL Compatible Enable Input of Bridge A
Input D10 TTL Compatible Enable Input of Bridge B
Input D8 TTL Compatible Inputs of the Bridge A
Input D11 TTL Compatible Inputs of the Bridge A
Input D12 TTL Compatible Inputs of the Bridge B
Input D13 TTL Compatible Inputs of the Bridge B
Output / Outputs of the Bridge A
Output / Outputs of the Bridge B

Usage

Hardware Installation

Connect DC motor to the motor shield Output Pins M1+& M1-(M2+& M2-), if using a 4-wire stepper motor, make sure the 4 Pins are correctly connected. And connect the drive voltage (The voltage needed is upon the motor used, Refer to the motor datasheet) to the Power supply terninals.

As the jumper J4 inserted, Arduino can be powered by the drive voltage via a on-board voltage regulator, which regulate the drive voltage to 5v.

Software

Download the Motor shield Demo code and open the Motor_shield_demo_code sketch. Select the corresponding Arduino board in tools-boards and serial port in tools-serial port.

Upload the sketch to your arduino board, then you would found the 2 motors begin to work. If you power the motor shield via the power terminal and the power jumper J4 was inserted, you can remove the USB cable now. Speed control is achieved through conventional PWM which can be obtained from Arduino's PWM output D9(EA) and D10(EB). Using the function analogWrite() to generate the drive PWM:

int speedpinA=9;//enable motor A
int speedpinB=10;//enable motor B
int spead =127;//define the spead of motor
......
analogWrite(speedpinA,spead);//AnalogWrite to Generate PWM to control the motor speed
analogWrite(speedpinB,spead);

And Set the Digital D8(IN1) and D11(IN2) to control the motor attached to OUT1/2, while digital D12(IN3) and D13(IN4) to control motor attached to OUT3/4.

int pinI1=8;//define I1 interface
int pinI2=11;//define I2 interface
......
digitalWrite(pinI2,HIGH);//turn DC Motor A move clockwise
digitalWrite(pinI1,LOW);

Follows the logic between EA(B) and INx with motor motion:

EA(B)IN1(IN3)IN2(IN4)Motion of MotorA(B)01111

x x Stop
0 0 Stop
0 1 Clockwise
1 0 Anticlockwise
1 1 Stop
 

 /*

 LinkSprite Stepper Motor Control - one revolution
 
 Adapts the Stepper example for use with the inkSprite motor shield.
 This program drives a unipolar or bipolar stepper motor
 by using the included Stepper library of the Arduino.
 The motor is attached to the inkSprite motor shield and an Arduino.
 
 The digital pins 8,11,12,13 drive the L298N and are used when creating the stepper object
 Digital pins 9 and 10 must be high to enable the chip.
 
 The motor should revolve one revolution in one direction, then
 one revolution in the other direction. 
 
 */
 
#include <Stepper.h>
 
const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution
// for your motor
 
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8,11,12,13);           
 
void setup() {
  // set the speed at 60 rpm:
  myStepper.setSpeed(60);
  // initialize the serial port:
  Serial.begin(9600);
  pinMode(9,OUTPUT);
  pinMode(10,OUTPUT);
  digitalWrite(9,HIGH);
  digitalWrite(10,HIGH);
}
 
void loop() {
  // step one revolution  in one direction:
  Serial.println("clockwise");
  myStepper.step(stepsPerRevolution);
  delay(500);
 
step one revolution in the other direction:
  Serial.println("counterclockwise");
  myStepper.step(-stepsPerRevolution);
  delay(500);
}

淘宝代理 单片机/开发板/学习板 资源