{"id":19892302,"url":"https://github.com/peff74/acs712_esp8266","last_synced_at":"2026-04-19T02:02:10.449Z","repository":{"id":242050332,"uuid":"808553579","full_name":"peff74/ACS712_ESP8266","owner":"peff74","description":"ESP8266 arduino script for ACS712 to measure AC current","archived":false,"fork":false,"pushed_at":"2025-10-05T23:11:25.000Z","size":33473,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T01:09:44.636Z","etag":null,"topics":["ac","acs712","arduino","beginner-friendly","current","esp8266","sensor"],"latest_commit_sha":null,"homepage":"","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/peff74.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":"2024-05-31T10:01:29.000Z","updated_at":"2024-11-04T14:00:24.000Z","dependencies_parsed_at":"2024-05-31T11:25:18.521Z","dependency_job_id":"c6408fa4-7f11-4bcd-9a76-1d9fdf75354b","html_url":"https://github.com/peff74/ACS712_ESP8266","commit_stats":null,"previous_names":["peff74/acs712_esp8266"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peff74/ACS712_ESP8266","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FACS712_ESP8266","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FACS712_ESP8266/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FACS712_ESP8266/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FACS712_ESP8266/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peff74","download_url":"https://codeload.github.com/peff74/ACS712_ESP8266/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FACS712_ESP8266/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016923,"owners_count":26085905,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["ac","acs712","arduino","beginner-friendly","current","esp8266","sensor"],"created_at":"2024-11-12T18:22:58.649Z","updated_at":"2025-10-13T20:05:33.003Z","avatar_url":"https://github.com/peff74.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AC Current with ACS712  and ESP8266 D1 mini!\n\nThere are a few pitfalls, but if you know them, it works well.\nYou have to adjust the voltage divider, pay attention to the read speed of the ACD and adjust the noise suppression.\n![ACS712 logo](https://github.com/peff74/ACS712_ESP8266/blob/main/8266_ACS712.jpg)\n\n# Why ACS712\n![ACS712 logo](https://github.com/peff74/ACS712_ESP8266/blob/main/ACS712-modul-5A-20A-30A.webp)\n - cheap\n - small\n - available everywhere\n - safe, due to galvanic separation\n\n## Using the AD converter of the ESP8266 for the ACs712\n\n It's not difficult at all, especially if you use the WeMos D1 mini.\n The D1 mini already has an integrated voltage divider.\n So you are not limited to the 1.0V of the ESP8266 ADC.\n\nThe voltage divider of the D1 mini is designed for **3.3V**.\nNow we just have to extend it so that it works with the **5V** of the ACS712.\nWe do this by simply connecting a **180k resistor** in series with the A0 input\n\n## The WiFi pitfall\n**Many measurements in a short time can lead to problems with the WiFi!!**\n\nBecause:\n\n The ADC is used on the 8266 by WiFi to test the signal level, too.\nHard use of analogRead(A0) influences the readings of the WiFi RD level.\nThis can be set with the \"Delay_Time\"\n The value 2 works when WiFi is simply connected.\n If you want to work with the WiFiEventHandler, e.g. to detect a disconnect, the value should better be 4,\n because the WiFiEventHandler is no longer triggered incorrectly.\n\"do_measurements\" should then be reduced to 25.\nOf course, this reduces the accuracy\n\n    #define Delay_Time 2\n\n## Correct scaling value for the different models\nACS712 5A module --\u003e scaling: 185 mV/Amp\n\nACS712 20A module --\u003e scaling: 100 mV/Amp\n\nACS712 30A module --\u003e scaling: 66 mV/Amp\n\n    #define Scaling 185.0\n\n# filter out the noise \n\nBecause we record all the values around the measuring point\nin every series of measurements\nwe can filter out the values that are most off the mark.\n\nInterference is mainly caused by current-carrying cables next to the line to A0. \nHowever, bad power supply units can also play their part \n\n    #define  Noise_Filter  4\n\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fpeff74%2FACS712_ESP8266\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Facs712_esp8266","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeff74%2Facs712_esp8266","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Facs712_esp8266/lists"}