{"id":50527897,"url":"https://github.com/zerotonin/currentsensation","last_synced_at":"2026-06-03T09:31:38.267Z","repository":{"id":357969845,"uuid":"1225299545","full_name":"zerotonin/currentsensation","owner":"zerotonin","description":"Migrated from gitlab.gwdg.de/bgeurte/currentsensation","archived":false,"fork":false,"pushed_at":"2026-05-15T02:54:35.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-15T04:41:28.637Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zerotonin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-30T06:29:52.000Z","updated_at":"2026-05-15T02:54:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zerotonin/currentsensation","commit_stats":null,"previous_names":["zerotonin/currentsensation"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zerotonin/currentsensation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerotonin%2Fcurrentsensation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerotonin%2Fcurrentsensation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerotonin%2Fcurrentsensation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerotonin%2Fcurrentsensation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerotonin","download_url":"https://codeload.github.com/zerotonin/currentsensation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerotonin%2Fcurrentsensation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33858571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-03T09:31:37.402Z","updated_at":"2026-06-03T09:31:38.252Z","avatar_url":"https://github.com/zerotonin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# currentsensation\n\n[![tests](https://github.com/zerotonin/currentsensation/actions/workflows/tests.yml/badge.svg)](https://github.com/zerotonin/currentsensation/actions/workflows/tests.yml)\n[![docs](https://github.com/zerotonin/currentsensation/actions/workflows/docs.yml/badge.svg)](https://zerotonin.github.io/currentsensation/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nRaspberry-Pi experiment controller for **insect electroreception assays**:\nthree colour-coded GPIO-driven current lines, a startle shaker, a light,\nand synchronised video or image capture.\n\nOriginally written in 2017 (Python 2) for a single experiment; refactored\nin 2026 into a small Python 3.11+ package with a mock GPIO backend so the\nscheduling and analysis pieces can be developed and tested off-Pi.\n\n## Hardware\n\n| Channel | Default GPIO (BCM) | Purpose                            |\n|---------|--------------------|------------------------------------|\n| red     | 18                 | current line A                     |\n| blue    | 24                 | current line B                     |\n| yellow  |  8                 | current line C                     |\n| light   | 14                 | illumination for camera frames     |\n| shaker  | 13                 | mechanical startle stimulus        |\n\nPin assignments live in `currentsensation.constants` and can be overridden\nper deployment.\n\n## Install\n\n```bash\n# off-Pi development (mock GPIO backend, no RPi.GPIO needed)\npip install -e \".[dev]\"\n\n# on a Raspberry Pi\npip install -e \".[pi]\"\n```\n\n## Quickstart\n\n```bash\ncurrentsensation run \\\n    --save-dir /mnt/data/expt-2026-05-15 \\\n    --reps 3 \\\n    --stim-dur 1800 \\\n    --peri-stim-dur 30 \\\n    --shake-dur 30 \\\n    --lines red,blue,yellow \\\n    --capture video\n```\n\n## Citation\n\nIf you use this software, please cite via the metadata in\n[`CITATION.cff`](CITATION.cff).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerotonin%2Fcurrentsensation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerotonin%2Fcurrentsensation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerotonin%2Fcurrentsensation/lists"}