{"id":16246206,"url":"https://github.com/benruehl/android-sensor-mandala","last_synced_at":"2026-04-30T19:31:34.621Z","repository":{"id":99944786,"uuid":"201549440","full_name":"benruehl/android-sensor-mandala","owner":"benruehl","description":"A mandala generator for Android that uses accelerometer sensor data as input","archived":false,"fork":false,"pushed_at":"2019-08-10T09:52:47.000Z","size":653,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T22:41:21.157Z","etag":null,"topics":["accelerometer","android","chart","mandala","sensor"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benruehl.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":"2019-08-09T22:39:05.000Z","updated_at":"2025-02-23T14:05:51.000Z","dependencies_parsed_at":"2023-05-11T05:15:25.375Z","dependency_job_id":null,"html_url":"https://github.com/benruehl/android-sensor-mandala","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benruehl/android-sensor-mandala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Fandroid-sensor-mandala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Fandroid-sensor-mandala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Fandroid-sensor-mandala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Fandroid-sensor-mandala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benruehl","download_url":"https://codeload.github.com/benruehl/android-sensor-mandala/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Fandroid-sensor-mandala/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["accelerometer","android","chart","mandala","sensor"],"created_at":"2024-10-10T14:29:44.471Z","updated_at":"2026-04-30T19:31:34.606Z","avatar_url":"https://github.com/benruehl.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sensor Mandala\n\nThis Android app is a university project demonstrating the use of sensor data generated by a phone's accelerometer. To achieve that, it presents received data either as a seismograph-like chart or as a generated piece of art, called mandala.\n\n## Menu\n\nLaunching the app brings the user to the menu view first. At the top the phone's current acceleration is displayed in 3 progress bars, one for each axis. At the bottom there are buttons to navigate to the other views of the app.\n\n![Menu view](docs/images/menu-screenshot.jpg)\n\n## Seismograph\n\nThe seismograph-like chart displays the phone's acceleration in all 3 axes. It is refreshed at a regular interval and shows data changes over a few seconds. It makes use of [MPAndroidChart's](https://github.com/PhilJay/MPAndroidChart) LineChart component.\n\n![Seismograph view](docs/images/seismograph-screenshot.jpg)\n\n## Mandala Generator\n\nThe mandala generator uses the sensor data generated by the phones accelerometer as input to generate its visuals. Each mandala consists of multiple segments whereas each second segment is a mirror to the one before. It takes the sensor data points over a certain amount of time and maps them to coordinates inside each segment. All coordinates are connected using lines on a canvas. The result looks like the following:\n\n![Mandala generator view](docs/images/generator-screenshot.jpg)\n\nMoving and shaking the phone generates data points which change the appearance of the mandala. A snapshot of the current mandala state can be taken at any time by the press of a button.\n\n### Calculation\n\nThe calculation of a coordinate by a data point is shown in the following listing. The acceleration on the x-axis of each data point is translated to an angle offset in each segment. The y-axis is mapped to the distance from the mandala center. The z-axis is only used for the thickness of the lines between coordinates.\n\n![Mandala generator calculation](docs/images/mandala-calculation.jpg)\n\n### Filters\n\nThe generator offers filters that can be applied to modify the collection of data points that are used for drawing. High-pass and low-pass filters for example ignore data points that are higher or lower a specific threshold. The `ReduceCloseNeighbors` filter ignores data points that have a low delta to their predecessor. This improves rendering performance by leaving out very short lines that are hardly visible anyways.\n\n### Color\n\nThe generator offers different coloring options called `Colorizers`. Each implementation of a colorizer determines a color for each data point. Currently, black, red and rainbow coloring is supported.\n\n## Mandala Gallery\n\nMandala snapshots can be viewed in the gallery. Tapping a mandala shows it in full screen size.\n\n![Mandala gallery view](docs/images/gallery-screenshot.jpg)\n\n## App Architecture\n\n### UML class diagram of `MandalaGeneratorActivity` and associated components\n\n![Class diagram of MandalaGeneratorActivity](docs/images/uml-activity.png)\n\n### UML class diagram of data layer\n\n![Class diagram of data layer](docs/images/uml-data-layer.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenruehl%2Fandroid-sensor-mandala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenruehl%2Fandroid-sensor-mandala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenruehl%2Fandroid-sensor-mandala/lists"}