Raspberry Pi IO Expansion Board Hat

SKU: DFR0566

The Raspberry Pi IO Expansion Board Hat enhances connectivity for Raspberry Pi projects, featuring an STM32 controller managing various digital, analog, IIC, UART, SPI, and IIS ports, along with PWM power supply options. Compact dimensions (65×56mm) and detailed pinouts facilitate integration, making it ideal for complex projects requiring diverse input and output connections. The board offers 3.3V sensor interface power supply and has a device address of 0x10, catering to modern Raspberry Pi applications with its versatility and improved performance.

Front of IO expansion hat for Raspberry Pi 5/4B/3B+ with electronic components-DFRobot product sku:DFR0566 image.

Downloadable Resources

  • Docs
  • Tech Specs
  • 1. Getting Started

    This guide introduces the DFR0566 IO Expansion HAT for Raspberry Pi, detailing its digital, analog, PWM, IIC, IIS, and SPI ports, and provides step-by-step instructions for enabling interfaces and executing programs, helping users effectively start their Raspberry Pi projects.

    2. Example Code for Raspberry Pi-IIC

    This article offers example code for utilizing Raspberry Pi-IIC's IIC ports via GPIO2 and GPIO3, focusing on integrating the SEN0303 VEML6075 UV sensor to output UVA, UVB, and UV index on the terminal.

    3. Example Code for Raspberry Pi-Digital Port LED Blink

    This article provides a step-by-step guide on how to make an LED blink using a Raspberry Pi by utilizing the GPIO ports, including the necessary hardware, software setup, wiring diagram, and Python sample code to control the LED blinking.

    4. Example Code for Raspberry Pi-Servo Control

    The article provides example code to control servo motors with a Raspberry Pi and the Gravity: IO Expansion HAT, featuring a demo program for servo rotation from 0 to 180 degrees, ideal for beginners seeking practical learning.

    5. Example Code for Raspberry Pi-UART Gesture Sensor

    This article details the process of setting up a Raspberry Pi with a UART gesture sensor including hardware and software preparations, installation commands, and execution of sample code for reading gesture and touch data.

    6. Example Code for Raspberry Pi-Analog Port

    7. Example Code for Raspberry Pi-SPI OLED Display

    This article offers a comprehensive guide on using an SPI OLED display module with Raspberry Pi, including example code and setup instructions for enthusiasts looking to enhance their DIY electronics projects.

    8. Example Code for Raspberry Pi-PWM Control

    The article provides a detailed guide on controlling PWM channels using Raspberry Pi, from hardware setup and software configuration to running Python code for effective motor control.

    Reference

    Specification

    Parameter Details
    Driver Maincontroller STM32
    Operating Voltage 5V
    PWM External Power Supply 6-12V
    PWM Pin Voltage 5V
    Sensor Interface Power Supply 3.3V
    Communication Interface 28 digital Ports, 4 groups of analog port, 3 groups of IIC port, 1 group of UART, 4 groups of 5V power interfaces, 1 group of SPI, 1 group of IIS port
    Device Address 0x10
    Outline Dimension 65×56mm/2.56×2.20”

    Pinout

    DFR0566 IO Expansion HAT for Raspberry Pi 4B/3B+ Board Overview DFR0566 IO Expansion HAT for Raspberry Pi 4B/3B+ Board Overview
    Silkscreen Label Description
    + + 3.3V Positive
    - - Negative
    Binding post connect to external power positive
    Binding post connect to external power negative
    Digital 0-27 Raspberry Pi GPIO0-GPIO27
    PWM 0-3 PWM signal output pin 0-3
    Analog 0-3 Analog signal input pin 0-3
    IIC C IIC port clock line
    D IIC port data line
    UART T UART Transmit port
    R UART Receive port
    5V 5V 5V positive
    GND GND Negative
    IIS SCK IIS serial clock line
    DIN IIS serial data input
    LCK IIS L/R channel selection line
    BCK IIS system clock line
    SPI MISO SPI data output line
    SS SPI enable pin
    SCLK SPI serial clock line
    MOSI SPI data input line

    The GPIO number in this board adopts BCM codes.
    When the VP port is not power by external power, the voltage of PWM ⊕ is 5V.
    When the VP port is powered by external power, the voltage of PWM ⊕ is equal to that of the VP external power (6-12V).

    Was this article helpful?

    TOP