DFRobot DFR0508 FireBeetle Covers DC Motor and Stepper Driver User Guide
- June 13, 2024
- DFROBOT
Table of Contents
DFRobot DFR0508 FireBeetle Covers DC Motor and Stepper Driver User Guide
Home > Internet of Things – IOT > FireBeetle
Home > Sensors & Modules > Motors & Actuators & Drivers > DC Motor Drivers
Introduction
FireBeetle Covers-DC Motor & Stepper
Driver SKU:DFR0508
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 fourchannels 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 3.2A@5V. 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.
Features
Support 4 channels DC motors drive
Support 2 channels two-phase four-wire stepper motors drive
Support 4 channels servo drive
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 (5V-USB;3.7V-lithium battery)
Tutorial
Requirements
Take FireBeetle ESP8266 board as an example at here, other Arduino control
boards such as arduino UNO, arduino Mega… 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 Arduino®
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
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:
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.
Sample Code
DC Motor & Stepper Motor Drive
FireBeetle Covers-DC Motor&Stepper Driver can control a stepper motor and 2 DC
motors simultaneously and let them work independent to each other. The test
explains the way to control both stepper motor and DC motors at the same time.
Hardware Connection
Connect the stepper motor to STEPPER1 and DC motor to M4, shown as below.
DC Motor & Stepper Drive Wiring Diagram
Sample Code
Definition of API Function and Macro
Dimension Diagram
Fig4: FireBeetle Covers-OLED12864 Display
FAQ
Q. How could FireBeetle Board-ESP32 control servos with Arduino?
A. ESP32 is incompatible with local servo library files of Arduino IDE itself,
but you can download DFRobot Arduino-Servo library to enable servo drive.
Q. Why the program cannot be downloaded when plug the Motor Expansion
Board?
A. FireBeetle-ESP32 Board V1.0 is conflict with the motor expansion board in
RESET circuit. You need to unplug the expansion board to download and
upload.And DFRobot fixed this problem in the following FireBeetle series.
For any question/advice/cool idea to share, please visit DFRobot Forum.
This is a toggle with link to the top of the page
More
Circuit Diagram
Dimension Diagram
TB6612FND Datasheet
This page was last modified on 8 January 2018, at 15:05.
Content is available under GNU Free Documentation License 1.3 or later unless
otherwise noted.
Privacy policy About DFRobot Electronic Product Wiki and Tutorial: Arduino and
Robot Wiki-DFRobot.com Disclaimers
Read More About This Manual & Download PDF:
References
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>