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.
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

jhsa wrote: Mon Mar 26, 2018 2:14 pm
hackerjoe wrote: Mon Mar 26, 2018 1:32 pm
2 more switches hmmm - I don't need them at the moment.
:D Sooner or later.... :mrgreen:

João
You mentioned you can get two more switches?
Can they be 3 position or just 2 position? How do you actually wire them João?
Thanks,
Joe

tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

while designing a pcb I decided to include the SD card holder on it and not use a separate sd card module.

Will this work with micro SD cards and what size card is required ?
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 »

Micro should be OK. You don't need a card with many Gb. it is just for voice files and Models.

But if you are not using the SD Card module, do not forget that the ArduVoice works at 5V 16Mhz. the SD Card works at 3.3V only. If you feed 5V to it (this includes the DATA pins), you will destroy it.

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
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Yes,I do intend to add MOSFET based level shifters. Thanks for the reply.
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

hackerjoe wrote: Fri Sep 28, 2018 11:02 pm
jhsa wrote: Mon Mar 26, 2018 2:14 pm
hackerjoe wrote: Mon Mar 26, 2018 1:32 pm
2 more switches hmmm - I don't need them at the moment.
:D Sooner or later.... :mrgreen:

João
You mentioned you can get two more switches?
Can they be 3 position or just 2 position? How do you actually wire them João?
Thanks,
Joe
Hi João,
I saw a post you made back on page 7.
I'll try and figure out how to wire it.
I see I need to connect to pin 7 or 8 on the voice module and use pin 35 or 17 for the other end.
I have to double check to see if I need extra switches for sure.

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 »

See the schematic on the first post. The extra switches/Buttons can be connected between pins D7 and D8 of the arduino and Ground.

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
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

tolisn wrote: Mon Oct 01, 2018 6:23 am while designing a pcb I decided to include the SD card holder on it and not use a separate sd card module.

Will this work with micro SD cards and what size card is required ?
I have used 1GB-2GB micro sd cards without issue in an external module.
This is the external card I went with but they are out of stock at the moment.
https://www.banggood.com/Micro-SD-TF-Ca ... ehouse=USA
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Thanks for the info. I do have a 2GB microSD at hand so I should be good. I'm going for an all included PCB. I hope it turns out OK.
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

Make sure to format it Fat32
I don't think you can format it any other way anyways.
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Is the SD card removed from arduvoice board in order to write new models and voice files or is it written using the arduvoice board?
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

tolisn wrote: Sat Oct 06, 2018 3:46 pm Is the SD card removed from arduvoice board in order to write new models and voice files or is it written using the arduvoice board?
tolisn,
You can load the card itself before inserting it in the card reader and you close the radio up.
After you close the radio up you can over-right the sound file only using the serial adapter.
I have it so I can plug a usb cable in without taking apart the radio or remove the battery cover.
You don't actually see sound files when you hook up to your computer over write them.
You can read and write models using eePe if I'm not mistaken.
Maybe Mike or João will correct me if I'm wrong but pretty sure its correct.
Joe
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 »

Yep, that is also what I do..
But as I said before I do use the SD Card adapter recommended on the first post of this thread. If you don't use this adapter and use a 5V FTDI to program the arduino, you will probably damage the Card. In that case you will need to remove it and also cannot connect to Eepe to download/upload models..

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
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

As I mentioned in my previous post, I will be making a pcb that has all the parts included. The SD card will be connected to the arduino via a logic level converter. When I want to program the arduino I can disable the sd card circuit.
Why will I not be able to connect to Eepe for model upload/download, can you please explain ?
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 »

You would not be able to connect because the arduino works at 5V, and you would have to remove the card. But if you are using the level converters, then my guess is that it should be ok.. Good luck :) I had some trouble with the SD Card when I was working on this project. but it was long time ago and I don't remember exactly what the problem was. I know that the files didn't play..

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
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

I found elsewhere in this thread a version with a test option that mike posted so you can test arduvoice without needing to connect to the radio. The version needs compiling with the test option enabled. Can anyone help out on this and compile it for me? I have no idea how to do it.

here is the link to mikes post.

https://openrcforums.com/forum/viewtopi ... 60#p101742
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 »

Needs compiling? How are you flashing the arduino?

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
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Well, my PCB is not finished yet but I assume that I will be following the Instructions mentioned in the beginning of the thread. Mike has posted ( page 3 of this thread) a source code of arduvoice that you can use to test arduvoice but you need to enable the test feature and then compile it the get the hex file.

I don't know why tapatalk showed that photo in my previous post. I posted a link there to Mike post about the test source code. In my laptop I can see this correctly.
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 »

Ah ok, I think I am confused, sorry.. It was long ago that I messed with this, and I didn't need it again :(
anyway, there are a megasound module that connects to the LCD vias on the motherboard, and there is the Arduvoice that connects via serial.
The megasound runs at 12Mhz while the arduvoice uses an arduino and runs at 16Mhz..
I have no idea how to compile that I am afraid.. Mike mentions a batch file that you should basically just double click on it, and it would compile the .hex file.. I haven't done this in a long time :)

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 »

Funny that Mike says that there is a batch file in the amod/obj folder, but I can't find such folder :(
Perhaps Mike can help if he finds some time.. I am lost, sorry.. :(

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
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

jhsa wrote: Wed Oct 10, 2018 12:05 pm Funny that Mike says that there is a batch file in the amod/obj folder, but I can't find such folder :(
Perhaps Mike can help if he finds some time.. I am lost, sorry.. :(

João
João,

Reinhard wanted to test everything outside the radio maybe that's what tolisn is looking to do.
Run a code to play wav files off the card reader without any radio involved?

Here is a post from like page 3 of this topic:

by ReSt » Sat Sep 26, 2015 11:35 am

I have assembled an ArduVoice module, mostly with used parts, unsoldered from other boards.

So it would be nice if I could test the basic functions of the standalone board before I wire it into the radio.

Is there a test version of the code available, that does e.g. play some wave files from the sd card, switches the backlight on and off and outputs some data over the serial lines that go to the mainboard?

Or is the source code already available so I could try to make such a test version by myself?

Reinhard
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 »

Yes, hence that post from Mike.. I think it allows to test the module without radio..

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
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Yes, that is the post that I'm referring too. Can someone compile it for me as a test version ?
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 »

Normally you install the Arduino IDE to be able to flash Arduinos. This compiles the source code then does the flashing, so for the debug version you just follow the description of how to enable the debug, by changing one line, then use the IDE to flash.

I think I said I use a batch file in the obj folder, and posted what it looks like. It isn't on Github.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Hi Mike, thanks for chiming in. I'm aware of how to flash an arduino using the arduino IDE. If it is that simple then my problem is solved. Thanks a million.
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

How can I load it into the arduino IDE since the IDE only loads files with .ino or .pde extensions?

I tried renaming amod328.c to amod328.ino. It loads into the IDE but I get a lot of compile errors.
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 »

It's over 3 years since I did this so I forgot you need to compile it directly.

Here is a version compiled for serial operation at 16MHz with TESTING enabled that allows use stand alone.
amod_lastSer16d.zip
(26.97 KiB) Downloaded 279 times
You will need to use AvrDude directly to flash 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: RE: Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio

Post by jhsa »


MikeB wrote:It's over 3 years since I did this
Yeah Mike, time passes quite fast these days :)
It's been nearly 9 years of Er9x :)

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
tolisn
Posts: 35
Joined: Sat Nov 08, 2014 9:30 pm
Country: Greece

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

Post by tolisn »

Thanks a million Mike.
So I just burn the bootloader and then the firmware as per the instructions in beginning of the thread and I'm all set ?
After burning the firmware will the unit start talking by itself or do I have to invoke it somehow ?
hackerjoe
Posts: 89
Joined: Fri Dec 08, 2017 1:58 am
Country: United States

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

Post by hackerjoe »

jhsa wrote: Mon Oct 01, 2018 4:17 pm See the schematic on the first post. The extra switches/Buttons can be connected between pins D7 and D8 of the arduino and Ground.

João
João

Since the M64 version has no hardware menu how do you add Ext1 or Ext2 to Aileron or Elevator to make a 3 position switch?

I have added two 3 way switches on both my M128 Radios for aileron and elevator switches, after changing it in the hardware menu.
Also on my M128 radios if I just want to add say one 2 position switch and a 3 position switch how do I tell Ext 1 or Ext 2 for instance to be used for channel 6?

Thanks,
Joe
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 »

Use eepe to configure the hardware.. Download your radio's eeprom onto eepe, at the top double click on "General settings", then click on the Hardware tab. there you can change the settings..
The m64 processor doesn't have much memory, so Mike had to do it this way.. It also works because you only need the hardware menu when you install or change some hardware. Then you don't need it anymore normally..
after you did the changes, "Burn" the eeprom back to the radio.. Take your chance to also save it to your computer :)

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”