Tags: RobotDyn, PCA8574AD I2C 8-bit I/O expander module

Expander Port I2C 8-bit I/O Module PCA8574AD

  • 19.00 AED
    • Ex Tax:19.00 AED
    • Brand: RobotDYN
    • Product Code: RobotDYN
    • Availability: In Stock
    PCA8574AD I2C 8-bit I / O Expansion Card With this module from RobotDyn, you can provide the extra I / O pins you need in Arduino or other program development platforms by using I2C interface.This module is based on PCA8574AD IC integrated, uses I2C interface, has 8 I / O pins on it and has 3 j..

    PCA8574AD I2C 8-bit I / O Expansion Card

     

    With this module from RobotDyn, you can provide the extra I / O pins you need in Arduino or other program development platforms by using I2C interface.
    This module is based on PCA8574AD IC integrated, uses I2C interface, has 8 I / O pins on it and has 3 jumper on the board and I2C addresses can be selected. You can control up to 64 additional I / O pins with 8 different addresses using 2 pins of the Arduino or another development platform.
    Up to 8 modules can be connected in succession with the possibility of selecting different I2C addresses. The I2C address of each connected module must be different. The table on the back of the card indicates which address corresponds to which jumper position.
    Compatible with Arduino and other platforms. The J1 and J2 jumpers on the back surface of the card enable or disable the pull-up resistors connected to the SDA and SCL pins.

    Specifications

    • 5V Operating voltage
    • 8-bit I2C interface
    • Possibility of successive connection with 8 different addressing (in this case each module must be at a different address)
    • 8 I / O pins
    • A table indicating which address is located on the back of the card according to the jumper positions
    • The J1 and J2 jumpers on the back surface of the card enable or disable the pull-up resistors connected to the SDA and SCL pins.
    • Compatible with Arduino and other platforms

    Package Included

    • 1 x Robot Dyn I2C 8-bit I / O Expander Module, PCA8574AD



    # include <Wire.h> # include "PCF8574.h" // ----- WE WILL USE 2 PCA MODULE ----- // // - IF YOU WILL USE MODULE BETWEEN 1-8 - // // - NAMED AS SEE BELOW - // PCF8574 PCA1; PCF8574 PCA2; // ---------------------------------------- // void setup () { PCA1. begin ( 0x38 ); // We have set the module address as 0x38 with the JUMPERS on PCA2. begin ( 0x39 ); // WE SET THE MODEL'S ADDRESS AS 0x39 WITH JUMPERS ON // --- I2C ADDRESS OF EAch MODULE MUST BE DIFFERENT MAXIMUM 8 MODULES CAN BE CONNECTED ---- // // --- I / O PIN DEFINITIONS OF USED MODULES --- // // --- FOR MODEL 1 WITH PCA1 NAME 0x38 ADDRESS --- // PCA1. pinMode ( 0 , OUTPUT ); // 0.PIN OUT PCA1. pinMode ( 1 , OUTPUT ); // 1st PIN OUT PCA1. pinMode ( 2 , OUTPUT ); // 2nd PIN OUT PCA1. pinMode ( 3 , OUTPUT ); // 3rd PIN OUT PCA1. pinMode ( 4 , OUTPUT ); // 4th PIN OUT PCA1. pinMode ( 5 , OUTPUT );// 5.PIN OUTPUT PCA1. pinMode ( 6 , OUTPUT ); // 6.PIN OUTPUT PCA1. pinMode ( 7 , OUTPUT ); // 7.PIN OUT // --- FOR MODULE 0x39 WITH PCA2 NAME --- // PCA2. pinMode ( 0 , OUTPUT ); // 0.PIN OUT PCA2. pinMode ( 1 , OUTPUT ); // 1st PIN OUT PCA2. pinMode ( 2 , OUTPUT ); // 2nd PIN OUT PCA2. pinMode ( 3 , OUTPUT ); // 3rd PIN OUT PCA2. pinMode ( 4 , OUTPUT ); // 4th PIN OUT PCA2. pinMode ( 5 , OUTPUT );// 5.PIN OUT PCA2. pinMode ( 6 , OUTPUT ); // 6.PIN OUTPUT PCA2. pinMode ( 7 , OUTPUT ); // 7.PIN OUT // --- ALL PORTS OF MODULE 1 AND 2 FLASH WITH 2 TIMES 1 SEC SETTING --- // PCA1. clear (); PCA2. clear (); delay ( 100 ); pca1.set (); pca2.set (); delay ( 1000 ); PCA1. clear (); PCA2. clear (); delay ( 1000 ); pca1.set (); pca2.set (); delay ( 1000 ); PCA1. clear (); PCA2. clear (); // ------------------------------------------------ // ---------------------- } void loop () { FOR ( int i = 0 ; i <= 7 ; i ++) // 2 MODULE THE SAME OUTPUTS COMPLETELY FLASH UP TO 100MS FROM P0 TO P7 { PCA1. digitalWrite (i, LOW ); PCA2. digitalWrite (i, LOW ); delay ( 100 ); PCA1. digitalWrite (i, HIGH ); PCA2. digitalWrite (i, HIGH ); } FOR ( int i = 7 ; i> = 0 ; i--) // 2 THE SAME OUTPUTS IN MODULE 2 FLASH UP TO 100MS FROM P7 TO P0 { PCA1. digitalWrite (i, LOW ); PCA2. digitalWrite (i, LOW ); delay ( 100 ); PCA1. digitalWrite (i, HIGH ); PCA2. digitalWrite (i, HIGH ); }

    Write a review

    Please login or register to review