Raspberry Pi 6 Channel Encoder Hat
Description:
This is a board/hat that allows reading 6 encoder channels .
WARNING ! ESD( electrostatic-sensitive device) .
Compatibility :
Models : > 2 (needs the 40 pin connector)
Setting up the environment:
These instructions are for Raspbian. Because it uses the SPI Protocol , we need to enable it .
Setting the SPI Interface:
Type
sudo raspi-config
1.A menu will show (Raspberry Pi Software Configuration Tool)
2.Go to Interfacing options (8)
3.Go to SPI
4. Would you like theSPI interface to be enabled ? YES
5. The SPI interface is enabled. OK
7From the main Menu press finish
Reboot the Raspberry Pi
Installation:
1.First install those packages(they allow access to SPI bus from python) :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-dev python3-dev
cd ~
git clone https://github.com/doceme/py-spidev.git
cd py-spidev
make
sudo make install
2.Please download raspberry_pi_encoder_hat_6_channel-master.zip (it is on the bottom of the page)
3.Unzip the file:
sudo unzip raspberry_pi_encoder_hat_6_channel-master.zip
4. Go to the uncompressed folder
cd Code
The example scripts are inside.
Github repository :
Also the code can be downloaded from here :
https://github.com/robogaia/Raspberry_Pi_Encoder_Hat_6_Channel
Usage:
python ./Test_6_chan_encoder_plate.py
Board Customization:
If you might need any board customization, leave us a message here .
Also you might need :
Schematics:

6_channel_encoder_plate_raspberry_pi_v3.pdf | |
File Size: | 23 kb |
File Type: |
Example Code:

raspberry_pi_encoder_hat_6_channel-master.zip | |
File Size: | 2 kb |
File Type: | zip |