{"id":21076832,"url":"https://github.com/ronibandini/photon2voicecommand","last_synced_at":"2025-06-13T09:04:43.558Z","repository":{"id":197775509,"uuid":"699313973","full_name":"ronibandini/Photon2VoiceCommand","owner":"ronibandini","description":"Particle Photon 2 Voice Command with Relay Control","archived":false,"fork":false,"pushed_at":"2023-10-10T16:16:16.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T23:13:05.688Z","etag":null,"topics":["machinelearning","particle","pdamic","photon2","relay","vscode"],"latest_commit_sha":null,"homepage":"https://docs.edgeimpulse.com/experts/audio-projects/voice-commands-particle-photon-2","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/ronibandini.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}},"created_at":"2023-10-02T11:44:56.000Z","updated_at":"2023-11-09T20:03:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1f27060-7601-43d6-a39d-29a3c17e50fa","html_url":"https://github.com/ronibandini/Photon2VoiceCommand","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"6dd5f4b03bdf007fcd196b91cc10d1a731e40b9c"},"previous_names":["ronibandini/photon2voicecommand"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronibandini%2FPhoton2VoiceCommand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronibandini%2FPhoton2VoiceCommand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronibandini%2FPhoton2VoiceCommand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronibandini%2FPhoton2VoiceCommand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronibandini","download_url":"https://codeload.github.com/ronibandini/Photon2VoiceCommand/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243521281,"owners_count":20304186,"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":["machinelearning","particle","pdamic","photon2","relay","vscode"],"created_at":"2024-11-19T19:33:33.598Z","updated_at":"2025-03-14T04:09:26.203Z","avatar_url":"https://github.com/ronibandini.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Info\n\nhttps://docs.edgeimpulse.com/experts/audio-projects/voice-commands-particle-photon-2\n\n# Circuit\n\nPDA mic connections:\nPDA GND to Photon 2 GND \nPDA 3v to Photon 2 3v3\nPDA CLK to Photon 2 A0\nPDA DAT to Photon 2 A1\n\nThe PDA Mic SEL pin is not used for this scenario.\n\nThe Relay module should be connected as follows:\nRelay GND to Photon 2 GND\nRelay VCC to Photon VCC\nRelay Signal to Photon D3\n\n# Model training\n\nCreate an account at https://edgeimpulse.com/, train your audio model and export as a Particle Library.\nYou can also clone this project https://studio.edgeimpulse.com/studio/288386\n\n# VsCode\n\nFor Windows, instructions are:\n\nInstall MS Visual Studio Code alone https://code.visualstudio.com, then add https://marketplace.visualstudio.com/items?itemName=particle.particle-vscode-pack \n\nUnzip the Particle library exported from Edge Impulse. \n\nAt VSCode press Ctrl+shift+p Particle: Import Project. The first time, VSCode will download dependencies.\n\nFrom Visual Studio button, at lower right there will be a button to open properties file. Navigate to unzipped folder, project.properties and give Yes, I trust confirmation.\n\nReplace zip/src/main.cpp with the file provided\n\nNow click Ctrl+shift+p Particle: Configure Project for Device, deviceOS@5.5.0, board P2, ESC for device name.\n\nNote: if you get a Microphone library not found, press Ctrl+shift+p, install library Microphone_PDM@0.0.2 library\n\nCtrl+shift+p Particle: flash application and device, local (For Windows, it will take around 5 minutes to flash)\n\nIf you get \"Argument list too long\" error, like I did for Windows and Linux, you can follow these instructions below.\n\n# How to avoid Argument list too long error for Windows\n\nDownload and install Docker Docker Desktop https://www.docker.com/products/docker-desktop/\n\nDownload and install CLI Command Line Interface [(CLI) | Reference | Particle](https://docs.particle.io/reference/developer-tools/cli/)\n\nExtract Edge Impulse library into a folder (For this example Photon2)\n\nRun docker pull particle/buildpack-particle-firmware:5.5.0-p2\n\nRun docker run --name=AnyName -v C:\\Users\\R\\Desktop\\Photon2:/input -v C:\\Users\\R\\Desktop\\Photon2:/output -e PLATFORM_ID=32 particle/buildpack-particle-firmware:5.5.0-p2\n\nA firmware.bin file will be generated into the same folder\n\nRun particle usb list (get device ID for the next step)\n\nRun particle flash --local placeTheIdHere firmware.bin\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronibandini%2Fphoton2voicecommand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronibandini%2Fphoton2voicecommand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronibandini%2Fphoton2voicecommand/lists"}