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
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 »

Rob, what build has the sounds in your utube post?
SM

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 »

All current builds.

You just have to make sure you

speaker mode is set too PiSpkr, and the

frsky alerts too:

Int. FRSky Alarms : on

Then you can select the red/orange/yellow alert tones.

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
man-bis
Posts: 27
Joined: Tue Dec 27, 2011 9:10 pm
Country: -
Location: Russia

Re: Audio Work - Piezo Driver Updates

Post by man-bis »

Hi, all!
I believe that there is more than information on yellow, orange or red level of alarm (and besides about many other things) it is possible to receive from the speech speaker. Speech, instead of sound, though and with different tone. On a sound even different tone it can be not clear about what warns a buzzer. And if the transmitter a pleasant female voice informs us that for example: "you come nearer to a zone of uncertain reception of a radio signal!" That it will be fantastic. And it is very convenient.
I have no experience of working out of such equipment and mod and very much I hope that colleagues at this forum can offer similar mod.
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 »

This sort of feature is planned for the new main board. (ersky9x)

The current hardware / firmware space is too limited to do fancy audio.

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!
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 »

Please delete. Hit wrong button
Last edited by ShowMaster on Mon Jan 16, 2012 11:08 pm, edited 1 time in total.

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 »

rob.thomson wrote:All current builds.

You just have to make sure you

speaker mode is set too PiSpkr, and the

frsky alerts too:

Int. FRSky Alarms : on

Then you can select the red/orange/yellow alert tones.

Rob
Found it, used it, like it!
Thanks
SM
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

rob.thomson wrote:This sort of feature is planned for the new main board. (ersky9x)

The current hardware / firmware space is too limited to do fancy audio.

Rob

That's it, you just broke my heart.. before (still at RCGroups) it was said that there was enough space for that, and now suddenly there isn't?? Mike was even thinking about releasing some pins for that and The PXX, and also we would have some extra pins for other stuff..

Huummmmm...
I hope that some thoughts that just came to my mind are not true, because it wouldn't be fair on people that can't afford the new board. I'm one of them..
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
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 »

Depends on what specific feature you want.

Problem is there is not really any room for adding much in the way of menus to configure any of these alerts.

So at best we could trigger an MP3 to play for an event. But dont expect anything fancy.

You would not for example be able to select an mp3 to play for a specific event.

Just trying to keep expectations realistic :). There is only about 4% of space left on the firmware.
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
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio Work - Piezo Driver Updates

Post by MikeB »

That's it, you just broke my heart.. before (still at RCGroups) it was said that there was enough space for that, and now suddenly there isn't?? Mike was even thinking about releasing some pins for that and The PXX, and also we would have some extra pins for other stuff..
[/quote]

I haven't given up on the audio. The mod I have in mind is quite messy, a lot of modifications need to be done, not everybody will want to do them. We can get some space back if we don't have the templates, it is a compile option to leave them out, but keep the heli. We may get to a point where if you want special audio and FrSky, then you can't have templates. I've been working on slimming the code again, gained a bit back.

I have an idea for adding audio on, need to get it more solid before I suggest it.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

Hi Mike, thanks for giving us some hope..I personally don't think that the templates are needed in the tx because we have eepe. Another idea ( i don't understand anything about coding) would be maybe to leave the speaker and ?vibrator? part of the code out as well? or at least part of it? to save some space? the reason I say this is that if you have the audio you won't need any piezo I guess.. Not sure about the vib, that's why I wrote it in between question marks..
Thanks again..

João
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
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 suspect this will need to be left in. (or the bulk of it)

The actual code that drives the speaker or buzzer could be excluded - but will only remove 20 or so lines of 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
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio Work - Piezo Driver Updates

Post by MikeB »

I'm going to try to summarise regarding an addon to give speech output, and then we can work on from there.
1) We need something to play the speech (what quaility?, we don't need hifi, what format of audio file?, how much?)
2) We need somewhere to store the audio files.
3) We need a method for the ATMEGA64 to request an audio file to be played.
4) We need a way of getting the audio files onto the storage.
5) The addon hardware should be easy to obtain/make, and be readily available to all.
6) If any addon needs to be programmed, how is this to be done?
Remember different people have different hardware mods already done to their TX.

I think we should try to keep this simple, don't complicate it with trying to get any addon to provide anything except the audio function. There is enough to do with that.

I have some ideas, for some of this, but whether they are appropriate depends on choices made to the questions.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
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 »

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

someone posted (on RCG) already some modules that use sd card. we could then play our own files, in any language..
I think this is the way to go.. As far as I remember they weren't that expensive..
João
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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

And this one posted by ReSt if I'm not mistaken.. He did some experiments with it..

http://www.emartee.com/product/41928/MP ... d%20Module

It's from the same shop that sells the one above. but is nearly half of the price..
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:

Audio Work - Piezo Driver Updates

Post by cre8tiveleo »

I like this one... Smaller, half the price..
http://www.emartee.com/product/41540/MP ... 0SD%20Card

That would be cool.


---
I am here: http://maps.google.com/maps?ll=44.003000,-79.457341
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Audio Work - Piezo Driver Updates

Post by ReSt »

I'm going to try to summarise regarding an addon to give speech output, and then we can work on from there.
1) We need something to play the speech (what quaility?, we don't need hifi, what format of audio file?, how much?)
This is the card that I experimented with
You have to order the module for two wire serial protocol.
http://www.emartee.com/product/41928/MP ... d%20Module

Sample file of output quality is attached here
http://www.rcgroups.com/forums/showpost ... ount=14442

2) We need somewhere to store the audio files.
It has an SD Card for the audio files

3) We need a method for the ATMEGA64 to request an audio file to be played.
Audiofiles are named with numbers 001.ad4 to 510.ad4
you play them by just sending their number to the module
4) We need a way of getting the audio files onto the storage.
Put the card into an SD card reader attached to your computer and copy them (card is FAT formatted)

5) The addon hardware should be easy to obtain/make, and be readily available to all.
is available at emartee.com and maybe others (I bought it on ebay .. (from emartee))

6) If any addon needs to be programmed, how is this to be done?
Remember different people have different hardware mods already done to their TX.
No programming required on the card side.

Programming for the TX should be done, so a compile switch adds the required code if wanted.

That worked for me (from my PC):
http://www.rcgroups.com/forums/showpost ... ount=13643

You will need two output lines (clock and data) to communicate with the module. There should be a third line (input) to monitor the busy signal to know, when playing a soundfile has finished (required if we want to add several partial sound to one complex message),
It could be possible to switch direction of one output line to input to monitor the busy signal, after data has been sent completely.
I think we should try to keep this simple, don't complicate it with trying to get any addon to provide anything except the audio function. There is enough to do with that.
This solution is simple and allows nothing else but to play sounds.
(You can put in a card with your favourite songs, add three little pushbuttons and you will have an MP3 player).
Power can be supplied from 5 volt by reducing it via a red LED.
Clock and data line should run over a little voltage divider (I used 1.2k : 3.3k )


Reinhard
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio Work - Piezo Driver Updates

Post by jhsa »

You will need two output lines (clock and data) to communicate with the module. There should be a third line (input) to monitor the busy signal to know, when playing a soundfile has finished (required if we want to add several partial sound to one compex message)
This could be used to say numbers.. it would reduce the number of files needed.. also for saying the type of info the numbers are associated to like altitude, voltage etc..
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
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 »

Mike,

Believe you already have one of those from emartee. Gave it to you when we saw each other last :)

I meant to look into it more over Christmas - but had no time :(


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!
C.João
Posts: 147
Joined: Thu Jan 12, 2012 7:49 pm
Country: -

Re: Audio Work - Piezo Driver Updates

Post by C.João »

simple hardware: http://www.adafruit.com/products/94

available to anyone? yes

program needed to be made (probably from scratch)

no specific IC's or re-branded controllers. just an atmega328 and a DAC (ignoring the audio amp cos' its just and double amp-op)

price: forget it. its nos cheap, but you can buy the parts yourself and make it cheaper to you. if you don't know how? simple. save some money, then buy the shield.

bulky? yes. its huge. but its done and it works right?

low sound output? no problem.

add this: http://www.ebay.co.uk/itm/Mini-Capsule- ... 3f11997018

of this: http://www.ebay.co.uk/itm/3-5mm-Mini-Po ... 218wt_1272

btw. this would be interesting to do over I2c cos' the arduino supports it.

later on you could even plug a wii motion plus on your 9X to use as head tracker or other functions. (probably not but I wanted to say it! )
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio Work - Piezo Driver Updates

Post by MikeB »

rob.thomson wrote:Mike,
Believe you already have one of those from emartee. Gave it to you when we saw each other last :)
Yes thanks. I notice it says supports a max of 1Gb SD card. Now I don't have a standard SD card, only a 2Gb micro SD without adapter.
So I have a question, will this device work with an SD card larger than 1Gb, even if it only uses 1Gb of it? 1Gb cards look to be less easy to obtain these days.
If we use this, others need to be able to get an SD card, to make it work, easily.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
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 »

It probably works with 2gb cards, and select 4gb cards, not sdhc. Just standard sd cards. 4gb cards are usually sdhc even if not marked. Fat 32 cannot handle a file larger than 4gb... (fat32 can handle a 2tb drive though)
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 »

Dealextreme has 1gb sd, tigerdirect.ca too
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Audio Work - Piezo Driver Updates

Post by ReSt »

Just verified that 2GB SD card works.

But my 2GB micro SD card with adapter does not work.

Reinhard
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio Work - Piezo Driver Updates

Post by MikeB »

That's a pity (2Gb micro card in adapter). I was going to try to sort an adapter for my micro card for this. I wanted the micro card for ersky9x, I'll probably need an adapter anyway, but if it won't work in the sound module, the sound module may be a bit restrictive.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
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 »

Then why not the snd crd with micro adaptor then? It's there too


---
I am here: http://maps.google.com/maps?ll=44.003000,-79.457341
User avatar
agusta600gt
Posts: 106
Joined: Mon Jan 09, 2012 5:45 pm
Country: -
Location: Hebertville,Quebec,Canada

Re: Audio Work - Piezo Driver Updates

Post by agusta600gt »

hi there...

is there a way to have the same alarms as frsky in stock er9x?

like choice of bootsound,
counter alarm choice,
alarm choice ect.

cheers
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: Audio Work - Piezo Driver Updates

Post by Hasse.69 »

sdcard sound module.jpg
sdcard sound module.jpg (12.96 KiB) Viewed 13997 times
This is what it looks like.
Here is link to the sdcard sound module.
Same as cre8tive leo showed , but even cheaper. :)
http://www.ebay.com/itm/Mini-SD-Card-MP ... _970wt_698

Cheaper still.

http://www.ebay.com/itm/MP3-Voice-modul ... 2852wt_932

Best regards , Hasse.
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Camboui
Posts: 79
Joined: Wed Feb 15, 2012 3:01 pm
Country: -

Re: Audio Work - Piezo Driver Updates

Post by Camboui »

Just discovered this interesting thread !
agusta600gt wrote:hi there...

is there a way to have the same alarms as frsky in stock er9x?

like choice of bootsound,
counter alarm choice,
alarm choice ect.

cheers
+1

Otherwise, any progress on the mp3 stuff ?

Post Reply

Return to “er9x”