{"id":20121310,"url":"https://github.com/pimoroni/automation-hat","last_synced_at":"2025-06-16T00:09:47.273Z","repository":{"id":44551566,"uuid":"61023288","full_name":"pimoroni/automation-hat","owner":"pimoroni","description":"Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini","archived":false,"fork":false,"pushed_at":"2024-04-29T11:33:29.000Z","size":236,"stargazers_count":125,"open_issues_count":3,"forks_count":45,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-06-13T17:07:08.791Z","etag":null,"topics":["phat","pypi-package","python","raspberry-pi","raspberry-pi-iot","raspberry-pi-library"],"latest_commit_sha":null,"homepage":"https://shop.pimoroni.com/products/automation-hat","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pimoroni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-13T09:09:07.000Z","updated_at":"2025-04-10T23:24:00.000Z","dependencies_parsed_at":"2024-04-29T11:54:01.551Z","dependency_job_id":null,"html_url":"https://github.com/pimoroni/automation-hat","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/pimoroni/automation-hat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fautomation-hat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fautomation-hat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fautomation-hat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fautomation-hat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimoroni","download_url":"https://codeload.github.com/pimoroni/automation-hat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimoroni%2Fautomation-hat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072816,"owners_count":22954926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["phat","pypi-package","python","raspberry-pi","raspberry-pi-iot","raspberry-pi-library"],"created_at":"2024-11-13T19:27:49.139Z","updated_at":"2025-06-16T00:09:47.236Z","avatar_url":"https://github.com/pimoroni.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Automation HAT](https://github.com/pimoroni/automation-hat/blob/main/autohat_360.png)\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/automation-hat/test.yml?branch=main)](https://github.com/pimoroni/automation-hat/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/pimoroni/automation-hat/badge.svg?branch=main)](https://coveralls.io/github/pimoroni/automation-hat?branch=main)\n[![PyPi Package](https://img.shields.io/pypi/v/automationhat.svg)](https://pypi.python.org/pypi/automationhat)\n[![Python Versions](https://img.shields.io/pypi/pyversions/automationhat.svg)](https://pypi.python.org/pypi/automationhat)\n\nAutomation HAT is a home monitoring and automation controller featuring relays, analog channels, powered outputs, and buffered inputs (all 24V tolerant).  This library will also work with Automation HAT's smaller siblings - Automation pHAT and Automation HAT Mini.\n\n### Where to buy\n\n* Pimoroni Automation HAT: \u003chttps://shop.pimoroni.com/products/automation-hat\u003e\n* Pimoroni Automation HAT Mini: \u003chttps://shop.pimoroni.com/products/automation-hat-mini\u003e\n* [DISCONTINUED] Pimoroni Automation pHAT: \u003chttps://shop.pimoroni.com/products/automation-phat\u003e\n\n## Installing\n\n### Full install (recommended):\n\nWe've created an easy installation script that will install all pre-requisites and get your Automation HAT\nup and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -\u003e Accessories -\u003e Terminal\non your Raspberry Pi desktop, as illustrated below:\n\n![Finding the terminal](http://get.pimoroni.com/resources/github-repo-terminal.png)\n\nIn the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:\n\n```bash\ngit clone https://github.com/pimoroni/automation-hat\ncd automation-hat\n./install.sh\n```\n\n**Note** Libraries will be installed in the \"pimoroni\" virtual environment, you will need to activate it to run examples:\n\n```\nsource ~/.virtualenvs/pimoroni/bin/activate\n```\n\n### Development:\n\nIf you want to contribute, or like living on the edge of your seat by having the latest code, you can install the development version like so:\n\n```bash\ngit clone https://github.com/pimoroni/automation-hat\ncd automation-hat\n./install.sh --unstable\n```\n\nIn all cases you will have to enable the I2C bus (and SPI for Automation HAT Mini):\n\n```\nsudo raspi-config nonint do_i2c 0\nsudo raspi-config nonint do_spi 0\n```\n\n## Documentation \u0026 Support\n\n* Guides and tutorials:\n  * Automation HAT: \u003chttps://learn.pimoroni.com/automation-hat\u003e\n  * Automation pHAT: \u003chttps://learn.pimoroni.com/automation-phat\u003e\n  * Automation HAT Mini: \u003chttps://learn.pimoroni.com/automation-hat-mini\u003e\n* Function reference\n\u003chttps://github.com/pimoroni/automation-hat/tree/master/documentation\u003e\n* GPIO Pinout:\n  * Automation HAT: \u003chttps://pinout.xyz/pinout/automation_hat\u003e\n  * Automation pHAT: \u003chttps://pinout.xyz/pinout/automation_phat\u003e\n  * Automation HAT Mini: \u003chttps://pinout.xyz/pinout/automation_hat_mini\u003e\n* Get help\n\u003chttp://forums.pimoroni.com/c/support\u003e\n\n### FAQ\n\n#### What is the accuracy and resolution of the Automation HAT\n\nThe ADS1015 is a 12-bit ADC, but since the 12th bit is the sign-bit there are only 11-bits of resolution available for positive voltage readings. The input voltage for 24v channels is scaled from 0-25.85v (25.85 rather than 24 due to how the resistor divider is set up) to 0-3.3v.\n\nSince the full-scale range of the ADC is set to 4.096v, this means that 0-3.3v gives only ~1649 possible usable values making the input measurement granularity somewhere around 0.015v (25.85 / 1649) for the 24v inputs and 0.002v for the 3.3v input.\n\nMore information on this topic can be found here: \u003chttps://forums.pimoroni.com/t/automation-hat-accuracy/7252/3\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimoroni%2Fautomation-hat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimoroni%2Fautomation-hat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimoroni%2Fautomation-hat/lists"}