Let there be sound

From Electriki
Revision as of 18:04, 16 June 2013 by Pit (talk | contribs)
Jump to navigationJump to search

"DING DONG, the failure you have ordered has just arrived." /#ele

The concept

The idea

I want an AVR to talk to me. No need for it to speak words... i just want a DING DONG sound, or two. Or three. I want it to alert me in case one of few events occurs, and I want to be able to determine which event occured by just hearing it. A lot? Let's see...

The base

Searching for tone generation app notes leads to some decent solutions, yes. A 8MHz crystal, varying PWM fill ratio, a lot of math, etc. Gimme a break, it's sunday damnit. I just want to hear it working.

The problem

Why can't one make it simpler?

Let there be sound!

The base setup

I'll be using tiny2313 by atmel for this one. And a vera-board which is SOOOOOO nice (not). Some pics follow:

Concept #1: PWM + speaker

Concept #2: PWM + piezo w/ builtin generator

Yours truly,

pit, 2013-06-16