background image

ROBOT . HEAD to TOE

                                                                    

Product User’s Manual – MO­SPG­30E­xxxK

3.0 Sample Schematic

Figure 3.0 Sample schematic diagram with respect to sample source code**

**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 pull­up resistor to any voltage user want. As an example circuit above, channel A and

   

 

   

 

 

 

 

   

 

 

 

   

 

channel B are pull­up with 1K resistor to 5V, therefore it will output ground and 5V when the motor

   

 

 

 

 

   

 

   

 

 

 

 

 

 

 

 

rotates.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved

 

7

Summary of Contents for MO-­SPG­-30E Series

Page 1: ...ROBOT HEAD to TOE Product User s Manual MO SPG 30E xxxK DC Geared Motor with Encoder MO SPG 30E XXXK User s Manual V1 3 Mar 2014 Created by Cytron Technologies Sdn Bhd All Rights Reserved 1...

Page 2: ...T HEAD to TOE Product User s Manual MO SPG 30E xxxK Index 1 Introduction and Overview 3 2 Pin Descriptions 5 3 Sample Schematic 7 4 Warranty 8 Created by Cytron Technologies Sdn Bhd All Rights Reserve...

Page 3: ...ounts per revolution of the rear shaft Please note that the encoder is mounted at the rear shaft the minimum resolution is depends on the motor s gear ratio The actual gear ratio for SPG30E 150K is 12...

Page 4: ...Manual MO SPG 30E xxxK 1 1 State Diagrams and Waveform State Diagram Clockwise Rotation Counter Clockwise Rotation Square quadrature waveform for Channel A and B Clockwise Created by Cytron Technologi...

Page 5: ...ions Pin Name Description 1 Motor Output of motor driver 2 Motor Output of motor driver 3 Hall effect sensor Vcc Supply voltage for sensor circuit 4 5V 5 5V 4 Hall effect sensor GND Ground 5 Channel A...

Page 6: ...ROBOT HEAD to TOE Product User s Manual MO SPG 30E xxxK Figure 2 1 Rear view of the motor with encoder and cover Created by Cytron Technologies Sdn Bhd All Rights Reserved 6...

Page 7: ...inuous 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...

Page 8: ...under warranty Warranty does not cover freight cost for both ways Prepared by Cytron Technologies Sdn Bhd No 16 Jalan Industri Ringan Permatang Tinggi 2 Kawasan Industri Ringan Permatang Tinggi 14100...

Reviews: