{"id":18320239,"url":"https://github.com/gedex/pwm-from-adc","last_synced_at":"2025-04-09T14:24:03.712Z","repository":{"id":8620925,"uuid":"10263921","full_name":"gedex/pwm-from-adc","owner":"gedex","description":"PWM from ADC for Robot's Joystick.","archived":false,"fork":false,"pushed_at":"2013-05-24T10:11:18.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T08:24:39.784Z","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/gedex.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":"2013-05-24T10:05:50.000Z","updated_at":"2014-02-27T00:30:06.000Z","dependencies_parsed_at":"2022-08-27T18:20:29.048Z","dependency_job_id":null,"html_url":"https://github.com/gedex/pwm-from-adc","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/gedex%2Fpwm-from-adc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fpwm-from-adc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fpwm-from-adc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gedex%2Fpwm-from-adc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gedex","download_url":"https://codeload.github.com/gedex/pwm-from-adc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054358,"owners_count":21039986,"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-05T18:15:37.981Z","updated_at":"2025-04-09T14:24:03.689Z","avatar_url":"https://github.com/gedex.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"PWM From ADC\n============\n\nThis project can be used as a robot's joystick to generate PWM for motor DC from ADC values.\nMany [ABU Robocon](http://en.wikipedia.org/wiki/ABU_Robocon) contestants from Indonesia use this kind\nof joystick to drive their robots.\n\n## Spec\n\n* Schematic: adc_schematic.jpg\n\n  \u003cimg src=\"https://github.com/gedex/pwm-from-adc/raw/master/adc_schematic.jpg\"\u003e\n\n* Internal ADC from ATMega16 or ATMega8535\n* ADC0 (PINA.0) and ADC1 (PINA.1) connected to potentiometer (10k or 50k is fine). Sliding contact from potentiometer is hooked into two\n  meshing gears.\n* R3, R4, R5, and R6 values are 220 or 330 Ohm.\n* ADC values (1 - 255) is adjusted to set the Timer0 from MCU. For example, simple formula like below:\n\n  ~~~text\n  // Assuming center value (126-128) is for stop\n  if ( adc \u003c 126 ) {\n\t\tmotor_direction = forward;\n\t\tpwm = ( adc - 128 ) * 2;\n  } else {\n\t\tmotor_direction = backward;\n\t\tpwm = 255 - ( adc * 2 );\n  }\n\n  ~~~\n\n## License - MIT License\n\nCopyright (c) 2006 Akeda Bagus \u003cadmin@gedex.web.id\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fpwm-from-adc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgedex%2Fpwm-from-adc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgedex%2Fpwm-from-adc/lists"}