DFR0508

DFR0508 Datasheet


FireBeetle Covers-DC Motor & Stepper Driver SKU:DFR0508

Part Datasheet
DFR0508 DFR0508 DFR0508 (pdf)
PDF Datasheet Preview
FireBeetle Covers-DC Motor & Stepper Driver SKU:DFR0508

Introduction

DFRobot FireBeetle series are low power consumption microcontrollers designed for Internet of Things IoT development. FireBeetle Covers-DC Motor & Stepper Driver is a DC motor & Stepper Motor driver designed for FireBeetle Microcontrollers. It can control up to four-channels DC motors / two-phase four-wire stepper motors simultaneously. The motor driver cover integrates a STM8 as its coprocessor, controlling the motor speed and direction. It communicates with Microcontroller via IIC port, supports up 1000Hz refresh rate. The assisted processor STM8 controls motors and set the main control free. It effectively reduces the dependence on MCU pin resources and MCU occupancy. Independant motor control make the multi-motors projects more affordable. Cooperate with DFRobot Arduino Motor Library, it will reduce your development difficulty.

This stepper motor driver adopts 2x TB6612FNG chips and performs excellent in low power consumption application. The consumption current is only 30mA under static state, and motor driver can provide 1.2A output current at 5V and the peak current is Besides, the motor drive supports 4~12V wide-range power input.

FireBeetle Covers-DC Motor & Stepper Driver also provides four independent interfaces to drive servo. So, you can control servo directly. It can be widely applied to intelligent car control and gear control.
• Support 4 channels DC motors drive
• Support 2 channels two-phase four-wire stepper motors drive
• Support 4 channels servo drive
• Up to 1000Hz refresh rate
• Equipped with a STATUS indicator LED

Specification
• Microprocessor STM8S105
• Operating Voltage 3.3~5V Connect to FireBeetle VCC Terminal
• Operating Voltage 30mA
• Motor Drive Chip TB6612FNG
• Motor [null Drive] Voltage 4-12V
• Output current 1.2A single-channel continuous drive current
• Start / Peak Current 2A continuous pulse / 3.2A single pulse
• Communication Port IIC
• IIC Address 0x18
• Dimension 2.28inches x 1.14inches 58mm x 29mm

NOTE the motor power supply must be independent from logic control power supplies!

Function Diagram
• Provide 4-channel servo drive interfaces D6-D9
• Provide 4-channel general motor drive interfaces M1A/M1B, M2A/M2B, M3A/M3B, M4A/M4B .

Fig2 DFR0508 FireBeetle Covers-DC Motor&Stepper Driver

Board Overview

Fig3 DFR0508 FireBeetle Covers-DC Motor&Stepper Driver STATUS Instruction
• LED Mode1 Blink frequency 30Hz , indicating the motor drive chip is waiting for initialization commands from the host.
• LED Mode2 Lighting, indicating the motor drive chip works well control motor operation and wait initialization commands from the host .
• LED Mode3 OFF, indicating communication error of the motor drive chip.

NOTE NC means Not Connected, VCC means Output Voltage of power supply 5VUSB;3.7V-lithium battery

Tutorial

Requirements Take FireBeetle ESP8266 board as an example at here, other Arduino control boards such as arduino UNO, arduino are also can be used.
• Hardware 1 x ESP32/ESP8266 Board 1 x FireBeetle Covers-DC Motor&Stepper Driver 1 x Hybrid Stepper Motor for 3D Printer 3.5kg 1 x DC Motor
• Software Arduino IDE V1.6.x Click to Download Arduino IDE from Please download and install FireBeetle Covers-DC Motor&Stepper Driver library files. About Library installation.

DC Motor Drive FireBeetle Covers-DC Motor&Stepper Driver can control up to 4-channel DC motors simultaneously. There are 4 marked motor connectors M1A&M1B, M2A&M2B, M3A&M3B and M4A&M4B. We’ll show you how to control a DC motor with a Firebeetle or Arduino board. Hardware Connection Connect the DC motor to M1A&M1B port, M1A to anode and M1B to cathode. Generally, you need to connect a motor power 4~12V to Motor PWR port, and connect a logic power 3.3~5V to VCC & GND pins. If you use FireBeetle, you can plug the cover on the board, and connect the external power 4~12V .

DC Motor Drive Wiring Diagram

Sample Code
/*! * Motor.ino * DFRobot's Motor Drive * The example demonstrates four groups D.C motors work together at the same time, contains operations such as rotation, speed adjustment, brakes and so on.
* 2016 * GNU Lesser General Public License
* [LiXin] * V1.0 * 2017-7-31 * */ #include "Arduino.h" #include "Wire.h" #include "DFRobot_MotorStepper.h"
//*This function can be used to start the motor
//*dir Set Orientation

CW or CCW
//void speed uint16_t val
//*This function is used to set the motor speed
//*val Set the speed
0<=val<=4096
//void stop
//*This function is used to stop the motor turning

DFRobot_Motor motor1 M1,A0 ;
void setup //initialize serial communication at 9600 bits per second Serial.begin 115200 //join i2c bus address optional for master Wire.begin //Initialize D.C motor drive chip Group1 motor1.init ;
void loop
//Setting initial velocity Min:0 Max:4096 motor1.speed 4096 //Motor1 rotate in positive direction motor1.start CW delay 2000 ;
//All motors brake and stop rotating motor1.stop ;
delay 2000 Program Function the first group rotate in C.W. Clockwise for 2s and rotate in anti-clockwise for 2s, then stop for 2s and followed by recycling. Functions Create a motor object DFRobot_Motor motor1 M1 represents the first group DC motor M1A + ,M1B Initiate the motor drive, read Product ID and Version ID, and print to the serial port. init Set speed val 0<=val<=4096 the maximum speed is 4096 Set direction and start to rotate start dir=CW rotate in C.W. Clockwise dir=CCW rotate in anti-clockwi se

Stepper Motor Drive

FireBeetle Covers-DC Motor&Stepper Driver can control two-channel two-phase four-wire stepper motors simultaneously. It adopts DC motor interface and control via IIC interface. The test explains the way demonstrates how to control a two-channel two-phase four-wire stepper motor by Arduino main board.

Hardware Connection Connect the stepper motor to STEPPER1 and the power supply of motor should be 4~12V, shown as below.
More datasheets: JS251156-BA | DS371356-CA | DS371406-CA | JS251126-BA | JS211126-AA | JS181126-AA | 160X10269XNTLSS | 19-21SURC/S530-A2/TR8 | 0553-0013-AC-F | 0553-0013-HC-F


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0508 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0508 508806