{"id":20316150,"url":"https://github.com/lupyuen/bl602_adc_test","last_synced_at":"2026-05-11T00:38:28.074Z","repository":{"id":87766627,"uuid":"447195461","full_name":"lupyuen/bl602_adc_test","owner":"lupyuen","description":"Test App for BL602 ADC and Temperature Sensor Library for Apache NuttX OS","archived":false,"fork":false,"pushed_at":"2022-01-13T23:29:01.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T12:53:47.203Z","etag":null,"topics":["bl602","bl604","nuttx","pinecone","pinedio","riscv32"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lupyuen.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-12T11:42:30.000Z","updated_at":"2022-04-17T18:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"7df683c8-554e-4389-aa2c-3ddf3c1ab373","html_url":"https://github.com/lupyuen/bl602_adc_test","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/lupyuen%2Fbl602_adc_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fbl602_adc_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fbl602_adc_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fbl602_adc_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lupyuen","download_url":"https://codeload.github.com/lupyuen/bl602_adc_test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818902,"owners_count":20025210,"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":["bl602","bl604","nuttx","pinecone","pinedio","riscv32"],"created_at":"2024-11-14T18:24:38.513Z","updated_at":"2026-05-11T00:38:28.030Z","avatar_url":"https://github.com/lupyuen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test App for BL602 ADC and Temperature Sensor Library for Apache NuttX OS\n\nThis NuttX App reads BL602's Internal Temperature Sensor via ADC...\n\n-   [bl602_adc_test_main.c](bl602_adc_test_main.c)\n\nAs explained in [this Twitter Thread](https://twitter.com/MisterTechBlog/status/1481425041275617283).\n\nThis repo depends on...\n\n-   [lupyuen/bl602_adc](https://github.com/lupyuen/bl602_adc)\n\n# Install App\n\nTo add this app to your NuttX project...\n\n```bash\ncd nuttx/apps/examples\ngit submodule add https://github.com/lupyuen/bl602_adc_test\n```\n\nThen update the NuttX Build Config...\n\n```bash\n## TODO: Change this to the path of our \"incubator-nuttx\" folder\ncd nuttx/nuttx\n\n## Preserve the Build Config\ncp .config ../config\n\n## Erase the Build Config\nmake distclean\n\n## For BL602: Configure the build for BL602\n./tools/configure.sh bl602evb:nsh\n\n## For ESP32: Configure the build for ESP32.\n## TODO: Change \"esp32-devkitc\" to our ESP32 board.\n./tools/configure.sh esp32-devkitc:nsh\n\n## Restore the Build Config\ncp ../config .config\n\n## Edit the Build Config\nmake menuconfig \n```\n\nIn menuconfig, enable the BL602 ADC Test App under \"Application Configuration\" → \"Examples\".\n\nIn NuttX Shell, enter this to run the app...\n\n```bash\nbl602_adc_test\n```\n\n# Output Log\n\n```text\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 14.317039 Celsius\nInternal Temperature: 14.317039 deg C\noffset = 2209\ntemperature = 14.575004 Celsius\nInternal Temperature: 14.575004 deg C\noffset = 2209\ntemperature = 14.832968 Celsius\nInternal Temperature: 14.832968 deg C\noffset = 2209\ntemperature = 15.993809 Celsius\nInternal Temperature: 15.993809 deg C\noffset = 2209\ntemperature = 14.317039 Celsius\nInternal Temperature: 14.317039 deg C\noffset = 2209\ntemperature = 15.090933 Celsius\nInternal Temperature: 15.090933 deg C\noffset = 2209\ntemperature = 16.509739 Celsius\nInternal Temperature: 16.509739 deg C\noffset = 2209\ntemperature = 13.672127 Celsius\nInternal Temperature: 13.672127 deg C\noffset = 2209\ntemperature = 13.414163 Celsius\nInternal Temperature: 13.414163 deg C\noffset = 2209\ntemperature = 15.348897 Celsius\nInternal Temperature: 15.348897 deg C\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 15.606862 Celsius\nInternal Temperature: 15.606862 deg C\noffset = 2209\ntemperature = 15.477880 Celsius\nInternal Temperature: 15.477880 deg C\noffset = 2209\ntemperature = 15.606862 Celsius\nInternal Temperature: 15.606862 deg C\noffset = 2209\ntemperature = 13.672127 Celsius\nInternal Temperature: 13.672127 deg C\noffset = 2209\ntemperature = 13.930092 Celsius\nInternal Temperature: 13.930092 deg C\noffset = 2209\ntemperature = 14.317039 Celsius\nInternal Temperature: 14.317039 deg C\noffset = 2209\ntemperature = 15.219914 Celsius\nInternal Temperature: 15.219914 deg C\noffset = 2209\ntemperature = 15.477880 Celsius\nInternal Temperature: 15.477880 deg C\noffset = 2209\ntemperature = 14.961950 Celsius\nInternal Temperature: 14.961950 deg C\noffset = 2209\ntemperature = 15.477880 Celsius\nInternal Temperature: 15.477880 deg C\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 15.864826 Celsius\nInternal Temperature: 15.864826 deg C\noffset = 2209\ntemperature = 17.412615 Celsius\nInternal Temperature: 17.412615 deg C\noffset = 2209\ntemperature = 16.509739 Celsius\nInternal Temperature: 16.509739 deg C\noffset = 2209\ntemperature = 19.476332 Celsius\nInternal Temperature: 19.476332 deg C\noffset = 2209\ntemperature = 16.638720 Celsius\nInternal Temperature: 16.638720 deg C\noffset = 2209\ntemperature = 18.057526 Celsius\nInternal Temperature: 18.057526 deg C\noffset = 2209\ntemperature = 18.315491 Celsius\nInternal Temperature: 18.315491 deg C\noffset = 2209\ntemperature = 15.348897 Celsius\nInternal Temperature: 15.348897 deg C\noffset = 2209\ntemperature = 15.735845 Celsius\nInternal Temperature: 15.735845 deg C\noffset = 2209\ntemperature = 18.186508 Celsius\nInternal Temperature: 18.186508 deg C\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 17.025667 Celsius\nInternal Temperature: 17.025667 deg C\noffset = 2209\ntemperature = 20.379208 Celsius\nInternal Temperature: 20.379208 deg C\noffset = 2209\ntemperature = 15.735845 Celsius\nInternal Temperature: 15.735845 deg C\noffset = 2209\ntemperature = 15.735845 Celsius\nInternal Temperature: 15.735845 deg C\noffset = 2209\ntemperature = 17.928543 Celsius\nInternal Temperature: 17.928543 deg C\noffset = 2209\ntemperature = 17.799561 Celsius\nInternal Temperature: 17.799561 deg C\noffset = 2209\ntemperature = 16.896685 Celsius\nInternal Temperature: 16.896685 deg C\noffset = 2209\ntemperature = 16.380756 Celsius\nInternal Temperature: 16.380756 deg C\noffset = 2209\ntemperature = 15.606862 Celsius\nInternal Temperature: 15.606862 deg C\noffset = 2209\ntemperature = 16.380756 Celsius\nInternal Temperature: 16.380756 deg C\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 17.670580 Celsius\nInternal Temperature: 17.670580 deg C\noffset = 2209\ntemperature = 18.057526 Celsius\nInternal Temperature: 18.057526 deg C\noffset = 2209\ntemperature = 18.702438 Celsius\nInternal Temperature: 18.702438 deg C\noffset = 2209\ntemperature = 16.638720 Celsius\nInternal Temperature: 16.638720 deg C\noffset = 2209\ntemperature = 17.283632 Celsius\nInternal Temperature: 17.283632 deg C\noffset = 2209\ntemperature = 16.896685 Celsius\nInternal Temperature: 16.896685 deg C\noffset = 2209\ntemperature = 16.122791 Celsius\nInternal Temperature: 16.122791 deg C\noffset = 2209\ntemperature = 17.541597 Celsius\nInternal Temperature: 17.541597 deg C\noffset = 2209\ntemperature = 17.283632 Celsius\nInternal Temperature: 17.283632 deg C\noffset = 2209\ntemperature = 19.347349 Celsius\nInternal Temperature: 19.347349 deg C\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 16.896685 Celsius\nInternal Temperature: 16.896685 deg C\noffset = 2209\ntemperature = 17.025667 Celsius\nInternal Temperature: 17.025667 deg C\noffset = 2209\ntemperature = 15.735845 Celsius\nInternal Temperature: 15.735845 deg C\noffset = 2209\ntemperature = 16.122791 Celsius\nInternal Temperature: 16.122791 deg C\noffset = 2209\ntemperature = 18.831421 Celsius\nInternal Temperature: 18.831421 deg C\noffset = 2209\ntemperature = 17.412615 Celsius\nInternal Temperature: 17.412615 deg C\noffset = 2209\ntemperature = 19.476332 Celsius\nInternal Temperature: 19.476332 deg C\noffset = 2209\ntemperature = 20.121243 Celsius\nInternal Temperature: 20.121243 deg C\noffset = 2209\ntemperature = 17.541597 Celsius\nInternal Temperature: 17.541597 deg C\noffset = 2209\ntemperature = 17.283632 Celsius\nInternal Temperature: 17.283632 deg C\nnsh\u003e bl602_adc_test\noffset = 2209\ntemperature = 14.317039 Celsius\nInternal Temperature: 14.317039 deg C\noffset = 2209\ntemperature = 18.960402 Celsius\nInternal Temperature: 18.960402 deg C\noffset = 2209\ntemperature = 16.767702 Celsius\nInternal Temperature: 16.767702 deg C\noffset = 2209\ntemperature = 17.154650 Celsius\nInternal Temperature: 17.154650 deg C\noffset = 2209\ntemperature = 17.283632 Celsius\nInternal Temperature: 17.283632 deg C\noffset = 2209\ntemperature = 16.896685 Celsius\nInternal Temperature: 16.896685 deg C\noffset = 2209\ntemperature = 16.380756 Celsius\nInternal Temperature: 16.380756 deg C\noffset = 2209\ntemperature = 16.896685 Celsius\nInternal Temperature: 16.896685 deg C\noffset = 2209\ntemperature = 16.767702 Celsius\nInternal Temperature: 16.767702 deg C\noffset = 2209\ntemperature = 16.509739 Celsius\nInternal Temperature: 16.509739 deg C\nnsh\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Fbl602_adc_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupyuen%2Fbl602_adc_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Fbl602_adc_test/lists"}