รหัสสินค้า | AG00761 |
หมวดหมู่ | Motor Drive / Shield |
ราคา | 985.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
This is an ultra small Dual DC motor driver for some room limited projects. UVLO (Under Voltage Latch-Out) features a safe guard for your system. It is very considerate to own an Photo Coupler isolation for all the signals in case of that the motor's Reverse Current would interfere the control signals. Besides all, all the interfaces includes ESD (electro-static discharge) protection.
Features:
Shipping List:
Tutorial
This tutorial will cover how to use PWM to control a motor using the shield. Do the wiring according to the Connection Diagram below, and then upload the sample code below to the Arduino card, here we use a arduino UNO as the controller, you could see your motor run forward for 3 second and then run reversely for another 3 seconds and repeat this behavior then.
Requirements
Hardware
1 x DFRduino UNO (or similar)
1 x This 7A Dual DC Motor Driver
2 x DC Motor
1 x Fuse@20A
Jumper wires
Software
Arduino IDE Click to Download Arduino IDE from Arduino®.
Connection Diagram
Facility Safety and the Personal Safety: Please add a fuse@20A between the Power source and this shield.
Installation Tips
The backside of the driver, as right-hand picture shows, that its conducting layer can be very wide, so you should take some measurements to ensure it won't short-circuit, like applying 1mm layer conductive epoxy or any other similar materials.
Pluggable Connector
You may find that the connector is designed as pluggable type to adapt with Male or Female wires.
/*
* @file Motor driver DRI0042_Test.ino
* @brief DRI0042_Test.ino Motor control program
*
* control motor positive inversion
*
* @author bernie.chen@dfrobot.com
* @version V1.0
* @date 2016-8-10
*/
const int IN1=5;
const int IN2=4;
const int ENA=6;
const int IN3=8;
const int IN4=7;
const int ENB=9;
void setup() {
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(ENA, OUTPUT);
pinMode(IN4, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(ENB, OUTPUT);
}
void loop() {
Motor1_Brake();
Motor2_Brake();
delay(100);
Motor1_Forward(200);
Motor2_Forward(200);
delay(1000);
Motor1_Brake();
Motor2_Brake();
delay(100);
Motor1_Backward(200);
Motor2_Backward(200);
delay(1000);
}
void Motor1_Forward(int Speed)
{
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
analogWrite(ENA,Speed);
}
void Motor1_Backward(int Speed)
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
analogWrite(ENA,Speed);
}
void Motor1_Brake()
{
digitalWrite(IN1,LOW);
digitalWrite(IN2,LOW);
}
void Motor2_Forward(int Speed)
{
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
analogWrite(ENB,Speed);
}
void Motor2_Backward(int Speed)
{
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
analogWrite(ENB,Speed);
}
void Motor2_Brake()
{
digitalWrite(IN3,LOW);
digitalWrite(IN4,LOW);
}
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,393,408 ครั้ง |
ผู้ชมทั้งหมด | 5,896,486 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 16 ก.ย. 2568 |