Audio (voice) - Stock 9X PCB

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
hageha
Posts: 213
Joined: Tue Dec 27, 2011 9:25 pm
Country: -
Location: Hildesheim

Re: Audio (voice) - Stock 9X PCB

Post by hageha » Wed Nov 07, 2012 10:24 pm

Joao,
Beeper's Pin!


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

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Wed Nov 07, 2012 10:49 pm

I have an odd setup for testing, just a main board with power. I may have signals of the wrong amplitude. My beeper signal is coming from pin 1 of the 6 way connector, just to the right of the LCD connector (the pin furthest from the LCD connector). But I don't have any load on this signal, it is not connected to anything else.
Just below this connector is a LARGE smd resistor of 1k (102). I think if you use the connection to the side of this resistor that is furthest from the connector, you will get the signal directly from the processor pin. This is effectively the signal I'm using.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Wed Nov 07, 2012 11:15 pm

very strange.. did the gain change.. voice got a bit louder but beeper still very low.. The weird thing is, if I keep pressing a key, the first beep is louder and then goes down. don't understand..
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: 18880
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Wed Nov 07, 2012 11:21 pm

I guess I know what's happening.. I removed the beeper and connected the wire to the signal pad where the beeper was.. this pad goes to a transistor and the beeper was it's load to ground.. could that be the problem? maybe I should connect the wire to the base of the transistor and get the signal from the processor.

EDIT: found the problem.. If you remove the beeper you will have to bypass the transistor.. Chwck the speaker mod on the wiki and connect the wire for the beeper signal on the track that connects to the base of the transistor.. In my case, I removed it as it was not doing anything there after connecting the signal to the amp.. beeper too loud now :D will have to do something about it ;) but it sounds good. can't wait for the vario ;)

Did increase the gain of the amp to 50 but I think I still can increase it a little more so I might decrease the resistor value.. will connect a trimmer and adjust for the best audio without clipping. then will just measure the resistence and solder the correct resistor..
Hans, thanks for the tip..



Joao
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

kintash
Posts: 10
Joined: Sun Jun 24, 2012 4:54 am
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by kintash » Thu Nov 08, 2012 1:47 am

Jhsa,

I just downloaded the voice pack and replaced with the one i had. The voice files from 401- have the numbers. But it works only with the Tssi and rssi values. I changed the voice files, updated the FW, jet the issue remains. Is there any of the 4 signal wires are taking care of tye variable function? I ohmed the four signalwires D0 D1 D2 D3 they chek out ok to the motherboard.


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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 1:55 am

no, I don't think that's the problem.. or your sound wouldn't work.. ca you post your eeprom here, so we can have a look?
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: 18880
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 2:53 am

Ok, after some testing, my gain resistor is 330 ohms and the resistor from pin 2 from the LM386 to ground is 560 ohms.. It's quite loud now and it's not distorting.. I'm powering the amp with battery voltage.. Perhaps I've set the beeper a bit louder than it should but for me is ok as I normally don't have the keys beeps enabled and it will be loud enough for the vario when it's available ;) and of course I have to make sure that my clubmates hear it :mrgreen: :mrgreen:
As now the resistor on pin 2 changed I might have to adjust the values of the resistors that control the beeper's volume.. Mike, I've noticed that on PC4 you used a resistor with the same value of the one on pin 2 and on PC5, a resistor of more or less the double of the value.. should I change now and keep the same ratio? for example 560 ohm and 1K or 1K2??

I've also noticed that if the module is quite close to the RF module it makes some noise on the speaker.. let's hope that when it is inside the radio there is no noise..
I don't have to say that I'm very happy with the results so far :D

Here is a little video of the kick a** module working :mrgreen: :mrgreen: As you can see it is very fast playing consecutive files.. I will have to adjust the files with the "point" as now the delay between "point" and the number is too long.. Also will need to equalise all the files again.. Well might as well just make new ones at 22KHz :mrgreen: Voice pack for the new module ;) but first want to have all working and the radio closed..

João

[BBvideo 425,350]https://www.youtube.com/watch?v=477gB9fOpG0[/BBvideo]
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

Oliver
Posts: 177
Joined: Mon Jul 23, 2012 1:02 pm
Country: -
Location: SPb, Russia

Re: Audio (voice) - Stock 9X PCB

Post by Oliver » Thu Nov 08, 2012 5:37 am

jhsa wrote: ...
Also will need to equalise all the files again.. Well might as well just make new ones at 22KHz :mrgreen: Voice pack for the new module ;)
João
João, not only 22KHz, but 16bit too!

tigar
Posts: 162
Joined: Wed Dec 28, 2011 5:31 am
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by tigar » Thu Nov 08, 2012 6:40 am

When are we getting a final parts list and plans? I can wait to start building again!

User avatar
Spoogy
Posts: 305
Joined: Wed Dec 28, 2011 6:27 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by Spoogy » Thu Nov 08, 2012 7:30 am

Yes, me too! \,,/ (urgently waiting final schemes and etc.)
What goes up, must come down. -Isaac Newton
OpenTX - expanding possibilities

Oliver
Posts: 177
Joined: Mon Jul 23, 2012 1:02 pm
Country: -
Location: SPb, Russia

Re: Audio (voice) - Stock 9X PCB

Post by Oliver » Thu Nov 08, 2012 7:35 am

Hello.
I placed all last works into repository.
Now last version of firmware you can get in /trunk
and last versions of schemes and boards you can search in hardware

kintash
Posts: 10
Joined: Sun Jun 24, 2012 4:54 am
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by kintash » Thu Nov 08, 2012 10:01 am

.
jhsa wrote:no, I don't think that's the problem.. or your sound wouldn't work.. ca you post your eeprom here, so we can have a look?
I dowloaded the voicepack from the library what Bill516 suggested. Thanks Bill.

Here is the template that I made. Gea has to activate sw1,2 ,3. These switches turn on & off as specified, and VS6,7,8 would have to announce the telemetry event. It just wouln't tell the numbers :(
Attachments
telemetry event voice.eepe
(1.31 KiB) Downloaded 176 times

Romushock
Posts: 47
Joined: Thu Nov 08, 2012 8:35 am
Country: -
Location: North Italy

Re: Audio (voice) - Stock 9X PCB

Post by Romushock » Thu Nov 08, 2012 11:33 am

Hi guys
First at all - thanks for yours work, it's really amazing. Will be somebody so kind to explain here how to build a own .csv file? In particulary, I'm interest to hear a voice in russian language. Does exist the possibility to record a voice of my wife's mom :evil: :evil: :evil: for compiling a messages?
THKS

tigar
Posts: 162
Joined: Wed Dec 28, 2011 5:31 am
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by tigar » Thu Nov 08, 2012 11:43 am

i checked the smd files. What size are the needed smd parts?
i am sure i can solder it but i have to work a little on pcb manufacturing and components sourcing...
Thanks for your work...

Joao what about the strip board plans?

User avatar
man-bis
Posts: 27
Joined: Tue Dec 27, 2011 9:10 pm
Country: -
Location: Russia

Re: Audio (voice) - Stock 9X PCB

Post by man-bis » Thu Nov 08, 2012 12:02 pm

Romushock wrote: Does exist the possibility to record a voice of my wife's mom :evil: :evil: :evil: for compiling a messages?
If this is done, the transmitter at risk of being killed. :lol: :lol: :lol:

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 12:09 pm

kintash wrote:.
jhsa wrote:no, I don't think that's the problem.. or your sound wouldn't work.. ca you post your eeprom here, so we can have a look?
I dowloaded the voicepack from the library what Bill516 suggested. Thanks Bill.

Here is the template that I made. Gea has to activate sw1,2 ,3. These switches turn on & off as specified, and VS6,7,8 would have to announce the telemetry event. It just wouln't tell the numbers :(
Please try like this..
Attachments
telemetry event voice1.eepe
(1.31 KiB) Downloaded 162 times
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

hageha
Posts: 213
Joined: Tue Dec 27, 2011 9:25 pm
Country: -
Location: Hildesheim

Re: Audio (voice) - Stock 9X PCB

Post by hageha » Thu Nov 08, 2012 12:29 pm

tigar wrote:i checked the smd files. What size are the needed smd parts?
i am sure i can solder it but i have to work a little on pcb manufacturing and components sourcing...
Thanks for your work...

Joao what about the strip board plans?

All resistors and capacitors are SR 0805.
Exception C9, C10, C16 SR1206
Voltage Regulator SOT 223
Transistors, SOT 23
Hans

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 12:37 pm

@Tigar & Spoogy
The SMD resistors and caps I used are 1206 size. There are also some cuts on the strip board that must be made between holes. that's a little difficult but if I made it, I'm sure you can do it as well.. For the SMDs you will need some flux so the solder flows to them.. they can be a pain because there's not so much space to place the iron ;) At least for me a magnifier is a must :)
I will be posting the final board layout soon. Still have to draw a few changes and change some resistor values.. The thing is, you will probably need to do some testing with some resistor values to adjust the sound levels to your liking and your speaker. Hans has different resistor values on his board (I hope he will produce it ;) ) for the amp gain and beeper signal.. Maybe the best would be to do as I initially thought. To have 2 trimmers (pots) on the board to adjust the gain and beeper levels. But it will make the board a little bigger..
I will make only one version of the board with all the options. If you don't want models on the card and/or PC interface, just leave the corresponding parts out.. but that won't make the board smaller..

Shall I post it shortly? I'm asking because the pc interface and models on card are still not tested and I don't know if changes need to be made.. We have to wait till Mike has some time to write the code for it.

Rob, I never wanted to do the speaker mod. Now I had to do it. I tell you, it sounds great on the speaker. Great work. Really love the sound of the trims
Joao
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

tigar
Posts: 162
Joined: Wed Dec 28, 2011 5:31 am
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by tigar » Thu Nov 08, 2012 12:55 pm

Shall I post it shortly? I'm asking because the pc interface and models on card are still not tested and I don't know if changes need to be made.. We have to wait till Mike has some time to write the code for it.

Rob, I never wanted to do the speaker mod. Now I had to do it. I tell you, it sounds great on the speaker. Great work. Really love the sound of the trims
Joao
I think it is a good idea to post it. Then we can start sourcing the parts. If there is any change the parts would be mostly the same.

Just to make it clear, with this board the piezo speaker is replaced by the voice speaker?

Oliver
Posts: 177
Joined: Mon Jul 23, 2012 1:02 pm
Country: -
Location: SPb, Russia

Re: Audio (voice) - Stock 9X PCB

Post by Oliver » Thu Nov 08, 2012 1:16 pm

man-bis wrote:
Romushock wrote: Does exist the possibility to record a voice of my wife's mom :evil: :evil: :evil: for compiling a messages?
If this is done, the transmitter at risk of being killed. :lol: :lol: :lol:
man-bis, can we put your Russian voice pack in Voice Library on this forum? Do we need to ask jhsa about it?

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 1:19 pm

Post it here and I will link it on the first post..

viewtopic.php?f=64&t=1290&p=27969#p27969


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
MikeB
9x Developer
Posts: 16544
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Thu Nov 08, 2012 1:22 pm

My time is limited this week. I have tested sending serial data to a PC, works fine. I don't think there will be any hardware changes for all the serial operations, but it will take some time to do all the software. The existing file system (FATFS) code only handles reading files. To make use of the SD card for storing models etc. will need the writing part to be added in.
I have the idea, that we should be able to have a bootloader in the '328, and then be able to update the program just using the serial conection to the PC.
We should also be able to read and write files to the SD card by using "ymodem" protocol over the serial connection.
With both of these working, then if the serial connection is borught otside the Tx, we should be able do everything with this board and the SD card without taking the Tx apart.

As soon as time permits, I will make up a stripboard version myself. Then I will be able to progress the software, but the current software make it work as a voice module replacement.

Tigar: Yes, you can use the voice speaker instead of the piezo speaker.

Man-bis: I have recorded voice files using Audacity and used them OK.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 1:28 pm

tigar wrote:
I think it is a good idea to post it. Then we can start sourcing the parts. If there is any change the parts would be mostly the same.

Just to make it clear, with this board the piezo speaker is replaced by the voice speaker?
Yes, the sound of the beeper comes out from the audio amp as well.. In my case removed my beeper and the transistor that drives it.. I don't know if that transistor is needed for the haptic mod, but I don´t like the radio's components vibrating. A good loud audio is enough for me..


I must test different resistors for the beeper volume and hopefully will have time to post a guide on how to build the board.. Don't know how long I need though as I'm not very good writing guides ;)

Today I want also to solder the wires to the resistors on pins 27 and 28 of the m64.. wish me luck :mrgreen:

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 1:36 pm

jhsa wrote:Ok, after some testing, my gain resistor is 330 ohms and the resistor from pin 2 from the LM386 to ground is 560 ohms..
As now the resistor on pin 2 changed I might have to adjust the values of the resistors that control the beeper's volume.. Mike, I've noticed that on PC4 you used a resistor with the same value of the one on pin 2 and on PC5, a resistor of more or less the double of the value.. should I change now and keep the same ratio? for example 560 ohm and 1K or 1K2??

I've also noticed that if the module is quite close to the RF module it makes some noise on the speaker.. let's hope that when it is inside the radio there is no noise..
Mike, what do you think about these values?

Thanks for the time you spend on this, we all apreciate it.Thank you.

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
MikeB
9x Developer
Posts: 16544
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Thu Nov 08, 2012 2:12 pm

Yes you are right, one resistor the same, the other double (ish).

Here is how I'm connecting to the serial pins on the M64:
M64Serial.jpg
This way, I only do the difficult/fiddly soldering once, but I can now solder to the little piece of stripboard many times without damaging the main board. I did this for the rotary encoder mod on another board.
The stripboard is glued to the main board.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 2:25 pm

Thanks for the picture.. I did the same for the encoder as you suggested.. also my pin 17 pad is lifted from the board. a friend did my first mods :( and I used the same piece of stripboard to have that connection too.. If I only knew, I would have left 2 more strips available :D.. I will glue another peice of stripboard to the main board as you did but will solder some pins on it so I can connect/disconnect the sound board if necessary.. don't want to be soldering on that radio again if not necessary.. Maybe only to replace the mega 64 with the 128 ;) :D Big job

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

bill516
Posts: 160
Joined: Fri Feb 24, 2012 6:31 pm
Country: -
Location: UK Sheffield City of Steel

Re: Audio (voice) - Stock 9X PCB

Post by bill516 » Thu Nov 08, 2012 2:34 pm

We might have to have a club together for the parts for this thing. I did a quick look on ebay for the smd parts getting kit of parts where I could i.e. resistors etc and the price has come out at £32.01 but there will postages on top of that as not all the parts come from the same supplier. A lot of the parts come in multiple quantities i.e 1, 2, 5, 10, 50 or more some of these can be used in other projects possibly but there will be a lot of components left over if it is just a one off build. I have not looked at other components i.e board sockets pins wire etc but they will all have to be included in the price at some point. I havnt looked at the stripboard costs but I would imagine it to be lower as DIL and axial components seem to much cheaper and easier to obtain or at least just the values and quantities you need. This costing was worked out using the BOM that Oliver posted earlier. it might be possible to get it lower but I was getting bored with going round in circles.

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Thu Nov 08, 2012 2:46 pm

Bill try Digikey or other online electronic components shop. you buy just the quantity you need.. and you pay only one postage.. ebay is no good in this case.It's a waste of time and money. only for something the shops don't have.

Here in Germany I've bought all from reichelt and I spent about 16 Euros (more or less $20) including postage.. but I bought some extra parts.. I want to make 2 boards for both my radios..
Ok, i bought 2 atmegas in China as they were cheaper than Reichelt..

Joao
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
MikeB
9x Developer
Posts: 16544
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Thu Nov 08, 2012 2:54 pm

Bill: Have you looked at http://www.rapidonline.com/default.aspx. Agreed some of the parts (resistors) tend to come in multiples, and the postage is significant unless your order is large enough, but their prices are quite reasonable.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: Audio (voice) - Stock 9X PCB

Post by Flaps 30 » Thu Nov 08, 2012 3:02 pm

Thanks for that Bill.. What you have found falls into line with what I said earlier ---> viewtopic.php?p=28411#p28411

It would be great if someone would be able to supply either a ready made board, or a kit of parts for this project, but I do feel that the market for it isn't great enough to warrant the work involved. It isn't a project (IMO) that is something that someone without a fair amount of hands on experience with construction of electronic devices should undertake.

With the introduction of this new home brew board, will it mean that we are going to end up with two versions of software for voice? One for this card and another for the Emartee module?


Post Reply

Return to “er9x”