{"id":20621009,"url":"https://github.com/can-root/Arduino-L298N-can-root","last_synced_at":"2025-05-10T03:33:06.475Z","repository":{"id":262089015,"uuid":"886182429","full_name":"can-root/Arduino-L298N-can-root","owner":"can-root","description":"L298N Arduino kütüphanesi","archived":false,"fork":false,"pushed_at":"2024-11-10T13:37:17.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T23:18:09.289Z","etag":null,"topics":["arduino","arduino-library","dc-motor-driver","l298n","l298n-lib","motor"],"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/can-root.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-11-10T12:25:32.000Z","updated_at":"2024-11-23T17:01:47.000Z","dependencies_parsed_at":"2024-11-10T22:13:09.172Z","dependency_job_id":null,"html_url":"https://github.com/can-root/Arduino-L298N-can-root","commit_stats":null,"previous_names":["can-root/l298n-can-root","can-root/arduino-l298n-can-root"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-root%2FArduino-L298N-can-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-root%2FArduino-L298N-can-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-root%2FArduino-L298N-can-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-root%2FArduino-L298N-can-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/can-root","download_url":"https://codeload.github.com/can-root/Arduino-L298N-can-root/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253358157,"owners_count":21895977,"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","arduino-library","dc-motor-driver","l298n","l298n-lib","motor"],"created_at":"2024-11-16T12:16:23.874Z","updated_at":"2025-05-10T03:33:06.466Z","avatar_url":"https://github.com/can-root.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"L298N DC motor sürücü kütüphanesidir.\n\nKullanım:\n\n1-Kütüphaneyi içe aktarıp pinleri sırasıyla giriyoruz.Buradaki ilk 2 pin motor 1 in 1. ve 2. yönünü kontrol ediyor.\nSıradaki iki pin ise motor 2 nin 1. ve 2. yönünü kontrol ediyor.Son iki pin ise sırasıyla motor1 ve motor2 nin hızını kontrol ediyor(enb pinleri).\n\n![resim](https://github.com/user-attachments/assets/759689e8-9276-49f8-9afc-1c8a8b03b51e)\n\n![resim](https://github.com/user-attachments/assets/8db3d688-3bfe-4a13-9ac5-37622f4a22df)\n\n\n2-Motorları dörtlü bloklar halinde [motor1 in yönü, motor2 nin yönü, motor1 nin hızı ve motor2 nin hızı] kontrol ediyoruz.\n\n![resim](https://github.com/user-attachments/assets/8fcf3153-aed3-4069-995f-7206d27a6cc1)\n\n3-Fonksiyonlar\n\nmotorSurucu.motor1Yonu(1); gibi yön fonksiyonlarının içine 1 girilirse pozitif yönde -1 girilirse negatif yönde dönerler.\n\nmotorSurucu.motor1Hiz(128); gibi hız fonksiyonlarında ise 0-255 arasında sayılar girilerek hızı PWM ile ayarlanır.\n\nmotorSurucu.sagaDurdur();  Sağ motoru durdurur.\n\n\nmotorSurucu.solaDurdur();  Sol motoru durdurur.  \n\n\nmotorSurucu.durdur(); Her iki motoruda durdurur.\n\nmotorSurucu.ileriGit(128);\n\nmotorSurucu.geriGit(128); \n\n                           Eğer basit bir araba modeli yapıldıysa bu şekilde yönlendirme işlemleride yapılabilir.\n                          \nmotorSurucu.solaDon(128);\n\nmotorSurucu.sagaDon(128);\n\n4-Örnek\n\n![resim](https://github.com/user-attachments/assets/6587ee66-41b8-4e68-b1c8-633e84907618)\n\n\n5-Şema\n\n![resim](https://github.com/user-attachments/assets/ba61bff0-8328-4465-a4ee-f6d8f7966d2c)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-root%2FArduino-L298N-can-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcan-root%2FArduino-L298N-can-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-root%2FArduino-L298N-can-root/lists"}