{"id":19892317,"url":"https://github.com/peff74/pir_yx-358a","last_synced_at":"2026-02-10T03:02:59.526Z","repository":{"id":243816982,"uuid":"813492286","full_name":"peff74/PIR_YX-358A","owner":"peff74","description":"Low cost PIR Sensor YX-358A / informations and modifications","archived":false,"fork":false,"pushed_at":"2026-02-03T23:18:38.000Z","size":56368,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-04T11:46:42.555Z","etag":null,"topics":["modification","motion-detection","motionsensor","pir","pir-sensor","sensor","yx-358a"],"latest_commit_sha":null,"homepage":"","language":null,"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-06-11T07:35:54.000Z","updated_at":"2025-02-18T14:27:28.000Z","dependencies_parsed_at":"2024-08-08T21:43:19.086Z","dependency_job_id":"44461f04-5f40-447f-afcf-7b08a9257601","html_url":"https://github.com/peff74/PIR_YX-358A","commit_stats":null,"previous_names":["peff74/pir_yx-358a"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peff74/PIR_YX-358A","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FPIR_YX-358A","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FPIR_YX-358A/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FPIR_YX-358A/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FPIR_YX-358A/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peff74","download_url":"https://codeload.github.com/peff74/PIR_YX-358A/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2FPIR_YX-358A/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29289899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T02:32:08.756Z","status":"ssl_error","status_checked_at":"2026-02-10T02:30:31.937Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["modification","motion-detection","motionsensor","pir","pir-sensor","sensor","yx-358a"],"created_at":"2024-11-12T18:23:02.774Z","updated_at":"2026-02-10T03:02:59.512Z","avatar_url":"https://github.com/peff74.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini low cost PIR Sensor - PIR_YX-358A\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_1.jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_2.jpg)\n- cheap +/- 1$\n- small\n- easy to use\n- easy to modify\n\n## Details\n- Working voltage:100-240V\n- Load power: 40W\n- Static current: ＜ 50μA\n- Time delay: 45s\n- Induction angle: 110 °\n- Induction distance: 4-6M\n\n## know problem\n\nMany devices have only a delay of ~20sec\nThere are different versions of the PCB\n\n## kown facts\n- all versions have the same, very simple AC/DC PCB\n- all versions use the chip called SP015 A\n\n## The version that I got, possibly the newest one\n- 230V side\n\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_230V_PCB.jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_230V_PCB_2.jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_230VAC.jpg)\n\n- 3.3V side (C1 is accidentally missing ^^)\n\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_33V_PCB_1(low).jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_33V_PCB_2(low).jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_33V_PCB_3.jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_33DC.jpg\n)\n\n## ONTIME MOD\n\ntechnical details\n  ![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/OnTime.jpg)\n  ![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/timing.png)\n\n\n\nhow to mod, I use a 260K resistor and got around 45 secounds\n ![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/MOD_1.jpg)\n  ![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/MOD_2.jpg)\n  \n## Other Version \n  ![AHT20_BMP280 logo](https://github.com/peff74/PIR_YX-358A/blob/main/PIR_otherVersion.jpg)\n\nHere the resistor R10 is responsible for the delay.\nTo change the delay\n\n- 160K Ohm - 23 seconds\n- 220K Ohm - 30 seconds\n- 300K Ohm - 1 minute\n- 470K Ohm - 3 minutes\n  \n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fpeff74%2FPIR_YX-358A\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Fpir_yx-358a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeff74%2Fpir_yx-358a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Fpir_yx-358a/lists"}