Cytron Technologies MO-SPG-30E Series User manual

ROBOT.HEADtoTOE
ProductUser’sManual–MOSPG30ExxxK
1.0IntroductionandOverview
Figure1.0DCgearedmotorwithencoderanditsremovablecover
This document explains the general method to use the encoder for MOSPG30EXXXK. “XXX”
is referring to the gear ratio of Cytron’s SPG30 Geared Motor series which is either 20, 30, 60,
150*, 200 or 300*. This DC Geared Motor with Encoder is formed by a quadrature hall effect
encoder board which is designed to fit on the rear shaft of Cytron’s SPG30 Geared Motor series.
Two hall effect sensor are placed 90 degree apart to sense and produce two output A and B which
is 90 degree out of phase and allowing the direction of rotation to be determined. This encoder
provides 3 counts per revolution of the rear shaft. Please note that the encoder is mounted at the
rearshaft,theminimumresolutionisdependsonthemotor’sgearratio.
*TheactualgearratioforSPG30E150Kis120:1
*TheactualgearratioforSPG30E300Kis270:1
FeaturesofQuadratureHallEffectEncoder:
●Operatingvoltage:4.5Vto5.5V
●Twodigitaloutputs(Quadraturewaveform)
●Smallinsizeandlightinweight
●Resolution:3pulsesperrearshaftrevolution,singlechanneloutput.
●60countspermainshaftrevolutionfor1:20gearedmotor
●90countspermainshaftrevolutionfor1:30gearedmotor
●180countspermainshaftrevolutionfor1:60gearedmotor
●450360countspermainshaftrevolutionfor1:120gearedmotor(SPG30E150K)
●600countspermainshaftrevolutionfor1:200gearedmotor
●900810countspermainshaftrevolutionfor1:270gearedmotor(SPG30E300K)
CreatedbyCytronTechnologiesSdn.Bhd.–AllRightsReserved 3

ROBOT.HEADtoTOE
ProductUser’sManual–MOSPG30ExxxK
1.1StateDiagramsandWaveform
StateDiagram
ClockwiseRotation
CounterClockwiseRotation
SquarequadraturewaveformforChannelAandB(Clockwise)
CreatedbyCytronTechnologiesSdn.Bhd.–AllRightsReserved 4

ROBOT.HEADtoTOE
ProductUser’sManual–MOSPG30ExxxK
2.0PinDescriptions
Figure2.0202006connectorpindescriptions
Pin
Name
Description
1
Motor
Outputofmotordriver
2
Motor+
Outputofmotordriver
3
HalleffectsensorVcc
Supplyvoltageforsensorcircuit(4.5V5.5V)
4
HalleffectsensorGND
Ground
5
ChannelA
Outputoftheencoder
6
ChannelB
Outputoftheencoder
CreatedbyCytronTechnologiesSdn.Bhd.–AllRightsReserved 5

ROBOT.HEADtoTOE
ProductUser’sManual–MOSPG30ExxxK
3.0SampleSchematic
Figure3.0Sampleschematicdiagramwithrespecttosamplesourcecode**
**Schematic above is an example with respect to the sample source code provided. RC4, RC7,
RA2, and RA5 can be replaced by any other digital I/O pins. Besides, for PWM control, user can
also use CCP1 instead of CCP2. For Channel A and channel B, this sample (schematic and source
code) shows continuous monitoring of quadrature signals which can be done by any digital I/O pin.
Users are encouraged to modify the schematic and source code to allow use of external interrupt to
count the rising or falling edge of either channel to reduce the processing power used by monitoring
both channel A and B. The encoder output is open drain or sometime called NPN output. Users
need to pullup resistor to any voltage user want. As an example circuit above, channel A and
channel B are pullup with 1K resistor to 5V, therefore it will output ground and 5V when the motor
rotates.
CreatedbyCytronTechnologiesSdn.Bhd.–AllRightsReserved 7

ROBOT.HEADtoTOE
ProductUser’sManual–MOSPG30ExxxK
4.0WARRANTY
● Productwarrantyisvalidfor6months.
● Warrantyonlyappliestomanufacturingdefect.
● Damagedcausedbymisuseisnotcoveredunderwarranty
● Warrantydoesnotcoverfreightcostforbothways.
Preparedby
CytronTechnologiesSdn.Bhd.
No.16,JalanIndustriRinganPermatangTinggi2,
KawasanIndustriRinganPermatangTinggi,
14100SimpangAmpat,
Penang,Malaysia.
Tel: +6045453867
Fax: +60185866083
URL: www.cytron.com.my
Email:[email protected]
CreatedbyCytronTechnologiesSdn.Bhd.–AllRightsReserved 8
Table of contents
Other Cytron Technologies Engine manuals