{"id":13746164,"url":"https://github.com/panyingyun/argonone","last_synced_at":"2026-01-25T00:10:19.800Z","repository":{"id":78746046,"uuid":"270150076","full_name":"panyingyun/argonone","owner":"panyingyun","description":"Argon One Service and Control Service  coding by golang  for Raspberry Pi 4B/4B+ CentOS7.7 OS","archived":false,"fork":false,"pushed_at":"2022-10-17T01:21:17.000Z","size":1960,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T19:37:16.599Z","etag":null,"topics":["argon","argonone","golang"],"latest_commit_sha":null,"homepage":"https://www.michaelapp.com/","language":"Go","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/panyingyun.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}},"created_at":"2020-06-07T00:56:39.000Z","updated_at":"2023-03-28T18:51:21.000Z","dependencies_parsed_at":"2023-03-01T09:46:27.964Z","dependency_job_id":null,"html_url":"https://github.com/panyingyun/argonone","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/panyingyun%2Fargonone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panyingyun%2Fargonone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panyingyun%2Fargonone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panyingyun%2Fargonone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panyingyun","download_url":"https://codeload.github.com/panyingyun/argonone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253209221,"owners_count":21871610,"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":["argon","argonone","golang"],"created_at":"2024-08-03T06:00:48.386Z","updated_at":"2026-01-25T00:10:19.763Z","avatar_url":"https://github.com/panyingyun.png","language":"Go","funding_links":[],"categories":["Software"],"sub_categories":["Replacements"],"readme":"# PI4-CASE-ARGON-ONE\nArgon One Service and Control Service  coding by golang  for Raspberry Pi 4B/4B+ centos7.7 or other Pi Linux System\n\nEnjoy it.\n\n### 1、Hardware \n- Raspberry Pi 4 Model B Rev 1.2\n- PI4-CASE-ARGON-ONE\n\n### 2、Rom \u0026 OS \n- CentOS 7.7 [Download Rom and Flash to SD](!https://www.michaelapp.com/posts/2018/2018-09-13-%E6%A0%91%E8%8E%93%E6%B4%BE64%E4%BD%8DCentOS%E5%AE%89%E8%A3%85/)\n\n### 3、Boot config file(very important,if not do this, application can not run normal.)\n\n*open i2c dev driver*\n\n```shell\n### vim /boot/config.txt and add next info\ndtparam=i2c_arm=on,i2c_arm_baudrate=32000\ndtparam=i2s=on\ndtparam=i2c_baudrate=32000\n\n### vim /etc/modules-load.d/modules.conf and add next info\ni2c-dev\ni2c-bcm2835\ni2c-bcm2708\n```\n\n### 4、Reboot \u0026\u0026 check config work or not \n\n - (1) check i2c dirver work \n\n```shell\n[root@pinas2 modprobe.d]# lsmod | grep i2c\ni2c_bcm2708            16384  0 \ni2c_bcm2835            16384  0 \ni2c_dev                20480  0 \n```\n - (2) check i2c baudrate(32000 is OK)\n\n```shell\n[root@pinas2 tools]# cat /sys/module/i2c_bcm2708/parameters/baudrate\n32000\n```\n\n - (3) check ARGON-ONE device('1a' is device address for fan) \n\n```shell\n[root@pinas2 tools]# yum install i2c-tools -y\n[root@pinas2 tools]# i2cdetect -y 1 \n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\n00:          -- -- -- -- -- -- -- -- -- -- -- -- -- \n10: -- -- -- -- -- -- -- -- -- -- 1a -- -- -- -- -- \n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n70: -- -- -- -- -- -- -- --  \n```\n\n- (4) check cpu temp \n\n```shell\n[root@pinas2 tools]# cat /sys/class/thermal/thermal_zone0/temp\n44790\n```\n\n### 5、How to build \n\n```shell\n//ssh to your board and prepare Pioneer600\n//and install git tools \nsudo apt-get update\nsudo apt-get upgrade\nsudo apt install -y vim git build-essential i2c-tools\nsudo apt install -y golang\n\n//clone code \ngit clone git@github.com:panyingyun/argonone.git\n\n//build \ncd argonone/cmd\n\n//build arm\nCGO_ENABLED=0 GOOS=linux GOARCH=arm go build  -o argonone\n```\n\n\n### 6、How to run \n\n```shell\nargonone -c prod.yml\n```\n\n### 7、Auto-run when reboot OS \n\nRun build_arm64.sh, it will autorun argonone when reboot os\n\n```shell\nchmod 755 build_arm64.sh \nsudo sh build_arm64.sh \n```\n\nOther shell cmd \n\n```shell\n// enable \nsudo systemctl enable argonone.service\n\n// disable \nsudo systemctl disable argonone.service\n\n// start service \nsudo systemctl start  argonone.service\n\n// stop \nsudo systemctl stop argonone.service\n\n// restart \nsudo systemctl restart argonone.service\n```\n\n### 8、Check Result\n\n**When CPU Temp from 41.381℃ to 39.92℃ ,and fan speed from 10% to stop.**\n\n```shell\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:34\",\"msg\":\"Raspberry Pi 4 Argonone Fan\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:34\",\"msg\":\"Thanks to https://gobot.io\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:35\",\"msg\":\"Current Temp is 41.381 ℃\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:35\",\"msg\":\"FANOn10 ...\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:40\",\"msg\":\"Current Temp is 40.894 ℃\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:40\",\"msg\":\"FANOn10 ...\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:45\",\"msg\":\"Current Temp is 39.92 ℃\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:45\",\"msg\":\"FANOff ...\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:50\",\"msg\":\"Current Temp is 39.92 ℃\"}\n{\"level\":\"INFO\",\"ts\":\"2020-06-07 11:20:50\",\"msg\":\"FANOff ...\"}\n```\n\n### 9、Thanks To\n\n- https://github.com/Elrondo46/argonone\n- http://www.waveshare.net/wiki/PI4-CASE-ARGON-ONE\n- https://www.cnblogs.com/bcy520/p/6816310.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanyingyun%2Fargonone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanyingyun%2Fargonone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanyingyun%2Fargonone/lists"}