{"id":13780441,"url":"https://github.com/jeroendoggen/Arduino-distance-sensor-library","last_synced_at":"2025-05-11T13:32:22.366Z","repository":{"id":6091727,"uuid":"7318640","full_name":"jeroendoggen/Arduino-distance-sensor-library","owner":"jeroendoggen","description":"Arduino library for distance sensors","archived":false,"fork":false,"pushed_at":"2018-01-08T13:10:00.000Z","size":4721,"stargazers_count":37,"open_issues_count":5,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T18:15:07.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jeroendoggen.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}},"created_at":"2012-12-25T15:59:30.000Z","updated_at":"2023-10-14T19:12:46.000Z","dependencies_parsed_at":"2022-08-30T15:51:11.959Z","dependency_job_id":null,"html_url":"https://github.com/jeroendoggen/Arduino-distance-sensor-library","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroendoggen%2FArduino-distance-sensor-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroendoggen%2FArduino-distance-sensor-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroendoggen%2FArduino-distance-sensor-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroendoggen%2FArduino-distance-sensor-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeroendoggen","download_url":"https://codeload.github.com/jeroendoggen/Arduino-distance-sensor-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056822,"owners_count":17414217,"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":[],"created_at":"2024-08-03T18:01:15.725Z","updated_at":"2024-11-17T15:31:13.267Z","avatar_url":"https://github.com/jeroendoggen.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"[![DOI](https://zenodo.org/badge/7755/jeroendoggen/Arduino-distance-sensor-library.svg)](http://dx.doi.org/10.5281/zenodo.13196)\n\n# Arduino library for distance sensors\nThe current version provides a unified interface for four sensors:\n\n * SRF04 \u0026 SRF05 Ultrasonic Ranger\n * Sharp GP2Y0A21YK IR Distance sensor\n * Sharp GP2Y0A41SK IR Distance sensor\n\nCode for the individual sensors in also maintained in separate Google code projects. (will be moved to Github soon) (http://code.google.com/u/104098523773938750140/)\n\n## Other Sharp distance sensors:\n\nCurrently this library only supports the sensors mentioned above.\nIf you want to use other distance sensors with this libraries you can do that by adding the appropriate source files.\nHave a look at the class diagram below to get an idea of the structure.\n\nAdding an other analog Sharp sensor would mean copy/pasting some of the existing (.cpp \u0026 .h) files and changing some parameters in the calculation in the function \"getDistanceCentimeter\".\nYou can either derive the parameters from your datasheet or perform a linear regression on experimental data using (1/distance on the X-axis!)\n\nFeel free to fork this project \u0026 send me a pull request if you have some correctly working code.\n\n## Folders:\n * DistanceSensor: source for the Arduino library\n * Documentation: generated with Doxygen (html, Latex)\n\n## Datasheets:\nAnalog IR Distance sensors:\n *  [Sharp gp2y0a21yk](https://github.com/jeroendoggen/arduino-distance-sensor-library/raw/master/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a21yk_new.pdf)\n *  [Sharp gp2y0a41sk0f](https://github.com/jeroendoggen/arduino-distance-sensor-library/raw/master/Documentation/datasheets/Distance_IR_Analog_Sharp_gp2y0a41sk0f.pdf)\n\nUltrasonic sensors:\n *  [SRF-04](https://github.com/jeroendoggen/arduino-distance-sensor-library/raw/master/Documentation/datasheets/Distance_Ultrasonic_srf04.pdf)\n\n  \n## Class diagram:\n![Class diagram](https://raw.github.com/jeroendoggen/arduino-distance-sensor-library/master/Documentation/html/class_distance_sensor__inherit__graph.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroendoggen%2FArduino-distance-sensor-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeroendoggen%2FArduino-distance-sensor-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroendoggen%2FArduino-distance-sensor-library/lists"}