Skip to content

andruhon/pico-dog

Repository files navigation

Pico Dog

Detects motion and plays the dog bark sound when it's dark.

See materials.md for used materials.
See circuit.md for circuit details.

Photo Circuit

Audio sources

Dog bark https://freesound.org/people/abhisheky948/sounds/625498/

Installation

Venv

Created python venv with python -m venv venv

Activate environment with source venv/bin/activate

python -m pip install -r requirements.txt

Dependencies

This package uses following packages as dependencies:

Deploying to Pico

Assuming that micropython is already installed to raspberry. Micropython installation instructions for Raspberry Pi Pico can be found at https://micropython.org/download/RPI_PICO/

Connecting to raspberry on Linux may sometimes be challenging. Check linux.md

See mpremote docs https://docs.micropython.org/en/latest/reference/mpremote.html

Install dependencies to pico:

mpremote mip install github:joeky888/awesome-micropython-lib/Audio/chunk.py
mpremote mip install github:joeky888/awesome-micropython-lib/Audio/wave.py
mpremote mip install github:danjperron/PicoAudioPWM/myDMA.py
mpremote mip install github:danjperron/PicoAudioPWM/myPWM.py
mpremote mip install github:danjperron/PicoAudioPWM/wavePlayer.py
mpremote mip install github:CoreElectronics/CE-PiicoDev-Unified/PiicoDev_Unified.py
mpremote mip install github:CoreElectronics/CE-PiicoDev-VEML6030-MicroPython-Module/PiicoDev_VEML6030.py

Copy sources to pico:

mpremote fs cp -r src/* :

mpremote ls to make sure that everything is copied over (may need to actually restart the Pico, to pick up changes)

mpremote df to make sure some space left on pico.

Circuit

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published