YOU’LL NEED
• Pi Pico or Pico W
• OEP3W amplifier
• Speaker
• Half breadboard
• PIR sensor
• 10K pot
• 9x M2M jumper wires
• Code: https://bit.ly/lxf313pitut1
The Raspberry Pi Pico is an exceptionally cheap and resourceful little board. For $8, we get a powerful microcontroller and plenty of GPIO pins. With a few extra components, we can build all manner of fun projects. In this tutorial, we’re using CircuitPython, a version of Python for microcontrollers, to play MP3 files. We need an amplifier, and the OEP3W at US$1 from AliExpress, will do the job. But we’re not making a music player. Instead, we are using a sensor to detect movement and trigger an alert sound to play. Scaring away friends, family or next door’s cat.
We’ll go