{"id":18571894,"url":"https://github.com/facts-engineering/p1am","last_synced_at":"2025-04-10T07:30:54.377Z","repository":{"id":36602327,"uuid":"226153997","full_name":"facts-engineering/P1AM","owner":"facts-engineering","description":"Arduino P1AM Library","archived":false,"fork":false,"pushed_at":"2024-02-15T20:44:02.000Z","size":131,"stargazers_count":50,"open_issues_count":2,"forks_count":15,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-02-15T21:38:48.894Z","etag":null,"topics":["arduino","automationdirect","engineering","facts","p1am","p1am-100","plc","samd"],"latest_commit_sha":null,"homepage":"https://facts-engineering.github.io/","language":"C++","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/facts-engineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2019-12-05T17:24:32.000Z","updated_at":"2023-12-23T01:35:18.000Z","dependencies_parsed_at":"2022-08-08T16:01:20.113Z","dependency_job_id":"405df0ce-37cc-4543-aae3-c9ac596fe8b7","html_url":"https://github.com/facts-engineering/P1AM","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facts-engineering%2FP1AM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facts-engineering%2FP1AM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facts-engineering%2FP1AM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facts-engineering%2FP1AM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facts-engineering","download_url":"https://codeload.github.com/facts-engineering/P1AM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223430338,"owners_count":17143624,"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":["arduino","automationdirect","engineering","facts","p1am","p1am-100","plc","samd"],"created_at":"2024-11-06T23:04:13.093Z","updated_at":"2024-11-06T23:04:13.660Z","avatar_url":"https://github.com/facts-engineering.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"ProductivityOpen P1AM [![Build Status](https://github.com/facts-engineering/P1AM/actions/workflows/main.yml/badge.svg)](https://github.com/facts-engineering/P1AM/actions)\n============================\n\n### Product Description\nThe ProductivityOpen P1AM is an automation platform compatible with Productivity 1000 Series I/O modules, P1AM Series shields, and Arduino MKR format shields.\n - P1AM-100: The board uses the SAMD21G18 Microcontroller like the Arduino MKRZERO and other similar boards.\n - P1AM-200: The board uses the SAMD51P20 Microcontroller like the Adafruit Grand Central and other similar boards.\n\n### Hardware - P1000 I/O Modules\n\nProductivity Series modules offer several types of industrial grade I/O \n - Analog and Temperature Inputs \n - Analog Outputs\n - Discrete Inputs\n - Discrete Outputs and Relays\n - Specialty Modules\n\n### Hardware - P1AM Shields\nProductivityOpen offers 3 types of industrial shields and a prototyping kit.\n - P1AM-ETH\n - P1AM-SERIAL\n - P1AM-GPIO\n - P1AM-PROTO\n\n### Base Controller\nThe P1AM Base Controller is the chip that directs communcations between the microcontroller and the P1000 Modules. A P1000 Series power supply or external 24V supply is required to power the Base Controller and modules. \n\nThe **P1AM-100** communications with the SAMD21 are SPI based and use 5 total pins. Pins 8, 9 and 10 can be shared with other SPI devices. **A3 and A4 must not be used on any shield if using the base controller functionality of the P1AM-100**\n\n| Pin | Function |\n|:---:|:--------:|\n|  8  |   MOSI   |\n|  9  |   CLK    |\n|  10 |   MISO   |\n|  A3 |      CS  |\n|  A4 |    ACK   |\n\nThe **P1AM-200** Base Controller pins are all internal. No header pins are used for IO module communications.\n\nIn depth information on the P1AM family hardware can be found on the reference page here: [ProductivityOpen Documentation](https://facts-engineering.github.io/)\n\nHardware can be purchased on the [Automation Direct Webstore](https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/productivity_open_(arduino-compatible))\n\n## P1AM Library\n\n### Description\n\nThe P1AM Library provides a simple interface for controlling P1000 Modules.\n```C++\nP1.writeDiscrete(HIGH, 1, 2);  //Turn slot 1 channel 2 on\n\nfloat temperature = P1.readTemperature(2, 3);  //Return temperature read from slot 2 channel 3\n```\n### Installing the Library\n\n\u003eInstall the Arduino IDE version 2.0.0 or later. We recommend the current version on the [Arduino website](https://www.arduino.cc/en/main/software).\n \n- Use Arduino's Library Manager to install the library. `Tools \u003e Manage Libraries`\n- Type **P1AM** into the search box and click the install button\n\n### Installing the Board\n- Start the Arduino IDE and select File \u003e Preferences\n- Enter `https://raw.githubusercontent.com/facts-engineering/facts-engineering.github.io/master/package_productivity-P1AM-boardmanagermodule_index.json` into the Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.\n- Use Arduino's Boards Manager to install the board. `Tools \u003e Board \u003e Boards Manager`\n- Type **P1AM** into the search box and click the install button\n\n### Getting Started\nDocumentation can be found on the [ProductivityOpen Documentation](https://facts-engineering.github.io/). The website has information that includes the hardware documentation, library API, and code snippets.\n\nThe P1AM library also comes packed with examples that can be found in the Arduino IDE under `File \u003e Examples \u003e P1AM`.\n\n## Additional Resources\n[ProductivityBlocks Graphical Programming from Automation Direct](https://github.com/AutomationDirect/ProductivityBlocks)\n\n[Automation Direct P1AM Customer Forum](http://go2adc.com/p1am)\n\n[Automation Direct Webstore](https://www.automationdirect.com/adc/home/home)\n\n[Arduino Getting Started](https://www.arduino.cc/en/Guide/HomePage)\n\n[Arduino Forum](https://forum.arduino.cc/index.php)\n\n[Arduino Support Discord](https://discord.com/invite/jQJFwW7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacts-engineering%2Fp1am","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacts-engineering%2Fp1am","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacts-engineering%2Fp1am/lists"}