{"id":32723551,"url":"https://github.com/asathiskumar98-byte/esp8266-variable-resistor-potentiometer-adc-reading-micropython","last_synced_at":"2026-05-15T08:03:25.018Z","repository":{"id":321333618,"uuid":"1085435871","full_name":"asathiskumar98-byte/ESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython","owner":"asathiskumar98-byte","description":"This project demonstrates how to read **analog voltage values** from a **variable resistor (potentiometer)** using the **ADC (Analog-to-Digital Converter)** on the **ESP8266** board with **MicroPython**.   The sensor’s analog output is connected to the **A0** pin, and the digital value (0–1024) is printed on the Thonny IDE console.","archived":false,"fork":false,"pushed_at":"2025-10-29T03:23:48.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-29T05:36:15.054Z","etag":null,"topics":["embedded-systems","esp8266-projects","micropython","micropython-esp8266","potentiometer","thonny-ide","variable-resistor"],"latest_commit_sha":null,"homepage":"","language":"Python","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/asathiskumar98-byte.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,"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":"2025-10-29T03:20:43.000Z","updated_at":"2025-10-29T03:23:51.000Z","dependencies_parsed_at":"2025-10-29T05:36:17.107Z","dependency_job_id":"af9c1e66-d45f-4ac6-b895-a00ec7775892","html_url":"https://github.com/asathiskumar98-byte/ESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython","commit_stats":null,"previous_names":["asathiskumar98-byte/esp8266-variable-resistor-potentiometer-adc-reading-micropython"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/asathiskumar98-byte/ESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asathiskumar98-byte%2FESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asathiskumar98-byte%2FESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asathiskumar98-byte%2FESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asathiskumar98-byte%2FESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asathiskumar98-byte","download_url":"https://codeload.github.com/asathiskumar98-byte/ESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asathiskumar98-byte%2FESP8266-Variable-Resistor-Potentiometer-ADC-Reading-MicroPython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33058965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["embedded-systems","esp8266-projects","micropython","micropython-esp8266","potentiometer","thonny-ide","variable-resistor"],"created_at":"2025-11-03T00:00:44.856Z","updated_at":"2026-05-15T08:03:25.013Z","avatar_url":"https://github.com/asathiskumar98-byte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎛️ ESP8266 Variable Resistor (Potentiometer) ADC Reading — MicroPython\n\n## 🧠 Overview\nThis project demonstrates how to read **analog voltage values** from a **variable resistor (potentiometer)** using the **ADC (Analog-to-Digital Converter)** on the **ESP8266** board with **MicroPython**.  \nThe sensor’s analog output is connected to the **A0** pin, and the digital value (0–1024) is printed on the Thonny IDE console.\n\n---\n\n## ⚙️ Hardware Setup\n\n| Component            | ESP8266 Pin | Description |\n|----------------------|-------------|--------------|\n| Variable Resistor    | A0          | Analog Input |\n| Power (VCC)          | 3.3V        | +3.3 V Supply |\n| Ground (GND)         | GND         | Common Ground |\n\n🔹 Connect the **middle pin** of the potentiometer to **A0**.  \n🔹 Connect one side to **3.3 V** and the other side to **GND**.  \n\n---\n\n## 🧩 Code\n\n```python\nimport machine\nfrom machine import ADC\nimport utime\n\n# A0 = Variable resistor middle pin (Sensor Output)\n# ADC 10-bit resolution = 0–1024\n\nvariable_resistor = machine.ADC(0)\n\nwhile True:\n    adc_value = variable_resistor.read()\n    print('step_value:', adc_value)\n    utime.sleep_ms(200)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasathiskumar98-byte%2Fesp8266-variable-resistor-potentiometer-adc-reading-micropython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasathiskumar98-byte%2Fesp8266-variable-resistor-potentiometer-adc-reading-micropython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasathiskumar98-byte%2Fesp8266-variable-resistor-potentiometer-adc-reading-micropython/lists"}