https://github.com/eat-sleep-code/circuitpython-multi-trigger
Use a single Trinket M0 to handle the inputs from 4 Sharp Proximity sensors and trigger a sound effect on an AudioFX board.
https://github.com/eat-sleep-code/circuitpython-multi-trigger
circuitpython
Last synced: 25 days ago
JSON representation
Use a single Trinket M0 to handle the inputs from 4 Sharp Proximity sensors and trigger a sound effect on an AudioFX board.
- Host: GitHub
- URL: https://github.com/eat-sleep-code/circuitpython-multi-trigger
- Owner: eat-sleep-code
- License: mit
- Created: 2020-10-05T22:20:38.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-15T14:53:01.000Z (over 5 years ago)
- Last Synced: 2025-03-12T19:46:40.789Z (10 months ago)
- Topics: circuitpython
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CircuitPython Multi-Trigger
This is a revision of the code used for [Screaming Halloween Cauldrons](https://github.com/eat-sleep-code/circuitpython-halloween-cauldrons) and [A Very Merry CircuitPython Christmas](https://github.com/eat-sleep-code/circuitpython-christmas) projects.
This version will allow you to use a single Trinket M0 to handle the inputs from 4 Sharp Proximity sensors.
The limitation is that you will now only be able to trigger a single pin on the Audio FX board.
This is purely because there are only 5 available pins on the Trinket M0. Other CircuitPython boards may offer more pins but have not been tested with this script.
This version also adds a discrete speaker Class D amplifier. Adafruit also sells an Audio FX board with integrated amplifier, but that amplifier has about 30% less power. Using the Audio FX board with the integrated amplifer will allow you to eliminate one power, one ground, and the four audio signal interconnect wires. You will need to decide which is more important to you -- more amplification power, or less wires.

In our build, we mounted the three PCBs and two Dayton Audio speakers inside a 4" x 4" junction box.