{"id":18745436,"url":"https://github.com/gioblu/reflectometer","last_synced_at":"2025-04-12T21:32:50.695Z","repository":{"id":23557179,"uuid":"26924588","full_name":"gioblu/Reflectometer","owner":"gioblu","description":"Reflectometer Arduino library - Wire and use in a simple way photodiode / LED based reflectometers / range finders","archived":false,"fork":false,"pushed_at":"2015-06-25T01:00:12.000Z","size":200,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T16:01:31.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gioblu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-20T17:55:43.000Z","updated_at":"2021-09-14T08:45:55.000Z","dependencies_parsed_at":"2022-07-27T04:02:11.710Z","dependency_job_id":null,"html_url":"https://github.com/gioblu/Reflectometer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioblu%2FReflectometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioblu%2FReflectometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioblu%2FReflectometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gioblu%2FReflectometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gioblu","download_url":"https://codeload.github.com/gioblu/Reflectometer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248636327,"owners_count":21137427,"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-11-07T16:18:05.867Z","updated_at":"2025-04-12T21:32:50.361Z","avatar_url":"https://github.com/gioblu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Reflectometer Arduino library\n##### Play in a simple way with photodiode / LED based reflectometers / range finders / light sensors\n=====\nReflectometer mySensor(**Emitter pin**, **Sensor pin**, **Readings**, **Filter**);\n\u003e **Emitter pin**: Arduino pin where you connected the positive of the IR/visible light emitter\u003cbr\u003e\n\u003e **Sensor pin**: Arduino analog pin where you connected the positive of the photodiode/LED \u003cbr\u003e\n\u003e **Readings**: Number of analog readings you want to perform in one measurement\u003cbr\u003e\n\u003e **Filter**: Insert a number from 0 to 1 to filter the output value\u003cbr\u003e\n\nmysensor.distance(); \n\u003cbr\u003e\n\u003e Returns **distance** measurement using ISL (Inverse Square Law), obviously its impossible to determine a correct distance value without knowing the reflectivity of the object in front (could be a mirror 10m away or a black paper sheet at 1m), so in this case is only an estimated value.\n\nmysensor.ambient(); \n\u003cbr\u003e\n\u003e Returns **ambient light** value that is the sum of all readings done with the LED emitter off\n\nmysensor.reflex(); \n\u003cbr\u003e\n\u003e Returns **light measurement** value that is the sum of all readings done with the LED emitter on\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgioblu%2Freflectometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgioblu%2Freflectometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgioblu%2Freflectometer/lists"}