SZYTF PCF8574 I/O Expansion Module

Rate this product if you’ve used it
Contents

SZYTF PCF8574 I/O Expansion Module User Manual

For IIC/I2C Interface LCD1602/2004 Adapter Boards

1. Introduction

The PCF8574 I/O Expansion Module is designed to expand the available I/O ports on microcontrollers like Arduino, particularly useful when the native I/O ports are insufficient for connecting multiple peripherals such as sensors, SD cards, or multiple modules like relays. This module is especially beneficial for driving 1602/2004 LCD screens, as it can save up to 5 I/O ports compared to the 7 I/O ports typically required by these screens.

Multiple PCF8574 I/O Expansion Modules
Figure 1: Assortment of PCF8574 I/O Expansion Modules.

The module supports the I2C protocol, allowing for efficient communication with your microcontroller. It also features backlight power control and contrast adjustment, providing flexibility for various display applications.

2. Specifications

Below are the key technical specifications for the PCF8574 I/O Expansion Module:

Feature Description
Interface IIC/I2C
I/O Expansion 8 I/O ports (expandable to 64 I/O by cascading up to 8 modules)
Dimensions (Black PCB) 41.5mm (L) * 19mm (W) * 15.3mm (H)
Dimensions (Red PCB) 37.5mm (L) * 16.70mm (W)
Dimensions (Blue PCB) 48.0mm (L) * 15.5mm (W)
Weight 5g
PCB Color Black, Red, Blue (varies by model)
Supply Voltage 2.5V - 6V
Default I2C Address 0x27
Three types of PCF8574 modules: red, blue, and black PCBs
Figure 2: Different PCF8574 module types (Red, Blue, Black PCBs).
Red PCF8574 module with dimensions 37.5mm by 16.70mm
Figure 3: Red PCF8574 module (HW-400) with dimensions.
Black PCF8574 module with dimensions 41.5mm by 19.0mm
Figure 4: Black PCF8574 module with dimensions.
Blue PCF8574 module with dimensions 48.0mm by 15.5mm
Figure 5: Blue PCF8574 module (HW-171) with dimensions.

3. Setup

This section outlines the initial setup and configuration of your PCF8574 I/O Expansion Module.

3.1. Connection

The module connects to your microcontroller via the I2C interface. Ensure the VCC, GND, SDA, and SCL pins are correctly wired to your microcontroller's corresponding pins. The module supports two interface types for accessing the target board: pin headers or row seats.

Close-up of PCF8574T I2C module (white PCB) showing VCC, GND, SDA, SCL pins and potentiometer
Figure 6: PCF8574T I2C module (white PCB) showing connection points.
Close-up of PCF8574T I2C module (blue PCB) showing VCC, GND, SDA, SCL pins and jumper caps
Figure 7: PCF8574T I2C module (blue PCB) showing connection points and jumper caps.

3.2. Backlight Control

The module includes backlight power control. You can connect or disconnect the backlight power supply using a jumper cap:

  • Connect Backlight: Plug in the jumper cap to connect the backlight power supply.
  • Disconnect Backlight: Unplug the jumper cap to disconnect the backlight power supply.
Blue PCF8574 module highlighting the jumper caps for backlight control
Figure 8: Jumper caps for backlight control on a blue PCF8574 module.

3.3. Contrast Adjustment

The contrast of the connected LCD screen can be adjusted using the blue potentiometer located on the front of the module. This allows for convenient adjustment at any time:

  • Clockwise Rotation: Increases contrast.
  • Counter-clockwise Rotation: Decreases contrast.
Black PCF8574 module showing the blue potentiometer for contrast adjustment
Figure 9: Blue potentiometer for contrast adjustment on a black PCF8574 module.

3.4. Module Addressing for Cascading

Up to 8 modules can be cascaded to expand I/O to 64 ports. The device address can be modified by shorting the A0/A1/A2 pins. The default address is 0x27. Refer to the specific module's DIP switch configuration for address modification.

Red PCF8574 module showing DIP switches for address configuration
Figure 10: DIP switches for I2C address configuration on a red PCF8574 module.

To set the module address to 0x27, ensure all 3-digit DIP switches are set to 'ON'.

4. Operation

Once the module is set up, you can control it using your microcontroller's I2C library. A function library is typically provided to simplify interaction with the module and connected LCD screens.

4.1. I/O Expansion

The module expands 2 I/Os from your microcontroller to 8 I/Os. These expanded I/Os (P0-P7) can be used to control various devices. For example, in a test scenario, the P0-P7 pins can be programmed to output high and low levels every 2 seconds.

4.2. Cascading Multiple Modules

For applications requiring more than 8 additional I/O ports, multiple PCF8574 modules can be cascaded. Up to 8 modules can be used simultaneously, providing a total of 64 expanded I/O ports. Each module's address must be unique, configured via the A0/A1/A2 pins or DIP switches, to avoid conflicts on the I2C bus.

5. Maintenance

The PCF8574 I/O Expansion Module is a low-maintenance electronic component. To ensure its longevity and proper function:

  • Keep the module clean and free from dust and debris.
  • Avoid exposing the module to extreme temperatures or humidity.
  • Handle with care to prevent physical damage to the PCB or components.
  • Ensure proper power supply within the specified 2.5V-6V range to prevent damage.

6. Troubleshooting

If you encounter issues with your PCF8574 I/O Expansion Module, consider the following:

  • No Display/Incorrect Output:
    • Verify all wiring connections (VCC, GND, SDA, SCL) are correct and secure.
    • Check the backlight jumper cap position.
    • Adjust the contrast potentiometer.
    • Ensure the correct I2C address is being used in your code, especially if multiple modules are cascaded.
    • Confirm the power supply voltage is within the 2.5V-6V range.
  • Module Not Detected:
    • Double-check I2C wiring.
    • Use an I2C scanner sketch (available for Arduino) to detect the module's address.
    • Ensure the module is receiving adequate power.
  • Intermittent Operation:
    • Check for loose connections.
    • Ensure stable power supply.
    • Reduce cable length if experiencing signal integrity issues, especially with long I2C lines.

7. User Tips

  • Always use a suitable I2C library for your microcontroller platform (e.g., Wire.h for Arduino) to simplify communication.
  • When cascading modules, carefully manage I2C addresses to prevent conflicts.
  • For initial testing, use a simple sketch to verify I2C communication and I/O functionality before integrating into a complex project.

8. Warranty and Support

This product is manufactured by SZYTF. For detailed item guides and documents, including a user manual in PDF format, please refer to the official documentation provided by the seller. You can often find this information linked on the product page or by contacting the seller directly. The PDF manual can be viewed here.

General service commitments include fast delivery and refunds for issues such as delayed delivery (coupon code provided), lost packages, or damaged items. Please refer to the seller's specific service terms for full details.

9. Statement of Compliance

Disclaimer

⚠ WARNING: This product can expose you to chemicals including lead, which is known to the State of California to cause cancer and birth defects or other reproductive harm. For more information go to www.P65Warnings.ca.gov.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Was this page helpful?