chipKIT Motor Shield Reference Manual
www.digilentinc.com page 4 of 8
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
There are two Schmitt trigger buffered inputs on connectors J3, J6, J8 and J9 that bring motor speed
feedback signals to the controlling system board. The Digilent motor and gearbox have hall-effect
sensors arranged in a quadrature encoder format. These buffers have 5V tolerant inputs, when
operated at 3.3V.
The quadrature encoder signals are a pair of square waves whose frequency is proportional to motor
rotation speed and with the pulses 90 out of phase. You can determine the motor speed with the
frequency and motor rotation direction by the phase relationship between the two signals.
Stepper Motor Controller
The stepper motor controller has 4 output signals. It is composed of 4 open-drain transistor amplifiers.
The stepper motor driver can be powered by either VIN, or an external power source connected to
J10. If connecting an external power source, JP5 should be removed to prevent shorting the stepper
motor voltages to the input voltage of the chipKIT board.
Servo Motors
The Motor Shield has 4 servo motor connections. They can be powered from VCC5V0 or an external
power source connected to J14. If connecting an external power source, JP6 should be removed. The
voltage of the power source can be measured on analog pin A11 via a resistor divider network (see
the schematic for more details).
I2C Bus and Connectors
The Inter-Integrated Circuit (I2C) Interface provides a medium speed (100K or 400K bps) synchronous
serial communications bus. The I2C interface provides master and slave operation using either 7 bit or
10 bit device addressing. Each device is given a unique address, and the protocol provides the ability
to address packets to a specific device or to broadcast packets to all devices on the bus. Refer to the
Microchip PIC32MX3XX data sheet and the PIC32 Family Reference Manual for detailed information
on configuring and using the I2C interface.
The PIC32MX320 microcontroller on the Uno32 provides for two independent I2C interfaces. The
Motor Shield is designed to provide access to one of these interfaces, I2C #1 (SCL1, SDA1). I2C #1 is
accessed through the standard chipKIT Wire library. Connector J21 provides access to I2C port #1.