{"id":23744898,"url":"https://github.com/stm32duino/x-nucleo-iks02a1-audio","last_synced_at":"2025-09-04T19:32:06.867Z","repository":{"id":43695624,"uuid":"321965488","full_name":"stm32duino/X-NUCLEO-IKS02A1-Audio","owner":"stm32duino","description":"X-NUCLEO-IKS02A1 audio library to support IMP34DT05 MEMS digital omnidirectional microphone ","archived":false,"fork":false,"pushed_at":"2022-02-23T10:14:54.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-02-26T16:01:27.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stm32duino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-16T11:46:21.000Z","updated_at":"2021-11-24T14:16:15.000Z","dependencies_parsed_at":"2022-08-22T04:20:34.621Z","dependency_job_id":null,"html_url":"https://github.com/stm32duino/X-NUCLEO-IKS02A1-Audio","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FX-NUCLEO-IKS02A1-Audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FX-NUCLEO-IKS02A1-Audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FX-NUCLEO-IKS02A1-Audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FX-NUCLEO-IKS02A1-Audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/X-NUCLEO-IKS02A1-Audio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231987772,"owners_count":18456475,"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":[],"created_at":"2024-12-31T12:50:53.282Z","updated_at":"2024-12-31T12:50:53.904Z","avatar_url":"https://github.com/stm32duino.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# X-NUCLEO-IKS02A1 Audio\nArduino library to support the [IMP34DT05](https://www.st.com/en/mems-and-sensors/imp34dt05.html) digital microphone.\nCurrently, this library works only with the X-NUCLEO-IKS02A1 and a NUCLEO-F401RE or a NUCLEO-L476RG.\nIt requires a [STM32 Core](https://github.com/stm32duino/Arduino_Core_STM32) equal to or greater than version 2.0.0.\n\n## API\nThis library acquires PDM, converts PDM to PCM.\n\n### PDM\nBefore acquire PDM it is required to initialize it:\n\n`   PDM.begin();`\n\nThanks  to `PDM` instance, it is possible to start to acquire the data, stop, pause the acquisition and resume.\n- Start to acquire the PDM data:\n    \n`   PDM.Record(buffer);`\n- Stop to acquire the PDM data:\n    \n`   PDM.Stop();`\n- Pause the acquisition:\n    \n`   PDM.Pause();`\n- Resume the acquisition.\n    \n`       PDM.Resume();`\n- To perform a function to process the data (foo in the example), it can call the function below:\n    \n`       PDM.onReceive(foo);`\n\n### PDM2PCM\n\nBefore encoding the data from PDM to PCM, it must be initialized following the procedure below:\n\n`   pdm2pcm_init();`\n  \n  Set the volume of the microphone.\n\n```C++\n    pdm2pcm_volume(volume);\n    \n    pdm2pcm(BufIn, BufOut, BLOCK_SIZE);\n```\n\n\n# Documentation\n\nYou can find the source files at\nhttps://github.com/stm32duino/X-NUCLEO-IKS02A1-Audio\n\nThe X-NUCLEO-IKS02A1 datasheet is available at\nhttps://www.st.com/content/st_com/en/products/mems-and-sensors/mems-microphones/imp34dt05.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Fx-nucleo-iks02a1-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Fx-nucleo-iks02a1-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Fx-nucleo-iks02a1-audio/lists"}