Raspberry Pi 3 Channel Encoder Hat
Description:
This is a board/hat that allows reading 3 encoder channels .
WARNING ! ESD( electrostatic-sensitive device) .
Compatibility :
Raspberry Pi Models : newer than version 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
7.From the main Menu press finish
8. 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_3_channel-master.zip (it is on the bottom of the page)
3.Unzip the file:
sudo unzip raspberry_pi_encoder_hat_3_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_3_Channel
Usage:
python Test_3_chan_encoder_plate.py
Board Customization:
If you might need any board customization, leave us a message here .
Also you might need :
Schematics:

raspberry_pi_3_encoder_plate.pdf | |
File Size: | 15 kb |
File Type: |
Example Code:

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