{"id":20438798,"url":"https://github.com/neoxic/atmega-analog-gate","last_synced_at":"2026-05-10T17:37:26.682Z","repository":{"id":146961525,"uuid":"462164237","full_name":"neoxic/ATmega-Analog-Gate","owner":"neoxic","description":"Simple analog gate firmware for ATmega MCUs","archived":false,"fork":false,"pushed_at":"2023-08-06T04:51:19.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T19:55:21.404Z","etag":null,"topics":["analog-gate","atmega"],"latest_commit_sha":null,"homepage":"","language":"C","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/neoxic.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":"2022-02-22T06:15:46.000Z","updated_at":"2024-11-01T22:11:36.000Z","dependencies_parsed_at":"2025-01-15T19:12:12.342Z","dependency_job_id":"c06fdbce-832b-4bbc-ac5c-65c791db2329","html_url":"https://github.com/neoxic/ATmega-Analog-Gate","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/neoxic%2FATmega-Analog-Gate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxic%2FATmega-Analog-Gate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxic%2FATmega-Analog-Gate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neoxic%2FATmega-Analog-Gate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neoxic","download_url":"https://codeload.github.com/neoxic/ATmega-Analog-Gate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241984067,"owners_count":20052808,"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":["analog-gate","atmega"],"created_at":"2024-11-15T09:13:27.179Z","updated_at":"2026-05-10T17:37:26.623Z","avatar_url":"https://github.com/neoxic.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple analog gate firmware for ATmega MCUs\n===========================================\n\nDependencies\n------------\n\n+ cmake\n+ avr-gcc\n+ avr-libc\n+ avrdude\n\n\nConfiguration\n-------------\n\nThere are a couple of _#define_ values at the beginning of _src/main.c_ to set up the gate.\n\n| Value | Description                                                                         |\n|-------|-------------------------------------------------------------------------------------|\n| AVCC  | Voltage on the AVCC pin (must be measured with a multimeter)                        |\n| VIN1  | The output pin goes high if voltage on the input pin becomes higher than this value |\n| VIN2  | The output pin goes low if voltage on the input pin becomes lower than this value   |\n\n* The difference between VIN1 and VIN2 (VIN1 \u003e VIN2) defines the depth of hysteresis between output transitions.\n\n* The output pin can be inverted via the OUT_INV option.\n\n\nInstallation\n------------\n\nTo build, run (with your own MCU):\n\n    cmake -B build -D MCU=ATMEGA32U4\n\tcd build\n    make\n\nTo install on the device using AVRDUDE, run (with your own programmer):\n\n\tmake PROG=usbasp flash\n\nor for Teensy 2.0:\n\n    make flash-teensy\n\n\nPinout\n------\n\n| Pin       | I/O | Description    |\n|-----------|-----|----------------|\n| PF4 (PC4) | AIN | Input          |\n| PD7       | OUT | Output         |\n| PD6 (PB5) | OUT | Status LED     |\n\nPins in brackets pertain to 32-pin devices, i.e. ATmega88/168/328/etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoxic%2Fatmega-analog-gate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneoxic%2Fatmega-analog-gate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneoxic%2Fatmega-analog-gate/lists"}