ArduVoice-9x Voice Module with Arduino for the 9x Radio

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
Post Reply
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by LTMNO »

Hello all, has anyone printed out the boards and have any extra for sell?
Pls PM if you do.

Thanks.
Custom 9x with M64/Telemetry Mod

nppc
Posts: 32
Joined: Fri Jun 07, 2013 5:37 pm
Country: Germany
Location: Hessen

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by nppc »

You can look to this post:
viewtopic.php?f=5&t=6831&start=60#p98131
There is a link to my board at OSHPark. You can order it there for very cheap.
Pavel
hirnsal
Posts: 4
Joined: Sun Jan 31, 2016 8:45 pm
Country: Czech Republic

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by hirnsal »

Hello all.
I have board Pro mini 328P and only programer USBASP. Can I upload hex file to Board over USBASP without Bootloader program and whill runing corect of function voice program? My Board have working on 16MHz too. Someone has the program as skatch file for Arduino?
Attachments
Board Pro mini 328P back side.jpg
Board Pro mini 328P front side.jpg
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

I think it is possible to flash the firmware with the UsbAsp programmer from the arduino IDE. The firmware file is on the first post.. you can also flash the bootloader with that programmer, I believe..

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
afon
Posts: 25
Joined: Mon Aug 24, 2015 8:59 am
Country: Germany
Location: Hamburg

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by afon »

Hi hirnsal!
hirnsal wrote:I have board Pro mini 328P and only programer USBASP. Can I upload hex file to Board over USBASP without Bootloader program and whill runing corect of function voice program? My Board have working on 16MHz too. Someone has the program as skatch file for Arduino?
nppc wrote:Also you need Arduino Pro Mini board. PCB made for old type of PCB where pins A4 and A5 is inside and not at the edge of board.
Arduino's original bootloader should be reflashed to optiboot loader. Works both versions of optiboot: original, from Arduino IDE, and modified, that you can download from this thread.
Do you have Arduino board with A4 and A5 inside?

As far as I know they should be over A2 and A3.
725j_KCAtL8.jpg

hirnsal
Posts: 4
Joined: Sun Jan 31, 2016 8:45 pm
Country: Czech Republic

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by hirnsal »

I found next board at home. You will see at attachment.
The board is almost the same as you. Can I load FW to board over USBASP?
I have next qustion, when I load FW from Companion2.0.17 to T9XR I have to set (activation) using voice in setup menu on transmiter?
Attachments
Board Pro mini 328P next.JPG
Board Pro mini 328P next.JPG (23.75 KiB) Viewed 14819 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

hirnsal wrote:I found next board at home. You will see at attachment.
The board is almost the same as you. Can I load FW to board over USBASP?
As I already said before, you can flash the arduino with an UsbAsp from the Arduino IDE, but you have to connect the right pins to the programmer.

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
hirnsal
Posts: 4
Joined: Sun Jan 31, 2016 8:45 pm
Country: Czech Republic

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by hirnsal »

I can see on first page this forum how connect megasound to board. It is posible only over pin 27 and 28 (serial link). This connection is correct for bord T9XR m128 or only m64?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

The serial connection to the voice module only works with er9x, not opentx. It works with m64, m128 and m2561..
with opentx you must use the LCD vias like the normal megasound.
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
hirnsal
Posts: 4
Joined: Sun Jan 31, 2016 8:45 pm
Country: Czech Republic

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by hirnsal »

Do you have any solution with Atmega Pro mini 328P 16MHz for OpenTX? I created interface with circuit 74hc574n and Wtv020SD by MikeB, but not runnig correct (backlight is OK, but no sound). I am unhappy about.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

Oh, it has been a looooong time since I used that.. I don't remember much about it..

I think someone built a ArduVoice with an arduino for openTX, but used the LCD vias to connect radio and voice module.
Serial does not work in opentx..

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
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Record your own voice file.

Post by Hoangluu »

Dear Joao,
Can we record our voice and copy to SD card?
Which format of voice file is supported?
Thank you.
Luu
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

Of course you can :)

16Kz 16 bit .wav files

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
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by ReSt »

hirnsal wrote: I created interface with circuit 74hc574n and Wtv020SD by MikeB, but not runnig correct (backlight is OK, but no sound). I am unhappy about.
Just saw your post.
I'm using the same voice module with my TGY9x and it works without any problems.

You know, you need wav files with 16khz 8bit mono ?
and in the radio setup soundmode PiSpkVoice.

p.s.
I remember that I had a problem that the voice did not start every time I powered on the radio. And I had to enlarge a delay in the initialisation sequence of the module. (but can't find it in the moment and I'm not sure if it was in Er9x or Opentx)

Reinhard

I just found what I was looking for.
The problem was/is in Opentx (actually 2.1.7) that the welcome message was not played.
In the voice.cpp file procedure "t_voice::voice_process(void)" in the condition
"else if (VoiceState == V_STARTUP) {..."
I increased the "if (g_blinkTmr10ms > 60)" to "(g_blinkTmr10ms > 130)"
to give the module more time to initialize
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Dear Mike,

I have some ATmega8 left, can you please help me to built ArduVoice-9x firmware for ATmega8.

Thank you so much.
Luu
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by MikeB »

I don't think the code fits in an ATmega8, it is 24K long.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Thank you, Mike.
I will order some atmega328.
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Hi Joao,

I have build Arduvoice-9x module but it is not work. Can you pls help!
My TX firmware version is:
Ver: V1.647-Mike
Date: 20.09.2016
Time: 08:40:38
SVN: er9x-pr820
Mod: FRSKY 128

Arduvoice-9x module load firmware as your first post.

I have set "M' Sound serial" on in hardware menu, sound mode: PiSpkVoice
I have check wiring many time, it is correct with schematic as your first post.
But...It is not work :oops:

Thr Up and Thr down trim SW are not work, not have backup and restore in model select menu.....

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

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

Strange, did you flash the correct firmware to the arduino?
I will have a look a bit later as I'm not at the computer until after lunch :)
Meanwhile you could post dome good pictures of your setup.
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
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Hi Mike,
I will take a picture when I go home.
If I flash the firmware via USBasp, the Thr trim SW and back light work but not have backup and restore in model select menu.
Thank you so much.
Luu
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

Please check that you have "M' Sound Serial" set to ON in the hardware menu, and also go to Radio "Setup/AudioHaptic menu" and make sure you set the "Sound Mode" to "MegaSound"..

Also when you tried to flash the module via serial, did you flash the bootloader before you tried to flash the firmware to the module?

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
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Hi Joao,
This is my set up for test Attached picture).
I have set "M' Sound Serial" set to ON in the hardware menu, and "Sound Mode" to "MegaSound".
When I tried to flash the module via serial, I flashed the bootloader before flashing the firmware to the module.
To day i will re work all to check what happen.
Thank you for your support.
Luu
Attachments
DSC_0011.JPG
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

Connections to the radio? Is that little board the M328?

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: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

Did you install the Diodes as explained on the first post?

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
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Hi Joao,
Still can not success... :oops:
I used Arduino pro mini 5v/ 16MHZ and USB UART CP2102 as attached.

Test 1:
Solder D1, D2 as schematic on first post.
Flash bootloader firmware by AVRISP MKII (AVR studio)-->OK
Flash firware by serial--> Fail (See picture)

Test 2:
Solder only D1 (D2 delete).
Flash bootloader firmware by AVRISP MKII (AVR studio)-->OK
Flash firware by serial (USB UART CP2102)--> OK (See picture)
The Thr trim SW and back light does not work.

Test 3:
Solder D1, D2 as schematic on first post.
Flash bootloader firmware by AVRISP MKII (AVR studio)-->OK
Flash firware by AVRISP MKII (AVR studio) --> OK
The Thr trim SW and back light work but can not access to Micro SD card.
I have changed 3 Micro DSD card --> Same result.
I have tied to send an audio file to Micro SD card by serial (USB UART CP2102)--> Fail (See picture).

Can you please give me suggestion.
Thank you,
Luu
Attachments
USB UART CP2102.jpg
Serial send fail.JPG
Flash success.JPG
Flash fail.JPG
Arduino Pro Mini 5V-16Mhz.jpg
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Hi Joao,
One more thing ...
Which format anh capacity of Micro SD card is supported?
Sound files are stored on root directory of SD Card?
Thank you.
Luu
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

I used some different sizes of card. I think the formnat is FAT32.. it was long ago..

Yes, The files are stored in the root directory of the card..
Test 2:
Solder only D1 (D2 delete).
Flash bootloader firmware by AVRISP MKII (AVR studio)-->OK
Flash firware by serial (USB UART CP2102)--> OK (See picture)
The Thr trim SW and back light does not work.

This I find very strange.. I think I removed the resistors on pins 27 and 28 of the processor in the radio..
I don't know your USB adapter though.. Don't you have an FTDI adapter you could try??
Test 3:
Solder D1, D2 as schematic on first post.
Flash bootloader firmware by AVRISP MKII (AVR studio)-->OK
Flash firware by AVRISP MKII (AVR studio) --> OK
The Thr trim SW and back light work but can not access to Micro SD card.
I have changed 3 Micro DSD card --> Same result.
I have tied to send an audio file to Micro SD card by serial (USB UART CP2102)--> Fail (See picture).
When you flashed the firmware with the ISP programmer you wiped the bootloader that you flashed before..
If you flash the bootloader, you need to flash the firmware with the serial adapter.. It is difficult to help when we can't see what is happening, what you have, and how you've connected it..

I also remember having problems with the SD Card, but can't remember what the problem was :( As I said it was a while ago since I did this.. Please make sure connections are good..

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
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Thank you Joao,

Today I will try again one more time, hope it will work as it is.

Have a nice day.
Luu
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by Hoangluu »

Dear Joao,

I have done all my best today but it still not work. :x
Sorry for my inconvenience.

Dear Mike, can you please help.

The problem that i have now is:
1. If i flash "Bootloader_optiboot_atmega328_16.hex" by ISP programmer and then flash "Firmware_amod_lastSer16.hex" by serial programmer, the back light and THr trim SWs are not work (other functions are not work too).
2. If i only flash "Firmware_amod_lastSer16.hex" by ISP programmer, the back light and THr trim SWs are work well but other functions (backuo, restore...) are not work.

Can you please help me to check the firmware I use is correct one and there is any note on FUSE setting for AT328P (Arduino Pro Mini 5V/16MHz).
My radio use ATMega128, I have set "M' Sound Serial" set to ON in the hardware menu, and "Sound Mode" to "MegaSound".

Thank you so much.
Luu
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »

The fuse settings should be in the first post?

Maybe your USB serial adapter is not flashing the firmware at all.
Please tell us how you are doing to flash the module with the serial adapter? I asked you above, can you get another serial adapter?
Also I think Mike has a composed hex file somewhere, that means, it has the bootloader and firmware together. I will try to find it in a little while. ..
Also, what voice files are you putting on the SD Card?
Your SD Card reader looks also a bit strange by the way.. Is there something connected with wires? Was it already repaired,?

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”