FIT0458

FIT0458 Datasheet


Micro DC Motor with SKU FIT0458

Part Datasheet
FIT0458 FIT0458 FIT0458 (pdf)
PDF Datasheet Preview
Micro DC Motor with SKU FIT0458

Contents
• 1 Introduction
• 2 Specification
• 3 Pin Description
• 4 Tutorial

Ready to work Wiring Diagram Interrupt Port with Different Board Encoder Sample Code 1 Encoder Sample Code2
• 5 More

Introduction

This is the DFRobot Micro DC geared motor with encoder. It is a motor with a 120:1 gearbox and an integrated quadrature encoder that provides a resolution of 16 pulse single per round giving a maximum output of 1920 within one round. With an Arduino controller and motor driver, applications for this might include a closed-loop PID control or PWM motor speed control. This motor is an ideal option for mobile robot projects. The copper output shaft, embedded thread and reinforced connector greatly extends the motor's service life.

Specification
• Gear ratio 120:1
• No-load speed 6V 160 rpm
• No-load speed 3V 60 rpm
• No-load current 6V 0.17A
• No-load current 3V 0.14A
• Max Stall current 2.8A
• Max Stall torque 0.8kgf.cm
• Rated torque 0.2kgf.cm
• Encoder operating voltage 4.5~7.5V
• Motor operating voltage 3~7.5V Rated voltage 6V
• Operating ambient temperature -10~+60

Pin Description

Grade

Name

Functional Description

Motor power supply pin + Motor power supply pin Encoder A phase output

Encoder B phase output Encoder supply GND Encoder supply +
voltage6V

Changes square wave with the output frequency of Motor speed Changes square wave with the output frequency of Motor speed interrupt port
4.5-7.5V

Tutorial

Ready to work
• hardware DFRduino UNO x1 DC power supply x1 L298 x1
• software Arduino IDE Download Arduino IDE

Wiring Diagram

This tutorial is intended to use the encoder, Select D2 pin and D3 pin, Wherein D2 as an interrupt port, D3 as an input pin. In practice, two pins need to ensure that one of pins must be an interrupt pin, and the other definable see the interrupt port with different board .

Interrupt Port with Different Board

Notcie attachInterrupt

If using an Arduino UNO and you want to use interrupt port 0 Int.0 , you need to connect digital pin D2 on the board. The following code is only used in UNO and Mega2560. If you want to use Arduino Leonardo, you should change digital pin D3 instead of digital pin D2. See the link for details

Encoder Sample Code 1
//The sample code for driving one way motor encoder const byte encoder0pinA = 2;//A pin -> the interrupt pin 0 const byte encoder0pinB = 3;//B pin -> the digital pin 3 byte encoder0PinALast int duration;//the number of the pulses boolean Direction;//the rotation direction
void setup

Serial.begin 57600 ;//Initialize the serial port EncoderInit ;//Initialize the module
void loop

Serial.print "Pulse:" Serial.println duration = 0;
delay 100 ;
void EncoderInit

Direction = true;//default -> Forward pinMode encoder0pinB,INPUT attachInterrupt 0, wheelSpeed, CHANGE ;
void wheelSpeed
int Lstate = digitalRead encoder0pinA if encoder0PinALast == LOW && Lstate==HIGH
int val = digitalRead encoder0pinB if val == LOW && Direction

Direction = false //Reverse else if val == HIGH && !Direction

Direction = true //Forward encoder0PinALast = Lstate;
if !Direction duration++ else duration--;
More datasheets: 620A608G | 610A608G | 626N518 | LP1007EXXH00 | 10527B | AOL1702 | 74ABT16374CMTDX | 74ABT16374CMTD | 74ABT16374CSSCX | 74ABT16374CSSC


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 FIT0458 Datasheet file may be downloaded here without warranties.

Datasheet ID: FIT0458 508952