robogaia.com
  • Products
    • 3 Axis Encoder Conter Arduino Shield
    • 6 Channel Encoder Counter Arduino Shield
    • 8 Channel Encoder Counter Arduino Shield
    • Raspberry Pi 6 Channel Encoder Hat
    • Raspberry Temperature Controller Plate
    • 4 Relays Raspberry Pi Plate/Shield
    • C2N-UNI8IO To Terminal Block Board
    • Arduino Solid State Relay
    • Encoder Shield Connector
    • Mechanical Encoder Board with Connector
    • Raspberry Pi Dual Thermocouple Plate
    • Raspberry Pi 3 Channel Encoder Hat
    • HC-SR04 Ultrasonic Distance Sensor
  • Blog
  • Contact
  • Tutorials
    • How to Add a Web Interface to the Raspberry Pi 4 Relay Board
    • How to add a simple web server on Raspberry Pi with Flask Framework
    • How To Calculate Resistor Wattage
    • How To Start With Robotics
    • How To Start With Artificial Intelligence
    • How to start with CNC 6040 machine
    • How to calibrate Robogaia accelerometer/gyro shield
    • How to build Balancino (the balancing robot)
  • Distributors
  • Services
  • About

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: pdf
Download File


Example Code:

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

@Robogaia 2021