{
    "ok": true,
    "data": {
        "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
        "rev_id": 640,
        "updated_at": "2015-07-20T01:49:04+00:00",
        "chunk_count": 11,
        "chunks": [
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# Raspberry Pi I2C-IO Expand Module(English)",
                "char_count": 44,
                "token_estimate": 11
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "Description",
                "chunk_index": 1,
                "content": "This module is designed specifically for expand the GPIO of Raspberry Pi, this module can effectively solve the problem of less of RaspberryPi's IO use. It use PCF8574 chip to expand 8 Bidirectional IOs. The module connection to the Raspberry Pi through I2C interface. There are 8 I2C address in the module and user can choose one of them through setup the “ADDR” jumper. User also can choose 5V or 3.3V electric level. Module with isolation protection, can effectively prevent external high voltage damage to the Raspberry Pi. Multiple module can cascade. <img src=\"I2c-expand.jpg\" title=\"I2c-expand.jpg\" width=\"600\" alt=\"I2c-expand.jpg\" \/>",
                "char_count": 641,
                "token_estimate": 161
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "Product Features",
                "chunk_index": 2,
                "content": "-   8 Bidirectional IO\n-   8 I2C-address\n-   Isolation protection\n-   Use wiringPi API , sample code\n-   100 kHz I2C-bus interface (Standard-mode I2C-bus)",
                "char_count": 154,
                "token_estimate": 39
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "Technical Details",
                "chunk_index": 3,
                "content": "|          Type          |               Value               |\n|:----------------------:|:---------------------------------:|\n|          Name          | Raspberry Pi I2C-IO Expand Module |\n|    Working voltage     |              2.5V-6V              |\n|  IO voltage tolerance  |            3.3V or 5.5            |\n|  Number of IO Expand   |                 8                 |\n| Communicate Interface  |                I2C                |\n| Speed of I2C Interface |              100khz               |\n|  Working temperature   |          -20°C to +85°C           |",
                "char_count": 566,
                "token_estimate": 142
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "Typical Application",
                "chunk_index": 4,
                "content": "-   LED signs and displays\n-   Key pads\n-   Instrumentation and test measurement\n-   Driver numeric display\n-   Drive the lattice screen",
                "char_count": 136,
                "token_estimate": 34
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "Overview",
                "chunk_index": 5,
                "content": "<img src=\"p14.JPG\" title=\"p14.JPG\" width=\"330\" alt=\"p14.JPG\" \/><img src=\"p13.JPG\" title=\"p13.JPG\" width=\"330\" alt=\"p13.JPG\" \/><img src=\"p15.JPG\" title=\"p15.JPG\" width=\"330\" alt=\"p15.JPG\" \/>\n\nmounted on Raspberry Pi\n\n<img src=\"p5.JPG\" title=\"p5.JPG\" width=\"330\" alt=\"p5.JPG\" \/><img src=\"p4.JPG\" title=\"p4.JPG\" width=\"330\" alt=\"p4.JPG\" \/><img src=\"p2.JPG\" title=\"p2.JPG\" width=\"330\" alt=\"p2.JPG\" \/>\n\nin the night\n\n<img src=\"p12.JPG\" title=\"p12.JPG\" width=\"330\" alt=\"p12.JPG\" \/><img src=\"p10.JPG\" title=\"p10.JPG\" width=\"320\" alt=\"p10.JPG\" \/><img src=\"p11.JPG\" title=\"p11.JPG\" width=\"310\" alt=\"p11.JPG\" \/>",
                "char_count": 601,
                "token_estimate": 151
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "product scale",
                "chunk_index": 6,
                "content": "<img src=\"8574.png\" title=\"8574.png\" width=\"800\" alt=\"8574.png\" \/>",
                "char_count": 66,
                "token_estimate": 17
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "schematic",
                "chunk_index": 7,
                "content": "<img src=\"QQ截图20150717151018.png\" title=\"QQ截图20150717151018.png\" width=\"1000\" alt=\"QQ截图20150717151018.png\" \/>",
                "char_count": 109,
                "token_estimate": 35
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "Learn",
                "chunk_index": 8,
                "content": "-   If it's the first time for you to use Raspberry Pi, please make sure the I2C interface is enabled. This page will show you how to enable the I2C interface. <http:\/\/www.52pi.net\/forum.php?mod=viewthread&tid=1363&highlight=rtc>\n-   Type `sudo apt-get install i2c-tools` to install necessary component\n\n![](8574_tech1.png \"8574_tech1.png\")\n\n-   If the steps above are done,next type`sudo vim.tiny \/etc\/modules`to modify modules file just like the following\n\n<!-- -->\n\n    i2c-bcm2708\n    i2c-dev\n\n![](8574_tech2.png \"8574_tech2.png\")\n![](8574_tech3.png \"8574_tech3.png\")\n\n-   type`sudo i2cdetect -y -a 1`to detect the module is work on raspberry Pi\n\n![](8574_tech4.png \"8574_tech4.png\")\n\n-   this module is detected on address 0x27,then we load the [demo code](#tech1 \"wikilink\") and compile it.\n\n![](8574_tech5.png \"8574_tech5.png\")\n![](8574_tech6.png \"8574_tech6.png\")\n\n-   type `sudo .\/a.out`,with a voltmeter,you will see the pin level change\n\n![](8574_tech7.png \"8574_tech7.png\")",
                "char_count": 985,
                "token_estimate": 247
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "示例代码说明",
                "chunk_index": 9,
                "content": "#include <wiringPi.h>\n    #include <pcf8574.h>\n    #include <stdio.h>\n    int main()\n    {\n     int i;\n     pcf8574Setup(100,0x27);\n     for(i=0;i<8;i++) pinMode(100+i,OUTPUT);\n    while(1)\n     {\n      i = 0;\n      for(i=0;i<=8;i++)\n       {\n       printf(\"Current LED = %d\\n\",100+i);\n       digitalWrite((100+i),HIGH);\n       delay(500);\n       digitalWrite((100+i),0);\n       delay(500);\n        }\n      }\n    }",
                "char_count": 414,
                "token_estimate": 104
            },
            {
                "title": "Raspberry_Pi_I2C-IO_Expand_Module(English)",
                "rev_id": 640,
                "heading_path": "附件",
                "chunk_index": 10,
                "content": "[1306-0.91-CODE.zip](1306-0.91-CODE.zip \"wikilink\")\n[SSD1306-Revision 1.0.pdf](SSD1306-Revision_1.0.pdf \"wikilink\") [:Category:名称](:Category:名称 \"wikilink\")\n如对此页的规则或教程有意见者，可到[此网页或是在](Minecraft_Wiki_talk:wiki编辑手册 \"wikilink\")[管理员Powup333的讨论页留言](User_talk:Powup333 \"wikilink\")。",
                "char_count": 273,
                "token_estimate": 117
            }
        ]
    }
}