SparkFun Auto pHAT Hookup Guide
Assembly for the Auto pHAT is fairly straight forward. It plugs directly into the GPIO pins of a Raspberry Pi. Most importantly, users need pay attention to the orientation of the pHAT and double check that the pin are lined up properly. below are a few examples for users to follow.
Users will want to attach additional accessories to the Auto pHAT.
Servos are attached to the 3x4 right angle header. The channels and pins are indicated on the top and right of the header, when reading the silk screen. Below is an example with servos connected to channels 0 and 3. Users should pay close attention to the orientation of the servo connector, in order to match up the pin connections properly.
Basic Servo Control for Beginners
February 25, 2020
DC motors should be connected to the inner screw terminals indicated by
MTRB on the silk screen. Below, is an example of a pair of motors connected to the Auto pHAT. The orientation of the wires (between
2) shouldn't matter as the drive direction can be configured in software.
Note: Users unfamiliar with DC motors should check out our motors tutorial.
Motors and Selecting the Right One
December 12, 2013
Connecting quadrature encoders to the Auto pHAT is relatively simple with the screw terminals. Users should use the silk screen on the board (
-) to match the connections for the encoder. The datasheet for other encoders should be used if the connections aren't apparent or labeled on the product.
(Click images to enlarge)
For the hobby motor with encoder, that is offered in our catalog, pin connections match the Auto pHAT screw terminal layout; with the pin map shown below. (For more details, users can check out the datasheet.)
Note: Users who are unfamiliar with quadrature encoders and their operation should check out our Adventures in Science blog post on encoders.
Another consideration is the clearance of the pHAT from other components. Users can cover the header and screw terminal through hole pins with an insulator to avoid shorting the pins. Additionally, if the clearance between the pHAT and other components (including things like a the heat sink case for the Raspberry Pi 4) becomes an issue, a header should be used to increase the spacing.
To configure the Raspberry Pi for use with the Auto pHAT, the PIXEL desktop is recommended. It will be the most convenient for users, but users can still use other methods like SSH to remotely access the Raspberry Pi. To utilize the desktop, users will need to add peripherals like a monitor and keyboard.