Lightweight Engine Sound Generator

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
svenyonson
 
Posts: 11
Joined: Thu Sep 21, 2017 1:00 pm

Lightweight Engine Sound Generator

Post by svenyonson »

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?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Lightweight Engine Sound Generator

Post by mikeysklar »

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

User avatar
svenyonson
 
Posts: 11
Joined: Thu Sep 21, 2017 1:00 pm

Re: Lightweight Engine Sound Generator

Post by svenyonson »

Thanks! Both excellent suggestions. I am going to order the speaker and play around with it.

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”