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.
kmargos
Posts: 76
Joined: Mon Jun 05, 2017 7:54 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by kmargos » Wed Oct 25, 2017 7:38 pm

ReSt wrote:
Wed Oct 25, 2017 2:32 pm
I once had a similar problem, but with openTx, that the welcome message some times was played and sometimes not.
This was due to the initialisation of the sound module needed more time to get ready before it was able to play the message.
I had to increase the initialisation delay in the code so that the welcome message was played a little bit later - and that worked.

Reinhard
Hello, what do I look for in the code to change? Is it in the ER9X code or the arduvoice code?

Tks !!!

Marco.

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Wed Oct 25, 2017 8:27 pm

I think Reinhard is referring to another type of module as the one you have is not supported by openTX.
OpenTX does not suppport saving and restoring models to / from the card, and also not between the radio and the computer.

But I think he means the radio firmware..

João


Sent from my BLN-L21 using Tapatalk

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

kmargos
Posts: 76
Joined: Mon Jun 05, 2017 7:54 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by kmargos » Wed Oct 25, 2017 8:50 pm

I just used another 16gb(SAMSUNG) card and it works perfectly. :lol: :lol: :o :shock: :?

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Wed Oct 25, 2017 8:53 pm

then it is the card..
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

kmargos
Posts: 76
Joined: Mon Jun 05, 2017 7:54 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by kmargos » Sun Oct 29, 2017 12:11 am

My experience with RF noise.

RF interference solved

Conect a electrolytic capacitor 10uf 16v in the pin 7 and ground of the LM386.

RF Noise Eliminated

The noise of this video no longer exists.

I hope to help.


Marco.


AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Sat Mar 24, 2018 7:25 pm


AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Sat Apr 14, 2018 10:19 am

Why is it so easy with Devo and so difficult with 9X?
http://www.deviationtx.com/wiki/voiceoutput
May be it can be done similar with 9x too?

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

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Sat Apr 14, 2018 10:54 am

Can you provide a link to a datasheet of the module?

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

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Sat Apr 14, 2018 10:58 am

The Devo implementation, as far as I understand has limitations.. For example, You can't use voice when using a trainer setup.
The implementation on a 9x radio is internal and it doesn't have limitations.
If building and installing an ArduVoice module, which is arduino based, you can even save models to / from the SD Card, as well as gain 2 more switches for your radio. This is supported in Er9x only.

Flexibility and power, comes at a price ;) :D

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Sat Apr 14, 2018 11:02 am

But Mike, taking some advantage from the idea, what about being able to connect an arduino with an SD Card module to the trainer port to flash the firmware, and save /restore modules? arduino could also make an USB connection to the PC?? ;)
Might be possible only on m128 and m2561??

Thanks

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

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Sat Apr 14, 2018 6:35 pm

Can this cheap MP3 player be controlled directly from CPU without trainer port use? I'm not very good at electronics, but isn't it just two commands to be send to MP3 player board - file number to select, and play. Can it be done just with one wire directly from CPU?
I desperately need only main voice alarms like low GPS satellites or battery. No save models to SD card needed etc, so I would prefer to get simple audio but with really easy setup.
Mike can you please help with that?
Here is all info on the module - https://www.dfrobot.com/wiki/index.php/ ... KU:DFR0299

User avatar
Kilrah
Posts: 9495
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Audio (voice) - Stock 9X PCB

Post by Kilrah » Sun Apr 15, 2018 3:36 am

This was supported long ago but it was poor, which is why the arduino-based solution was developed.

Namely if I remember well the time interval between playing 2 files was too long to be nice. At the time support was added it was OK with but later batches of the modules increased the delay and it was dropped.

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Sun Apr 15, 2018 11:13 am

May be it was long time ago when it was slow. Due to many videos at youtube it works very fast.
Anyway is this module supported now? It there any schematics how to connect it?

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Mon Apr 16, 2018 3:24 pm

Mike, have you seen the datasheet?

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

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Mon Apr 16, 2018 5:43 pm

That looks to be a different module to the one in your picture above!

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

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Mon Apr 16, 2018 6:11 pm

There are two my posts with different modules one after another. The second post was about module used with Devo, so I posted the datasheet for it. Looks like it's better than the first one that I just found occasionally.

What do you think - is there any chance to use the second module from DEVO project with Turnigy 9x?

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

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Mon Apr 16, 2018 10:55 pm

If the 9X has the M64 processor, then there is no room in the flash for another way of driving a sound board. To implement this would then require another set of builds.
Also, to implement this I would need to have a module, then use it to replace a module I'm already using in a 9X to get it working. After that I would need to swap between modules when I need to test a release to make sure the firmware is working, which I really don't have time to do.
If someone else obtained a module and worked out the required hardware and firmware changes I might be able to include them.
Currently, 2 module interfaces are supported, a parallel one and a serial one. The smaller module you referenced appears to be a mixture with serial commands to play files, but a separate "Busy" signal.

Maybe a way to use this module would be to use an Arduino that 'looks like" the serial Megasound module to the radio, but then translates commands and the busy signal to/from this module. There is still the problem that the Megasound module (parallel or serial) supports backup and restore of models to /from the SD card, but this would not work for this module.

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

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Tue Apr 17, 2018 6:49 am

Mike, thank you very much for your reply!
Luckily I have 128 cpu and I can buy the module and test the FW, and there is no need for models backup.
At the same time it looks like it's even better to use arduino with conversion code to make this module to work.
In any case I can do whatever you say, if you find reasonable to add support for this module. And it will be really great as it will be very cheap and easy solution!

here is very detailed manual on it
http://www.picaxe.com/docs/by8001.pdf

looks like it can be fully controlled by serial

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Tue Apr 17, 2018 7:41 am

The way serial communication works between the ArduVoice (arduino based) module and the radio implies that we do remove the left vertical trim switches from the main processor, and connect them to the voice module to be controlled by it. This frees the processor pins to control the voice module.
The question is, does this new cheap module have external pins to connect the trim switches to? Does it have other available pins to also control the backlight?

The older module mentioned above that was dropped wasn't a direct connection to the radio. It needed another IC and some other circuitry to be made to work. I don't know if a direct connection with this module is possible. Even if it is, there is also the other problem with the trims.
In my opinion, I think that even if it is possible, losing trainer capability is not acceptable, but if people are ready to sacrifice it, why not? How many though?
But Mike is the one coding and he has a much better idea of what is possible or not :)

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

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Tue Apr 17, 2018 8:11 am

Never used trainer port in my life. :) It's definitely much more use of Audio option rather than trainer port, not to mention it's very easy to switch it back and forth for different use.

Do you mean there is no currently any free TX-RX pins at the CPU to use with audio module except of the trim switch or Trainer port?
Then it's better to use Trainer for sure!

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Tue Apr 17, 2018 8:33 am

Remember, this mod wouldn't be only for you. :) There are others that might want it and still use the trainer port. So WE have to speak PLURAL here ;)

I am not sure the trainer port being able to do serial.
I remember asking Mike about using it for connecting another module once. I am not sure that.processor pin can output anything else but PPM. I could be wrong..
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

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Tue Apr 17, 2018 8:53 am

I absolutely agree that the mod must be useful for everyone, I just said my opinion that it's better to use Trainer for Audio and I believe same will be for most of the pilots, but sure not for all of them. This is not 100% universal solution unfortunately, but not the worst one if there are no any other free tx-rx pins available.

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Tue Apr 17, 2018 9:13 am

That is the question, can the trainer port do serial?? :)
Thw Devo radios have other hardware I think?

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

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Tue Apr 17, 2018 12:18 pm

Unfortunately, the hardware design of the 9X means the trainer port cannot be used for serial data. Two reasons:
1. The protocol signal to the Tx module is driven by software. This means the timing has to be kept very accurate, particularly when using the Multiprotocol module which is serial data at 100kbaud.
2. Normally, the trainer output is physically the same signal as the module protocol signal.

There is also a question of supply and signal voltage levels, the 9X runs at 5V while the module is 3.3V.

If an Arduino is used to interface to this module, then the trim switches could be wired to the Arduino. This, in my opinion, would be the solution to use as er9x would thenh need no changes, and the Arduino firmware could then be changed to support other sound modules. The Arduino could also report failures should an attempt be made to backup/restore models.

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

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Tue Apr 17, 2018 12:36 pm

Mike, as unfortunately there aren't any upgrade boards for the 9x radios, would you see any gain in using one of those Arduino compatible boards with STM32f103C8T6 as voice modules? It has more pins available than the traditional arduino based on the AVR chip. That could probably be beneficial? I am thinking about sliders, switches, probably a better handling of the voice files and models, faster, etc.

Thanks

João

EDIT: I have a couple of those boards, so I could probably test as I own a couple 9x mainboards as well..
EDIT_1: It seems that this chip has also a DAC??
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: 15562
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Tue Apr 17, 2018 1:15 pm

Got a link to those boards?

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

AlexLmm
Posts: 34
Joined: Mon Oct 03, 2016 11:28 pm
Country: -

Re: Audio (voice) - Stock 9X PCB

Post by AlexLmm » Tue Apr 17, 2018 1:34 pm

I think MAX3232 board can be used to convert levels - it should not be difficult.

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Tue Apr 17, 2018 1:46 pm

MikeB wrote:
Tue Apr 17, 2018 1:15 pm
Got a link to those boards?

Mike
this is what I have.

https://www.ebay.com/itm/STM32F103C8T6- ... 1156408508

Probably not the same seller though. but they are very cheap.

Perhaps this can help as well..

http://grauonline.de/wordpress/?page_id=1004

ArduVoice going STM32?? :P ;) :D

Thanks

João

EDIT: Downside is that it is also 3.3V, so we would probably need a voltage divider on the RX pin when connecting to the 9x, and a 3.3V FTDI when programming.
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: 15562
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice) - Stock 9X PCB

Post by MikeB » Tue Apr 17, 2018 3:57 pm

Most of the pins of the STM ARM processors are 5V tolerant, so you shouldn't need a voltage divider on the RX pin, and a 3.3V FTDI is only likely needed if the supply from it is used directly on the processor.

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

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

Re: Audio (voice) - Stock 9X PCB

Post by jhsa » Tue Apr 17, 2018 4:08 pm

Mike, I do think that this chip has a DAC? Would this make it easier? I mean, less components? Better audio quality? It certainly has many pins for other features. For example, would it be able to use this.board to generate signal for another RF module? If so, would it be reliable?
Perhaps one of this modules could bring the 9x a bit closer to the other boards by doing some of the stock board's work ?

Thanks

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

Post Reply

Return to “er9x”