Audio Work - Piezo Driver Updates

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Audio Work - Piezo Driver Updates

Post by Rob Thomson »

Hi all,

I am looking into some updates to the Piezo sound system I built.

The current system has a few minor niggles - that are easy to resolve.

---
1. Dual Queues
The queue system really needs to run two queues. One for background sound. One for play now sounds!
At the moment you can get odd pops and interrupts to the sound when the calls collide.

2. Min & Max frequency ranges
I have found the the Piezo speakers have very distinct frequency ranges at which they operate. You may already have 'heard' the funnies that can occur when you drive them out of range. A typical symptom of this is that the pitch gradually increases.. then suddly goes low again - even though you are telling it to go higher!

I am thinking that the solution will be to replace the 'speaker pitch' option with a minimum and maximum pitch option. Then I drive the sound only in the range between those values.
---


Does anyone have any insight or thoughts on this before I get started?

I actually think I will be able to reduce the whole audio system size during this rework. The system grew organically - and a rework will clean it up. (same interface to class so no real change to core code)

Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!

User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Audio Work - Piezo Driver Updates

Post by Flaps 30 »

Piezo sounders are fussy as to how you feed them. We are feeding them with square waves that is rich in odd harmonics. All sounders have a relatively narrow band of frequencies, where they work efficiently. The particular sounder that I have, has a resonant spot at 5Khz where it works very well. Moving 1Khz either side is fine, anymore and it starts to get messy with low output. This is what I have ----> http://cpc.farnell.com/_/41-pt51l120hlf ... tt=ls00642

The earphone doesn't suffer from any of this ----> http://cpc.farnell.com/_/hk-1s/single-s ... dp/AV12698
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Audio Work - Piezo Driver Updates

Post by Rob Thomson »

I guess the 'best' solution will be a proper speaker driver - rather than a piezo!
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

should I say it??? :mrgreen: :mrgreen:

only joking
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

A nice melodic sound from our radios? Seriously! :D

So we could use...

Image

Image

And benefit.. from.. maybe.. voice... musical alerts... coooool...

User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Audio Work - Piezo Driver Updates

Post by Rob Thomson »

What speaker is that in the picture?
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

A small one?

:roll:

Very low voltage one, I'll have to get the numbers off the speaker and let you know. I had two from an Win Ce PMP / gps unit that i use for Fpv screen, didn't need the speakers , so they got installed into the radio, and they sound loud.

I'll get you the info after work.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Audio Work - Piezo Driver Updates

Post by Rob Thomson »

Thank you! Been looking for a suitable mini speaker
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Audio Work - Piezo Driver Updates

Post by Flaps 30 »

CPC Farnell have a few small eight Ohm speakers Rob. Reasonable prices and it easy to deal with them, as they are the public arm of Farnell.

-----> http://cpc.farnell.com/jsp/search/brows ... 12699+2005

One that really took my fancy was this one ----> http://cpc.farnell.com/visaton/k-16-50- ... is%20Range It has a fairly high impedance (easy to drive in our case) and it is small. The height is (as stated in the data file) 3.5 mm and the diameter is 16 mm
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

Ls0312 and 13 are what i have, i just have to check the size, but those would be them from the link.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Audio Work - Piezo Driver Updates

Post by Rob Thomson »

Are you using these direct? No extra drive circuit in play?


Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

Mine are 8ohm 1w... :shock: (just zoomed into the picture on the one)

Just the piezo circut thingy that was posted.(just the cap inline) They work fine, no issues... no bad current draw , batteries haven't been charged in over a month too. (using lipo)

The ones on the link are only 200mW.
Clivew
Posts: 338
Joined: Tue Dec 27, 2011 8:08 pm
Country: -
Location: Stroud, Glos, England

Re: Audio Work - Piezo Driver Updates

Post by Clivew »

These sound good with a fet to drive them http://cgi.ebay.co.uk/ws/eBayISAPI.dll? ... OC:GB:1123
User avatar
wheelspinner20
Posts: 175
Joined: Tue Dec 27, 2011 6:22 pm
Country: -
Location: Michigan, U.S.

Re: Audio Work - Piezo Driver Updates

Post by wheelspinner20 »

Just the piezo circut thingy that was posted.(just the cap inline
Can you drag the instructions for that over here please?

Thanks

Pat
no more quippy little latin phrases.! Its old
User avatar
wheelspinner20
Posts: 175
Joined: Tue Dec 27, 2011 6:22 pm
Country: -
Location: Michigan, U.S.

Re: Audio Work - Piezo Driver Updates

Post by wheelspinner20 »

Also, would it be possible to post a video or maybe a mp3 of what it sounds like???
no more quippy little latin phrases.! Its old
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

Sounds just like the stock piezo, since that's the wave form that's being pumped out, just louder and richer.

Hardware guides, drag your mouse over and click, all will be revealed.

I had one of these too, sounded great as well...

Image
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Audio Work - Piezo Driver Updates

Post by Rob Thomson »

Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
wheelspinner20
Posts: 175
Joined: Tue Dec 27, 2011 6:22 pm
Country: -
Location: Michigan, U.S.

Re: Audio Work - Piezo Driver Updates

Post by wheelspinner20 »

blank


Was there supposed to be something there rob??
no more quippy little latin phrases.! Its old
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Audio Work - Piezo Driver Updates

Post by Rob Thomson »

wheelspinner20 wrote:blank


Was there supposed to be something there rob??
See this thread: viewtopic.php?f=3&t=193
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
SamoaFlyer
Posts: 23
Joined: Wed Dec 28, 2011 12:01 am
Country: -
Location: American Samoa, South Pacific

Re: Audio Work - Piezo Driver Updates

Post by SamoaFlyer »

Rob,

What is the purpose of the 4.7uF cap in series with your piezo speaker mod? According to the schematic of the main board there is already a 10uF series cap from the MPU pin to the "buzzer" line.

Regarding speaker size, I suggest using the largest size that will fit in the interest of best audio quality, particularly if voice audio is in the eventual plan.

The one I've ordered is : http://www.ebay.com/itm/350520826887?ss ... 1423.l2648
My Speaker Choice
My Speaker Choice
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

I'd watch out for that magnet though... 32ohm? :o

The speakers i use came out of a pmp gps system, running windows ce. Played video, music, and tts gps perfectly.

The ones from the link provided above will be more than capable.

;)
JayPi01
Posts: 14
Joined: Mon Jan 02, 2012 8:52 am
Country: -

Re: Audio Work - Piezo Driver Updates

Post by JayPi01 »

IMG_20120114_095753.jpg
Found this two speakers in childrens toys. The green one is from a McDonalds toy, the other one from a plush toy. Just seek in your childrens toys for some annoying loud toys that you always wanted to destroy :twisted:
JayPi01
Posts: 14
Joined: Mon Jan 02, 2012 8:52 am
Country: -

Re: Audio Work - Piezo Driver Updates

Post by JayPi01 »

Found this two speakers in childrens toys. The green one is from a McDonalds toy, the other one from a plush toy. So just seek your childrens toy for annoying loud toys that you always wanted to destroy :twisted:
IMG_20120114_095753.jpg
SamoaFlyer
Posts: 23
Joined: Wed Dec 28, 2011 12:01 am
Country: -
Location: American Samoa, South Pacific

Re: Audio Work - Piezo Driver Updates

Post by SamoaFlyer »

What is your concern about the magnet? All dynamic speakers have them.

The higher impedance will reduce current requirements and drive easier from low power sources.

Generally, the larger the diameter the better the low frequency response with more natural voice rendition.

Bill
User avatar
HC1969
Posts: 421
Joined: Wed Dec 28, 2011 8:47 am
Country: Hungary
Location: Istvan Magi
Contact:

Re: Audio Work - Piezo Driver Updates

Post by HC1969 »

MCU load 32 Ohm???
I=5/32=0.156A (156mA)!!! :?
http://rc.emiter.hu/ (MegaSound 9X, GCL-2, FrSky-RSSI-DAC, etc.) Keress fel!
SamoaFlyer
Posts: 23
Joined: Wed Dec 28, 2011 12:01 am
Country: -
Location: American Samoa, South Pacific

Re: Audio Work - Piezo Driver Updates

Post by SamoaFlyer »

With square wave drive average current would be half but compare to an 8 Ohm load. It still needs a buffer/amp but the point is battery current will be a lot less than an 8 Ohm unit.

Bill
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Audio Work - Piezo Driver Updates

Post by Rob Thomson »

Remember too.. Power wise. It only uses power when we have sound events.

Thos are not all time :)

Rob




Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
SamoaFlyer
Posts: 23
Joined: Wed Dec 28, 2011 12:01 am
Country: -
Location: American Samoa, South Pacific

Re: Audio Work - Piezo Driver Updates

Post by SamoaFlyer »

While awaiting the arrival of the above mentioned speakers, I noticed that the sound exit grill on the front of the 9x actually had quite small holes instead of the slots that first appeared to be open. This would cause an undesired amount of acoustic loading on the speaker cone thereby reducing its frequency response and volume.

A little careful work with a dremel and knife, working on the inside, gave open slots with about five times the area of the original holes. The ouside appearance is unchanged. This gave the immediate benefit of significantly increasing the sound output of the stock buzzer/beeper, which I felt was sorely needed. My old ears don't hear those high frequencies well any more.

I would expect similar results no matter what transducer is used.
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

I guess it's a Q/C issue again, on all the 4 radios I have, the grills are all the way through, fully, no blockage. (they all came from one sours, HK) I have mine mounted there, nicely hot glued and sounding magnificant, or as good as a square wave can.

8-)
User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Audio Work - Piezo Driver Updates

Post by ShowMaster »

I have a BDay card that plays a loud terrible song, but it is loud. I'm thinking of finding the cheapest card that plays music and using the speaker from it. Driver issues? I think I'm going to put my scope on it before tearing it out just to get a level being used to drive it. Then when I install it my 9X and drive it I'll have a reference level to work with if it's too soft or loud. If I need more level is there a fet or transistor driver circuit prefered I should use?
Thanks
SM

Post Reply

Return to “er9x”