{
    "ok": true,
    "data": {
        "title": "EP-0077",
        "rev_id": 15598,
        "updated_at": "2024-10-30T02:25:13+00:00",
        "chunk_count": 26,
        "chunks": [
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# EP-0077",
                "char_count": 9,
                "token_estimate": 3
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Old Version V1.22",
                "chunk_index": 1,
                "content": "|                                                                    |                                                                                |\n|--------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| <figure>\n <img src=\"8182.JPG\" title=\"8182.JPG\" width=\"300\" alt=\"8182.JPG\" \/>\n <figcaption aria-hidden=\"true\">8182.JPG<\/figcaption>\n <\/figure>                                                           | <figure>\n                                                                      <img src=\"IMG_8183.JPG\" title=\"IMG_8183.JPG\" width=\"300\" alt=\"IMG_8183.JPG\" \/>\n                                                                      <figcaption aria-hidden=\"true\">IMG_8183.JPG<\/figcaption>\n                                                                      <\/figure>                                                                       |\n\n----",
                "char_count": 950,
                "token_estimate": 238
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Old Version V1.22",
                "chunk_index": 2,
                "content": "|                                                                    |                                                                    |\n|--------------------------------------------------------------------|--------------------------------------------------------------------|\n| <figure>\n <img src=\"Pwr2.jpg\" title=\"Pwr2.jpg\" width=\"300\" alt=\"Pwr2.jpg\" \/>\n <figcaption aria-hidden=\"true\">Pwr2.jpg<\/figcaption>\n <\/figure>                                                           | <figure>\n                                                                      <img src=\"Pwr3.JPG\" title=\"Pwr3.JPG\" width=\"300\" alt=\"Pwr3.JPG\" \/>\n                                                                      <figcaption aria-hidden=\"true\">Pwr3.JPG<\/figcaption>\n                                                                      <\/figure>                                                           |\n\n----",
                "char_count": 898,
                "token_estimate": 225
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "New Version V2.02",
                "chunk_index": 3,
                "content": "|                                                                       |                                                                       |\n|-----------------------------------------------------------------------|-----------------------------------------------------------------------|\n| <figure>\n <img src=\"Rmt01.jpg\" title=\"Rmt01.jpg\" width=\"300\" alt=\"Rmt01.jpg\" \/>\n <figcaption aria-hidden=\"true\">Rmt01.jpg<\/figcaption>\n <\/figure>                                                              | <figure>\n                                                                         <img src=\"Rmt02.jpg\" title=\"Rmt02.jpg\" width=\"300\" alt=\"Rmt02.jpg\" \/>\n                                                                         <figcaption aria-hidden=\"true\">Rmt02.jpg<\/figcaption>\n                                                                         <\/figure>                                                              |\n\n----",
                "char_count": 933,
                "token_estimate": 234
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "New Version V2.02",
                "chunk_index": 4,
                "content": "|                                                                       |                                                                       |\n|-----------------------------------------------------------------------|-----------------------------------------------------------------------|\n| <figure>\n <img src=\"Rmt03.jpg\" title=\"Rmt03.jpg\" width=\"300\" alt=\"Rmt03.jpg\" \/>\n <figcaption aria-hidden=\"true\">Rmt03.jpg<\/figcaption>\n <\/figure>                                                              | <figure>\n                                                                         <img src=\"Rmt04.jpg\" title=\"Rmt04.jpg\" width=\"300\" alt=\"Rmt04.jpg\" \/>\n                                                                         <figcaption aria-hidden=\"true\">Rmt04.jpg<\/figcaption>\n                                                                         <\/figure>                                                              |",
                "char_count": 927,
                "token_estimate": 232
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Description",
                "chunk_index": 5,
                "content": "As everyone at some point will recognize the Raspberry Pi doesn't include any kind of shutdown button.\nSo the only way to power it off is by unplugging it from the power supply.\nTo make sure you get no corruption of your data files on the SD card you should shutdown the Raspberry before powering it off.\nSo the whole procedure can be a bit annoying especially if you want to use the Raspberry as some kind of embedded PC .\ne.g. a media server or an internet radio.\n NOTE:There is new version: V2.02, using this method to setup the driver, Link is under below:\n[Driver installation for Version 2.02](https:\/\/github.com\/geeekpi\/RPB-HAT)\n\n------------------------------------------------------------------------",
                "char_count": 709,
                "token_estimate": 178
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Compatibility List",
                "chunk_index": 6,
                "content": "-   Compatibility",
                "char_count": 17,
                "token_estimate": 5
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Compatibility List",
                "chunk_index": 7,
                "content": "| Platform                    | Version 2.02               | Version 1.22               | Notes |\n|-----------------------------|----------------------------|----------------------------|-------|\n| Raspberry Pi 4 Model B      | Need wiringPi version 2.46 | Need wiringPi version 2.46 | √     |\n| Raspberry Pi 3 Model A Plus | Need wiringPi version 2.46 | Need wiringPi version 2.46 | √     |\n| Raspberry Pi 3 Model B Plus | Need wiringPi version 2.46 | Need wiringPi version 2.46 | √     |\n| Raspberry Pi zero           | √                          | √                          |       |\n| Raspberry Pi zero W         | √                          | √                          |       |\n| Raspberry Pi 3 Model B      | √                          | √                          |       |\n| Raspberry Pi 2 Model B      | √                          | √                          |       |\n| Raspberry Pi Model B+       | ×                          | ×                          | \\|    |\n| Raspberry Pi Model A+       | ×                          | ×                          | \\|    |\n| Raspberry Pi Model A        | ×                          | ×                          | \\|    |",
                "char_count": 1175,
                "token_estimate": 294
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Compatibility List",
                "chunk_index": 8,
                "content": "|                             |                            |                            |       |",
                "char_count": 97,
                "token_estimate": 25
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Features",
                "chunk_index": 9,
                "content": "Power Button provides a small circuit that includes the features:\n\\*Sending a shutdown signal to the Raspberry if the Shutdown Button is pressed\n\n-   Waiting for the Raspberry to shut down\n-   Powering off the Raspberry after save shutdown\n-   Powering on the Raspberry after the Button is pressed again\n-   LED light indicating the current state: On \/ Shutdown \/ Off\n-   Easy to setup\n\n------------------------------------------------------------------------",
                "char_count": 459,
                "token_estimate": 115
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "ChangeLog",
                "chunk_index": 10,
                "content": "-   Updated MCU\n-   Changed Layout\n-   Changed Button\n-   Optimized code\n\n------------------------------------------------------------------------",
                "char_count": 146,
                "token_estimate": 37
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Dimension",
                "chunk_index": 11,
                "content": "| Parameter | Value               |\n|-----------|---------------------|\n| Dimension | 65mm x 30 mm x 20mm |\n| Weight    | 22.72g              |\n\n------------------------------------------------------------------------",
                "char_count": 217,
                "token_estimate": 55
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Package Includes",
                "chunk_index": 12,
                "content": "-   Power Button For RPi Module x1\n-   IR Remote controller ( without battery) x1\n\n----",
                "char_count": 87,
                "token_estimate": 22
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Mechanical Drawing",
                "chunk_index": 13,
                "content": "-   V1.22 and V2.02 has the same Mechanical Drawing, means that they has the same size.\n\n<img src=\"Pwr6.jpg\" title=\"Pwr6.jpg\" width=\"500\" alt=\"Pwr6.jpg\" \/>\n----",
                "char_count": 160,
                "token_estimate": 40
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Parameters",
                "chunk_index": 14,
                "content": "There is a chart which can show you the function of the GPIO Pin definition of this board:\n{\\| class=\"wikitable\" \\|- ! Function !! BCM !! RPi \\|- \\| Disk Status \\|\\| 21 \\|\\| Pin 40 \\|- \\|Shut Down \\|\\| 24 \\|\\| Pin 18 \\|- \\|PWR Status \\|\\| 26 \\|\\| Pin 37 \\|- \\|GND \\|\\| N\/A \\|\\| Pin 6\/9\/14\/20\/25\/30\/34\/39 \\|- \\|5V \\|\\| 5V \\|\\| Pin 2\/4 \\|}\n\n    NOTE: Please make sure that your Raspberry Pi  have  5V\/2.5A  power supply with this module!!!\n\n------------------------------------------------------------------------",
                "char_count": 511,
                "token_estimate": 128
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "How to update wiringPi's Version",
                "chunk_index": 15,
                "content": "Currently, the version of wiringPi is 2.44, but it is not work properly on raspberry pi 3 B plus, so you need to update the wiringPi's version according to this manual.\n\n-   1\\. Check current version of GPIO:\n\n<!-- -->\n\n     gpio -v\n\n\\*2. Typing this command on a Terminal in raspberry Pi 3 B plus.\n\n     gpio  readall\n\nyou will see this:\n\n    pi@raspberrypi:~ $ gpio readall\n    Oops - unable to determine board type... model: 13\n\nyou need to update wiringPi by following steps:\n\\*3. Get the source from github.\n\n    sudo apt-get install wiringpi\n    cd  wiringPi\/\n    sudo .\/build\n\nAfter that, you can typing : \"gpio -v\" to check whether the version is updated.\nIf you've got this message means it was successfully.\n\n    gpio version: 2.46\n    Copyright (c) 2012-2018 Gordon Henderson\n    This is free software with ABSOLUTELY NO WARRANTY.\n    For details type: gpio -warranty\n\n    Raspberry Pi Details:\n      Type: Pi 3+, Revision: 03, Memory: 1024MB, Maker: Sony\n      * Device tree is enabled.\n      *--> Raspberry Pi 3 Model B Plus Rev 1.3\n      * This Raspberry Pi supports user-level GPIO access.",
                "char_count": 1104,
                "token_estimate": 276
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "How to wire it up",
                "chunk_index": 16,
                "content": "Do NOT connect your power supply to Raspberry Pi,  Please connect it to Power Button directly.\n\n|                                                                    |                                                                    |\n|--------------------------------------------------------------------|--------------------------------------------------------------------|\n| <figure>\n <img src=\"Pwr4.JPG\" title=\"Pwr4.JPG\" width=\"400\" alt=\"Pwr4.JPG\" \/>\n <figcaption aria-hidden=\"true\">Pwr4.JPG<\/figcaption>\n <\/figure>                                                           | <figure>\n                                                                      <img src=\"Pwr5.JPG\" title=\"Pwr5.JPG\" width=\"400\" alt=\"Pwr5.JPG\" \/>\n                                                                      <figcaption aria-hidden=\"true\">Pwr5.JPG<\/figcaption>\n                                                                      <\/figure>                                                           |\n\n----",
                "char_count": 994,
                "token_estimate": 249
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "How to set it up",
                "chunk_index": 17,
                "content": "-   1\\. Remove your TF card and connect it to your PC or laptop with TF card adapter.\n-   2\\. Modify \/boot\/config.txt file as following:",
                "char_count": 136,
                "token_estimate": 34
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Raspberry Pi 4 model B",
                "chunk_index": 18,
                "content": "dtoverlay=power-off,gpiopin=26\n    dtoverlay=pi3-act-led,gpio=21",
                "char_count": 64,
                "token_estimate": 16
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Raspberry Pi 3 model B",
                "chunk_index": 19,
                "content": "device_tree=bcm2710-rpi-3-b.dtb\n    dtoverlay=power-off,gpiopin=26\n    dtoverlay=pi3-act-led,gpio=21",
                "char_count": 100,
                "token_estimate": 25
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Raspberry Pi 2 Model B",
                "chunk_index": 20,
                "content": "device_tree=bcm2709-rpi-2-b.dtb\n    dtoverlay=power-off,gpiopin=26\n    dtoverlay=pi3-act-led,gpio=21",
                "char_count": 100,
                "token_estimate": 25
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Raspberry Pi zero \/ zero W",
                "chunk_index": 21,
                "content": "device_tree=bcm2708-rpi-0-w.dtb\n    dtoverlay=power-off,gpiopin=26\n    dtoverlay=pi3-act-led,gpio=21\n\nmore info please access this link:\n\n<\/pre>\n\n\\[Device Tree\\| <https:\/\/www.raspberrypi.org\/documentation\/configuration\/device-tree.md>\\]\n{\\|- class=\"wikitable\" ! Raspberry Pi model !! Device_Tree Info \\|- \\|Raspberry Pi 3 B+: \\|\\| device_tree=bcm2710-rpi-3-b-plus.dtb \\|- \\|Raspberry Pi 3 B: \\|\\| device_tree=bcm2710-rpi-3-b.dtb \\|- \\|Raspberry pi zero \/zero w: \\|\\| device_tree=bcm2708-rpi-0-w.dtb \\|- \\|Raspberry Pi 2B : \\|\\| device_tree=bcm2709-rpi-2-b.dtb \\|- \\|Raspberry Pi B : \\|\\| device_tree=bcm2708-rpi-b.dtb \\|- \\|Raspberry Pi B+ :\\|\\| device_tree=bcm2708-rpi-b-plus.dtb \\|}\n\n-   3\\. Install the library of wiringPi and Download shell script to check the GPIO pin's status:\n\n<!-- -->\n\nsudo apt-get install -y wiringPi\n    cd ~\n    git clone https:\/\/github.com\/yoyojacky\/powerbutton.git\n    cd ~\/powerbutton\n    sudo  mv   ~\/powerbutton\/gpioshutdown    \/etc\/init.d\/\n    sudo  chmod   +x   \/etc\/init.d\/gpioshutdown\n\n-   4\\. Edit the initialized file in \/etc\/rc.local :\n\n<!-- -->\n\nsudo  nano   \/etc\/rc.local\n\nAdd those three lines before exit 0",
                "char_count": 1151,
                "token_estimate": 288
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Raspberry Pi zero \/ zero W",
                "chunk_index": 22,
                "content": "sudo \/etc\/init.d\/gpioshutdown &      #Thanks for Steven Porter's kindly advise. (update the \"&\" mark at the end of command)\n    gpio mode 25 out\n    gpio write 25 1\n\nAfter edit this file, Press \"Ctrl + X\" to save this file and Press \"Y“ to save it.\n\n-   5\\. Reboot your Raspberry Pi and plug power button on your RPi, press the button to test.\n\nHave fun.\n\n------------------------------------------------------------------------",
                "char_count": 428,
                "token_estimate": 107
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "How to install driver for Version 2.02",
                "chunk_index": 23,
                "content": "-   One-Step Automated Install\n\nFor those who want to get started quickly and conveniently, you may install Driver using the following command for your Raspberry Pi:\n\n    curl -sSL git.io\/vpqzF | bash\n\nNotice:Linux Command Case sensitivity\n\n-   Feature:\n    -   Power on\/off\/reboot by remote controller.\n    -   Power on\/off\/reboot by keys.\n    -   fit for IR remote Power button Version 2.02 and later\n\nReboot your raspberry and try to press the power button, reboot button and test it.",
                "char_count": 487,
                "token_estimate": 122
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "FAQ",
                "chunk_index": 24,
                "content": "-   Q: Cloud it be used on Pi4B?\n\n` A: Yes.`\n\n-   Q: The version2.02 is same with the 1.22?\n\n` A: Yes.`",
                "char_count": 103,
                "token_estimate": 26
            },
            {
                "title": "EP-0077",
                "rev_id": 15598,
                "heading_path": "Video Tutorial",
                "chunk_index": 25,
                "content": "<img src=\"Youtube.jpeg\" title=\"Youtube.jpeg\" width=\"200\" alt=\"Youtube.jpeg\" \/>\nPlease follow the link: \\[ Raspberry Pi 3B with Ir remote power button and pi supply & USB HUB \\| <https:\/\/youtu.be\/BhEoGZshiPM> \\]",
                "char_count": 210,
                "token_estimate": 53
            }
        ]
    }
}