https://github.com/dr-mod/guardian-duck
https://github.com/dr-mod/guardian-duck
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dr-mod/guardian-duck
- Owner: dr-mod
- License: gpl-3.0
- Created: 2022-07-27T06:17:43.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-27T15:35:38.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T16:41:58.908Z (about 1 year ago)
- Language: Python
- Size: 399 KB
- Stars: 28
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Guardian Duck
An inconspicuous device which quacks when motion is detected. The duck is powered by a battery and supports the Qi wireless charging.

[Demo video](https://twitter.com/dr2mod/status/1552293647583952902)
## Hardware
### Bill of materials
* Raspberry Pi Pico
* PIR Motion Sensor (HC-SR505)
* Audio Amplifier (PAM8302)
* Mini-Speaker
* LiPo SHIM for Pico
* Battery LiPo 600mAh
* Qi receiver module - Micro USB
### Print
The 3d model can be downloaded from my Printables [here](https://www.printables.com/model/249213-the-guardian-duck).
## Software
The software is written in CircuitPython and tested with the version 7.3.1
### Installing CircuitPython
1. Download the CircuitPython UF2 from the official website [here](https://circuitpython.org/board/raspberry_pi_pico/).
2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your computer. Release the BOOTSEL button
after your microcontroller is connected.
3. It will mount as a Mass Storage Device called RPI-RP2.
4. Drag and drop the CircuitPython UF2 file onto the RPI-RP2 volume.
### Software installation
Download and copy the software
```shell
cd ~
git clone https://github.com/dr-mod/roman-duck.git
cp roman-duck/src/*
```
### Assembly
1. Solder the LiPo SHIM to Pico
2. Connect the peripherals as per the schematics 
3. Connect the battery to LiPo SHIM
4. Attach the Qi pad to the inner side of the duck's bottom part with double-sided adhesive tape
5. Insert the rest of the components to the duck's upper side
6. Connect the Qi pad to Pico and the duck's parts together
### Support the project
If you would like to support what I do and keep me caffeinated, you can do it here:
[](https://www.buymeacoffee.com/drmod)