12V DC Motor 251rpm w/Encoder SKU FIT0186
Part | Datasheet |
---|---|
![]() |
FIT0186 (pdf) |
PDF Datasheet Preview |
---|
12V DC Motor 251rpm w/Encoder SKU FIT0186 Contents • 1 Introduction • 2 Specification • 3 Encoder Diagram • 4 Encoder Sample Code Introduction Warning Do not screw too far into the mounting holes as the screws can hit the gears. Manufacturer recommends screwing no further than 3mm 1/8" into the screw hole. Specification • Gear ratio • No-load speed 251 + 10% RPM • No-load current 350 mA • Start Voltage V • Stall Torque 18 Kg.com • Stall Current 7 A • Insulation resistance 20 M • EncoderOperating Voltage 5 V • Encoder type Hall • Encoder Resolution 16CPR motor shaft /700CPR gearbox shaft • Weight 205g Encoder Diagram ====Diagram for UNO==== ====Interrupt Port with Different Board==== Notcie:attachInterrupt For example,with UNO board, you want to use interrupt port 0 int.0 . You should connect digital pin 2 with the board. So, the following code is only used in UNO and Mega2560. If you want to use Leonardo or Romeo, you should change digital pin 3 instead of digital pin See the link for detail Encoder Sample Code //The sample code for driving one way motor encoder const byte encoder0pinA = 2;//A pin -> the interrupt pin 0 const byte encoder0pinB = 4;//B pin -> the digital pin 4 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--; Powered By DFRobot 2008-2017 |
More datasheets: AS1901C22-T | AS1901C26 | AS1903C23 | AS1902C23 | AS1902C31 | FQPF9N50CYDTU | FQPF9N50C | FQP9N50C | FQPF9N50CT | 1216 |
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 FIT0186 Datasheet file may be downloaded here without warranties.