{"id":26285398,"url":"https://github.com/patatemagique/drv8214_multiplatform","last_synced_at":"2025-03-14T19:24:09.718Z","repository":{"id":279627438,"uuid":"939431325","full_name":"PatateMagique/drv8214_multiplatform","owner":"PatateMagique","description":"Multiplatrfom library for the DRV82114 DC motor driver with senseless position control.","archived":false,"fork":false,"pushed_at":"2025-03-10T15:08:05.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T16:36:19.239Z","etag":null,"topics":["arduino","drv8213","drv8214","esp32","sensorless","stm32"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatateMagique.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-02-26T14:30:55.000Z","updated_at":"2025-03-10T15:08:09.000Z","dependencies_parsed_at":"2025-02-26T15:46:33.630Z","dependency_job_id":null,"html_url":"https://github.com/PatateMagique/drv8214_multiplatform","commit_stats":null,"previous_names":["patatemagique/drv8214_multiplatform"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatateMagique%2Fdrv8214_multiplatform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatateMagique%2Fdrv8214_multiplatform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatateMagique%2Fdrv8214_multiplatform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatateMagique%2Fdrv8214_multiplatform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatateMagique","download_url":"https://codeload.github.com/PatateMagique/drv8214_multiplatform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243633600,"owners_count":20322637,"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","drv8213","drv8214","esp32","sensorless","stm32"],"created_at":"2025-03-14T19:24:08.904Z","updated_at":"2025-03-14T19:24:09.712Z","avatar_url":"https://github.com/PatateMagique.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **WORK IN PROGRESS**\n\n# DRV8214 I2C Control Library\n\n## Overview\n\nThis library provides a set of straightforward commands to control and configure the **DRV8214** brushed DC motor driver from Texas Instruments via the I2C interface. The DRV8214 is a high-performance integrated H-bridge motor driver featuring speed and position detection through ripple counting, along with additional functionalities such as motor speed and voltage regulation, stall detection, current sensing, and protection circuitry.\n\n## Features\n\n- **I2C Communication**: Seamlessly interface with the DRV8214 over I2C for efficient motor control.\n- **Motor Control**: Configure easily the various regulation and control modes of the driver.\n- **Motion Control**: Basic motion functions like turnForward to more advanced ones like turnXRipples or turnXRotations. \n- **Configuration Settings**: Access and modify device parameters to suit specific application requirements.\n- **Status Monitoring**: Retrieve real-time data on motor performance and fault conditions.\n\n## Getting Started\n\n### Prerequisites\n\n- **Hardware**: A microcontroller with I2C capability (e.g., Arduino, ESP32, STM32) and the DRV8214 motor driver.\n- **Software**: Arduino IDE or PlatformIO for code development and uploading.\n\n### Installation\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/yourusername/DRV8214_I2C_Library.git\n   ```\n\n2. **Include the Library**: Add the cloned library to your project's libraries directory.\n\n### Usage\n\n\n```cpp\n#include \u003cDRV8214.h\u003e\n\n#define IPROPI_RESISTOR 1000 // Value in Ohms of the resistor connected to IPROPI pin\n#define NUM_RIPPLES 156 // Number of current ripples per output shaft revolution \n\n// Initialize the driver with the I2C address, driver ID, and hardware dependant values\nDRV8214 motorDriver(0x60, 0, IPROPI_RESISTOR, NUM_RIPPLES);\n\n// Create a configuration struct for the driver\nDRV8214_Config driver_config;\n\nvoid setup() {\n    Wire.begin();\n    motorDriver.init(driver_config);\n}\n\nvoid loop() {\n    // Your code here\n    // example for Arduino/ESP32\n    motorDriver.turnXRipples(50000, true, true, 1);\n    delay(5000);\n    motorDriver.turnXRipples(50000, false, true, 1);\n    delay(5000);\n}\n```\n\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n\n## Acknowledgments\n\nSpecial thanks to the open-source community and Texas Instruments for their comprehensive documentation and support.\n\n---\n\n*Note: This library is under active development. Features and implementations are subject to change. Users are encouraged to regularly update and refer to the latest documentation.* \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatatemagique%2Fdrv8214_multiplatform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatatemagique%2Fdrv8214_multiplatform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatatemagique%2Fdrv8214_multiplatform/lists"}