{"id":20858256,"url":"https://github.com/xtalism/aero-pid-controller","last_synced_at":"2025-04-10T21:09:35.927Z","repository":{"id":241680720,"uuid":"807411733","full_name":"Xtalism/aero-pid-controller","owner":"Xtalism","description":"PID controller using two brushless motors with they respective ESC, and an Arduino Mega 2560.","archived":false,"fork":false,"pushed_at":"2024-05-29T09:17:07.000Z","size":6975,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T21:09:35.537Z","etag":null,"topics":["arduino","control-systems","electronics","pid-controller"],"latest_commit_sha":null,"homepage":"","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/Xtalism.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,"publiccode":null,"codemeta":null}},"created_at":"2024-05-29T03:57:54.000Z","updated_at":"2024-11-28T22:11:39.000Z","dependencies_parsed_at":"2024-05-29T17:02:49.376Z","dependency_job_id":"ebc44db3-3211-4430-a9d3-c037c7821348","html_url":"https://github.com/Xtalism/aero-pid-controller","commit_stats":null,"previous_names":["xtalism/aero-pid-control"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtalism%2Faero-pid-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtalism%2Faero-pid-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtalism%2Faero-pid-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtalism%2Faero-pid-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xtalism","download_url":"https://codeload.github.com/Xtalism/aero-pid-controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298334,"owners_count":21080320,"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","control-systems","electronics","pid-controller"],"created_at":"2024-11-18T04:45:20.364Z","updated_at":"2025-04-10T21:09:35.913Z","avatar_url":"https://github.com/Xtalism.png","language":"C++","readme":"# Aero PID Controller\n\nIn order for the project to work, make sure to calibrate both ESC before running the main code. You gotta make sure you have installed the [Servo](https://www.arduino.cc/reference/en/libraries/servo/) and [Wire](https://www.arduino.cc/reference/en/language/functions/communication/wire/) Arduino libraries.\n    \n    #include \u003cServo.h\u003e\n    #include \u003cWire.h\u003e\n\nTo read MPU6050's raw accelerometer and gyroscope data, we must register our MPU's hex addresses. Just as follows:\n\n    // Accelerometer raw data\n    Acc_rawX = Wire.read() \u003c\u003c 8 | Wire.read();\n    Acc_rawY = Wire.read() \u003c\u003c 8 | Wire.read();\n    Acc_rawZ = Wire.read() \u003c\u003c 8 | Wire.read();\n    \n    // Gyro raw data\n    Gyr_rawX = Wire.read() \u003c\u003c 8 | Wire.read();\n    Gyr_rawY = Wire.read() \u003c\u003c 8 | Wire.read();\n\nIf you'd like to make any changes, you can check the MPU6050's [datasheet](https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf) anytime you want. \n\n![structure](img/render.png)\n\nIdeal aero PID controller structure.\n\n![schematic](img/schematic.png)\n\nWe can use any Arduino board, as long as SDA and SCL pins are available.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtalism%2Faero-pid-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtalism%2Faero-pid-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtalism%2Faero-pid-controller/lists"}