Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronibandini/photon2voicecommand
Particle Photon 2 Voice Command with Relay Control
https://github.com/ronibandini/photon2voicecommand
machinelearning particle pdamic photon2 relay vscode
Last synced: about 21 hours ago
JSON representation
Particle Photon 2 Voice Command with Relay Control
- Host: GitHub
- URL: https://github.com/ronibandini/photon2voicecommand
- Owner: ronibandini
- Created: 2023-10-02T11:44:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-10T16:16:16.000Z (about 1 year ago)
- Last Synced: 2024-01-28T20:37:31.566Z (10 months ago)
- Topics: machinelearning, particle, pdamic, photon2, relay, vscode
- Language: C++
- Homepage: https://docs.edgeimpulse.com/experts/audio-projects/voice-commands-particle-photon-2
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Info
https://docs.edgeimpulse.com/experts/audio-projects/voice-commands-particle-photon-2
# Circuit
PDA mic connections:
PDA GND to Photon 2 GND
PDA 3v to Photon 2 3v3
PDA CLK to Photon 2 A0
PDA DAT to Photon 2 A1The PDA Mic SEL pin is not used for this scenario.
The Relay module should be connected as follows:
Relay GND to Photon 2 GND
Relay VCC to Photon VCC
Relay Signal to Photon D3# Model training
Create an account at https://edgeimpulse.com/, train your audio model and export as a Particle Library.
You can also clone this project https://studio.edgeimpulse.com/studio/288386# VsCode
For Windows, instructions are:
Install MS Visual Studio Code alone https://code.visualstudio.com, then add https://marketplace.visualstudio.com/items?itemName=particle.particle-vscode-pack
Unzip the Particle library exported from Edge Impulse.
At VSCode press Ctrl+shift+p Particle: Import Project. The first time, VSCode will download dependencies.
From 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.
Replace zip/src/main.cpp with the file provided
Now click Ctrl+shift+p Particle: Configure Project for Device, [email protected], board P2, ESC for device name.
Note: if you get a Microphone library not found, press Ctrl+shift+p, install library [email protected] library
Ctrl+shift+p Particle: flash application and device, local (For Windows, it will take around 5 minutes to flash)
If you get "Argument list too long" error, like I did for Windows and Linux, you can follow these instructions below.
# How to avoid Argument list too long error for Windows
Download and install Docker Docker Desktop https://www.docker.com/products/docker-desktop/
Download and install CLI Command Line Interface [(CLI) | Reference | Particle](https://docs.particle.io/reference/developer-tools/cli/)
Extract Edge Impulse library into a folder (For this example Photon2)
Run docker pull particle/buildpack-particle-firmware:5.5.0-p2
Run 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
A firmware.bin file will be generated into the same folder
Run particle usb list (get device ID for the next step)
Run particle flash --local placeTheIdHere firmware.bin