Lightweight Engine Sound Generator
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- svenyonson
- Posts: 11
- Joined: Thu Sep 21, 2017 1:00 pm
Lightweight Engine Sound Generator
I'm looking for a minimalist solution for a Trinket M0 to loop a small wave file, and be able to adjust the output sample rate to simulate throttle. I need to drive a small speaker (26.5mm). Do I need a separate amplifier chip or will the M0 be able to drive the speaker directly? This is going into a small r/c plane, every gram saved is a good thing. I only need one engine sample, wondering if I can use the onboard 256KB flash for this? Anyone done something similar that can share project details?
- mikeysklar
- Posts: 13946
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Lightweight Engine Sound Generator
With CircuitPython you can play WAV files right off the SAMD21 Trinket M0 hardware.
https://learn.adafruit.com/make-it-talk/circuitpython
Would the STEMMA speaker meet your needs?
https://www.adafruit.com/product/3885
https://learn.adafruit.com/make-it-talk/circuitpython
Would the STEMMA speaker meet your needs?
https://www.adafruit.com/product/3885
- svenyonson
- Posts: 11
- Joined: Thu Sep 21, 2017 1:00 pm
Re: Lightweight Engine Sound Generator
Thanks! Both excellent suggestions. I am going to order the speaker and play around with it.
Please be positive and constructive with your questions and comments.