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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa »

An LM317 would also work I guess
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 »

Ok, I finished my board too (Hans's version). Only problems with diodes and I decide not to solder the connector, I make it later.
Attachments
DSC_1021_s.jpg
DSC_1027_sr.jpg
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB »

jhsa wrote:But I don't understand why the delay and where? not between files I hope.. the module is nice and fast and sounding very natural.. ;)
If a file is at the start of the directory, the delay between receiving the command and starting to play is only a few milliseconds, but if it file is near the end of the dorectory, it can take 60-70 milliseconds. My idea is just to stretch the few milliseconds of the early files to around 60 milliseconds so everything is is the same.

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

jhsa wrote:Bill, try the BAT85 to replace the BAT42.. the 85 is the one in Mike's schematic a couple posts ago.. what about farnell, digikey, mouser, etc? do they all only sell big quantities??

eneloops will charge maximum 12V as far as I know and will drop quickly to about 11V.. The problem is that some people use 3S LiPos that hold a max voltage of 12.6V..

Mike, do you have a 7808 or 7809?? one of them would do the trick as well..

João
Mike and Joao

Yeah I had a look at those sites except mouser and they all want to sell in multiple quantities then stiff you with a postage charge.
Oliver
Posts: 177
Joined: Mon Jul 23, 2012 1:02 pm
Country: -
Location: SPb, Russia

Re: Audio (voice) - Stock 9X PCB

Post by Oliver »

Colleagues!
Updates in my project on googlecode:
- I place the mbanzi files into CVS
- I fix files for Eagle 4.16v
- I make last changes in both files (for Eagle 6.2.0 and 4.16)
- I delete some capasitors, I think it is not neccesary.

Hans! Please, update your scheme with your changes (33k instead 4.7k and delete gain)

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

Re: Audio (voice) - Stock 9X PCB

Post by hageha »

Oliver,
here the last schematic.
Attachments
SCHEMATIC.pdf
(52.63 KiB) Downloaded 445 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa »

Mike, the problem is that that delay is progressive then. if you apply the same delay to files in the middle of the directory you mitght start noticing it.. But even like that I don't think our ears will notice it that much.. speccially being used to the other module.. this one has what? the double of the speed??
Would using folders increase the delay by much?
I'm loving this module.. the sound quality is not bad at all.. You know where we could use a little delay? For example. when we have a chain of events like on this video below, between 2 events..
for example like this.
PACK VOLTAGE - VALUE - (LITTLE DELAY) - RADIO VOLTAGE - VALUE and so on
that would make it a bit more real separating the events. Note that the PACK VOLTAGE and RADIO VOLTAGE are 2 extra files that I programmed in the chain and no delay is required between them and the VALUE played next. I had to use 2 extra voice switches for them ;) Maybe it would be possible to insert a file number to be played in "varibl" mode right after the switch selection on the voice switches??
It would be something like this
VS8 SW1 (File Number here) Varbl A1=

Joao



[BBvideo 425,350]http://www.youtube.com/watch?v=_FLZagU6jsw[/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
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB »

Easiest would be to add some silence at the start of "PACK VOLTAGE", I have nowhere to store the extra "File Number" to do what you suggest.

The delay I'm thinking of is a variable delay.
Receive command - note the time.
Find the file, prepare to output voice.
If time since command received is less than (say) 80mS, wait until the time is 80 mS.

This way, all files will have the same delay from command to voice output.

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 (voice) - Stock 9X PCB

Post by jhsa »

if you add silence to the beginning or end of the sounds, you will hear the clicks.. tested
Then it is better to leave as it is..

AAHH, I remember now, someone gave the solution for the problem sometime ago :)

Someone said that we could have some extra Voice Switches.. ;) :mrgreen: :mrgreen:
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB »

I'm going to look into the clicks, they are caused by ramping the audio output to half level, then back down to 0 around the sound files. I don't think this is necessary for our application and we want to keep the output at half level between sound files. That should get rid of any clicks.

I'm looking at the filtering we have to get rid of the PWM frequency, and how it affects the sound output. We have a PWM frequency of 46875 Hz (12MHz/256).
If we filter this significantly, as we need to do, we can't help but take out the higher frequencies of the audio. We have two filters, using two capacitors. One capacitor follows the 1K resistor on the PWM ouitput, the other capacitor is from pin 3 of the LM386 to ground.
I have 33nF in both places at the moment, According to my calculations the following frequencies are reduced as:
46875 0.2%
22000 0.9%
16000 1.6%
8000 5.8%
4000 17%
2000 38%
1000 66%
250 96%

Changing both to 10nF gives:
46875 2.1%
22000 8%
16000 13%
8000 31%
4000 58%
2000 83%
1000 95%
250 99%

Changing the first to 22nF and the second to 4.7nF gives:

46875 2.1%
22000 9%
16000 15%
8000 41%
4000 74%
2000 92%
1000 98%
250 99.9%
These look quite good.

I'll try some different values and see how it sounds, however, getting rid of the 46875 PWM frequency this way suggests using an audio sample rate over 16kHz will not lead to significantly better sound output. We would need an active filter of order 4 or more to improve on this, I don't think the extra circuitry is worth 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 (voice) - Stock 9X PCB

Post by jhsa »

Mike, I think the other noise I heard before was from my first files.. with my new ones, I haven't noticed any PWM noise... yet. only the clicks.. but will pay attention to that and report back..

Just finishing another sound pack with a very sexy voice.. :D will also try to explain how I did it using the "sound finder" feature in audacity. I used another source for generating these files and everybody can have access to this source. good quality. some of us might already know it.. thnaks to Romolo for pointing me in this direction.
Try it:

http://www.acapela-group.com/text-to-sp ... -demo.html

João

P.S: - Also we must not forget that these little speakers respond better to higher frequencies.. if we cut them it will sound like.... well, bad
I enhance the higher freqs because I can set the volume a bit higher without distortion.. Low freqs can also damage these small speakers..
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
Wrongway
Posts: 23
Joined: Tue Nov 13, 2012 12:15 am
Country: United States
Location: Kansas USA

Re: Audio (voice) - Stock 9X PCB

Post by Wrongway »

You guys are just to smart! :o
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa »

One more Sound pack.. used the link above to make them.. :)

viewtopic.php?f=64&t=1290&p=18110#p18110

The ones with Heather1 and Heather2 on the file name.. :mrgreen: sexy voice :mrgreen:
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 (voice) - Stock 9X PCB

Post by jhsa »

Mike I've just noticed. Both my radios are saying 1 minutes instead of 1 minute...
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 »

Hello! Yesterday I try to insert my board into case. I desolder beeper, desolder transistor for beeper and I see, that on the beeper board we have spare LM7805. This regulator has power only beeper early, but now we have not beeper. :)

We can desolder this regulator from beeper board. Then we have some spare space, but we can't use it.



Or we can leave regulator on beeper board but remove our regulator from audiomodule and then make audio board smaller. I think we can make 1206 SMD version as big as now Hans's version. And then we can place audio module downward beeper board with double-sided tape. Someone even can make small slit on the top of case, near antenna, for microSD slot.
Or we can make totally new replacement of beeper board, as man-bis's suggestion.

Now I cut unused space in corners on Hans's board and place audio board downward beeper board. I will power audio module from beeper board. So I'll make 3 wires from beeper board: +5v, ground, beeper signal. And now I have unused reg1117-5.0 and some capasitors on my audio module.

Some photos.
DSC_1028_s.jpg
DSC_1030_s.jpg
DSC_1029_s2.jpg
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Audio (voice) - Stock 9X PCB

Post by Kilrah »

Oliver wrote:And now I have unused reg1117-5.0 and some capasitors on my audio module.
You might want to leave the capacitors, as the regulator on the beeper board doesn't have them.
Oliver
Posts: 177
Joined: Mon Jul 23, 2012 1:02 pm
Country: -
Location: SPb, Russia

Re: Audio (voice) - Stock 9X PCB

Post by Oliver »

Kilrah wrote:
Oliver wrote:And now I have unused reg1117-5.0 and some capasitors on my audio module.
You might want to leave the capacitors, as the regulator on the beeper board doesn't have them.
I mean remove input capasitors (before 1117-5.0). Of course we can put it before input of 7805, it is not hard.
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 »

Guys, if a PCB design in the T configuration? It's not complicated. I think that such a decision is justified.
Oliver
Posts: 177
Joined: Mon Jul 23, 2012 1:02 pm
Country: -
Location: SPb, Russia

Re: Audio (voice) - Stock 9X PCB

Post by Oliver »

man-bis wrote:Guys, if a PCB design in the T configuration? It's not complicated. I think that such a decision is justified.
Can anybody make this design? I havn't enough spare time for this work. :(
Even two designs - for SMD and pinouts. :)
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa »

oliver, the regulator on beeper board is not powerfull enough to power the sound module. It's only 100mA.
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 »

I think about a SMD layout.
The existing switch board complete replacement?
SR1206 (although all the parts I have in stock in 0805)
With external MicroSD card. In the battery compartment, it is well placed.
Pads in the 100 mil spacing! If needed larger (one sided!)

We should first look for a source for the switch.

The big spring clip could be replaced by a wire (with connector).
Its port is anyway only a wire.

To guarantee safe operation, ensure that even with 2 lithium cells, we should just stay in the low dropout regulators.


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

Re: Audio (voice) - Stock 9X PCB

Post by Oliver »

hageha wrote:I think about a SMD layout.
...
SR1206 (although all the parts I have in stock in 0805)
...
Hans
Hans, can we make basically for 1206, but spacing between pads of one element sutable for soldering 0805? (For example, now you can easy solder 0603 instead 0805 in your current design).
hageha
Posts: 213
Joined: Tue Dec 27, 2011 9:25 pm
Country: -
Location: Hildesheim

Re: Audio (voice) - Stock 9X PCB

Post by hageha »

Oliver,
thought well,
But I have to one-sided circuit board between the pads through!
The circuit path width is 14 mil minimum at the moment.
Underneath it will be difficult with the home production.
SR1206 o.k.? ha,ha--0603--easy-- I'm 64.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa »

Hans, I'm 45 and I don't know if I could do it :mrgreen: Hands up to you if you're 64 and still can solder those small buggers.. :mrgreen:
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 »

hageha wrote: ha,ha--0603--easy-- I'm 64.
Ha-ha + ha-ha :D
Yes, it is easy, but if you CAN it. :D

You are 64? And you are solder 0805? Really Great!!! :shock:
I think you can solder 0603 but don't tell anybody about it!
hageha
Posts: 213
Joined: Tue Dec 27, 2011 9:25 pm
Country: -
Location: Hildesheim

Re: Audio (voice) - Stock 9X PCB

Post by hageha »

It's not entirely true, until next March.
Fun enough,
Does anyone have any idea where we can get the switch?
The unsolder could be difficult.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice) - Stock 9X PCB

Post by jhsa »

Have you tried Reichelt yet?
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB »

A few more calculations. We could add a capacitor feedback on the LM386 from pin 5 to pin 1, this would give a third filter stage.

Changing the first to 10nF and the second to 2.2nF, and adding a 1nF on the LM386 gives:

46875 2.0%
22000 13.4%
16000 25%
8000 61%
4000 87%
2000 96.5%
1000 99%
250 99.9%
These look quite a bit better, I'll re-wire my board and try them.

I've also just tried a small firmware change, leaving the PWM running all the time. This seems to work, and I can see from the 'scope there are no clicks/pops.

Code: Select all

void audio_on (void)	/* Enable audio output functions */
{
	if ( TCCR0A == 0 )
	{
		
		TCCR0A = 0b10100011;	/* Start TC0 with OC0A/OC0B PWM enabled */
		TCCR0B = 0b00000001;
		ramp(1);				/* Ramp-up to center level */
	}

	if (!TCCR1B) {
		FifoCt = 0; FifoRi = 0; FifoWi = 0;		/* Reset audio FIFO */
		
		TCCR1A = 0b00000000;	/* Enable TC`.ck = 2MHz as interval timer */
		TCCR1B = 0b00001010;
		
		TIMSK1 = _BV(OCIE1A);

	}
}


static
void audio_off (void)	/* Disable audio output functions */
{
	OCR0A = 128 ;
	OCR0B = 128 ;
	
	if (TCCR1B) {
		TCCR1B = 0;				/* Stop audio timer */
	}
}
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 (voice) - Stock 9X PCB

Post by jhsa »

One more video saying some telemetry events with combined switches and combined voice files by sexy Heather.. :mrgreen:

[BBvideo 425,350]http://www.youtube.com/watch?v=Kt_yJiWm ... e=youtu.be[/BBvideo]

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB »

Excuse me, my wife is called Heather, and I prefer her saying E R 9 X.

I'm not sure my calculations are completely correct, I'll check them further, however, I have changed the first capacitor I mentioned to 10nF, and the second to 2.2nF. No capacitor on the LM386, it doesn't work.
With these fitted, I cannot detect any PWM noise on the output, but I feel the voice does sound better, less muffled and a bit louder. Well worth changing these on any built circuits.

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

Post Reply

Return to “er9x”