Page 5 of 20

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

Posted: Fri Jan 15, 2016 5:10 pm
by LTMNO
Hello all, has anyone printed out the boards and have any extra for sell?
Pls PM if you do.

Thanks.

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

Posted: Thu Jan 21, 2016 6:50 am
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

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

Posted: Thu Feb 18, 2016 5:06 pm
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?

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

Posted: Thu Feb 18, 2016 5:45 pm
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

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

Posted: Thu Feb 18, 2016 7:48 pm
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

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

Posted: Fri Feb 19, 2016 2:16 pm
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?

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

Posted: Fri Feb 19, 2016 3:32 pm
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

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

Posted: Fri Feb 19, 2016 4:04 pm
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?

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

Posted: Fri Feb 19, 2016 7:17 pm
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

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

Posted: Sat Feb 20, 2016 2:44 pm
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.

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

Posted: Sat Feb 20, 2016 3:14 pm
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

Record your own voice file.

Posted: Wed Nov 23, 2016 9:21 am
by Hoangluu
Dear Joao,
Can we record our voice and copy to SD card?
Which format of voice file is supported?
Thank you.
Luu

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

Posted: Wed Nov 23, 2016 9:56 am
by jhsa
Of course you can :)

16Kz 16 bit .wav files

João

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

Posted: Wed Nov 23, 2016 10:22 am
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

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

Posted: Fri Nov 25, 2016 2:49 am
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

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

Posted: Fri Nov 25, 2016 11:28 am
by MikeB
I don't think the code fits in an ATmega8, it is 24K long.

Mike.

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

Posted: Fri Nov 25, 2016 1:02 pm
by Hoangluu
Thank you, Mike.
I will order some atmega328.

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

Posted: Wed Nov 30, 2016 9:00 am
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

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

Posted: Wed Nov 30, 2016 9:33 am
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

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

Posted: Wed Nov 30, 2016 9:57 am
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

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

Posted: Wed Nov 30, 2016 12:17 pm
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

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

Posted: Thu Dec 01, 2016 12:49 am
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

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

Posted: Thu Dec 01, 2016 1:32 am
by jhsa
Connections to the radio? Is that little board the M328?

João

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

Posted: Thu Dec 01, 2016 1:37 am
by jhsa
Did you install the Diodes as explained on the first post?

João

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

Posted: Thu Dec 01, 2016 4:30 am
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

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

Posted: Thu Dec 01, 2016 6:27 am
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

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

Posted: Thu Dec 01, 2016 7:16 pm
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

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

Posted: Fri Dec 02, 2016 12:42 am
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

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

Posted: Fri Dec 02, 2016 3:31 am
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

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

Posted: Fri Dec 02, 2016 8:58 am
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