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.
don9f
Posts: 46
Joined: Fri Nov 02, 2012 10:47 pm
Country: -
Location: Staffordshire Moorlands UK

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

Post by don9f »

Hi, sorry little granddaughter turned up so I couldn't try your last suggestion until just now....all downloaded/installed ok.
Cheers for that :D
Don

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 »

great :)

Have fun :) ;)

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
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

hi there,
firstly thank you mikeb and jhsa for all your wonderful developments,
i have read all the posts on this thread and have ordered all the parts etc,
i understand how to build the boards etc and im familiar with flashing arduino etc,
the only thing i cant understand is on your diagram showing all the connections from the boards you have 2 connections on the amp board showing backlight + and backlight - and 1 connection on the amp board showing backlight signal,i dont know where these come from or is there another mod i have to do to get these connections,my radio (flysky 9x) has the backlight mod in it at moment,
would really appreciate any help i can get,
many thanks
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 arduvoice board will control the backlioght, I mean, er9x will control the backlight through the arduvoice board..

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
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

thanks jhsa,
am i understanding this right,
i remove existing backlight module connector cut the + and - wires connect them to backlight + and - on the module and then connect backlight signal to pin 17 on the processor, thats it no need for a transistor as ive seen on other mods,
cheers and thanks for help

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 »

No, you don't connect any signal to pin 17 of the processor :) Where did you see that on my diagrams?? :p :D
You just connect the backlight to the Arduvoice board as you described above.. the module will control it.. So, the radio sends the backlight ON/OFF command to the voice 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
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

sorry i didnt explain i was confused about the backlight wiring so i searched for mod online and i found an item about mod to backlight thats where i saw the info,
right i think ive got it now i missed connections for signal on both boards,
many thanks for the help, keep up the excellent work
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

well been trying to get this to work for a good few days, now im on the verge of giving up and binning it,
ive checked all the soldering, components, connections and everything at least 4 times,
ive loaded the sd card with voice files,flashed the arduino with the combined firmware (succesfully),
tested the connections on the bench when connected red light on arduino comes on and theres a slight whistle from the speaker,and current coming out to backlight ,
installed into 9x, cut backlight connections connected them to amp board,connected battery voltage from tantalum capacitor and ground for the board,
ive made stripboard connectors so is easier to return to stock when it doesnt work,connected throttle trim wires to board connected wire from pin 27 and 28, only thing i havnt connected is the beeper because im not sure where it goes,but i dont think this will affect the sound module,
am i naive in thinking it should speak when powered up or have i missed something important,
really need a step by step guide as to how to configure it when its in 9x,megasound is active in radio settings but when i turn radio on with trims in centre the message stopped comes up and cant get into hardware menu,
all help appreciated,
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 »

If you program a switch to turn the backlight ON or OFF, does this work??

You need to enter the hardware menu and check the option "M'sound Serial"
To enable the hardware menu turn the radio ON while holding the left horizontal trim to the left for about 2 seconds.

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
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

hi ive managed to get hardware menu but it only shows bandgap (ticked) and telemetrez>=r90,cant find anything else,
cheers
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

tx is running er9x ver v1.743-mike
date 30/11/2016
svn er9x-r820
mod frsky nt
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 go here and download version 821

http://www.er9x.com/

What chip do you have on your radio? the atmega128 or the Atmega64A?

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

Post by MikeB »

If you have the M64, you need "er9x for M64-FrSky with serial voice".

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

my radio chip is the m64,
just flashed radio twice with m64 frsky with serial voice and both times i checked version and only thing that has changed is v1.43 has changed to v1.44 and the version is still er9x-r820,no change in hardware menu,

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

The hardware menu won't change, the version you have flashed is hard coded to use the serial voice function, the M64 doesn't have enough flash/RAM to include both types of voice code and the menu option.

There are several things we can try to test what is (and isn't) working.
First, does the backlight turn on and off?
This will check the serial connections between the M64 and the voice module.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

.hi mike firstly thanks for the help,i know your a busy man,
well after flashing as requested checked all connections etc and connected to radio, switched on the backlight came on and stays on a feint whistle from the speaker, throttle trims dont work so i switched it off got out multimeter and checked all the connections inside, connections from chip to amp board all good trim switches all good ,so switched off and reflashed with the combined firmware all flashed successfully,switched radio on and exactly the same no joy,
i need a plan b lol,
cheers eddie
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 »

Can you compile the firmware for the voice module yourself? There are some test options in it that make it play a voice file automatically.

Do you have a FTDI type device you could connect to the voice module rather than connecting to the radio?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

well replaced arduino board with new one reflashed with combined connected it all up and still the same except im now getting throttle switch warning and it wont go off, very perplexed,
ive added pictures of boards and connections if anyone can spot a mistake,
Attachments
20170509_142742.jpg
20170509_131647.jpg
20170509_131630.jpg
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

other pics cant upload one of the radio connections dont know why,
this is definately in the last chance saloon i dont normally give up on things but this has my head in a spin,
eddie as you can see ive uploaded same pic
Attachments
20170509_131647.jpg
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

yes mike i have a ftdi connector, i dont understand why the throttle switch warning is coming on, removed connections and switch warning has gone,
im sorry i cant compile code im a 63 year old trying my best,
eddie
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'll assume you have eepe installed on your PC.
Connect your FTDI to the PC and the voice module (5V and GND, then TX on the FTDI to RX on the module and RX on the FTDI to TX on the module).
Run eepe, select the BURN menu, then "Serial SD". Enter the COM port of your FTDI, then try clicking on the "List Models" button at the bottom. Let me know what appears in the lower window.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

all that appears is
`monitor` mike
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 »

How did you flash the Arduino, and what file did you flash?

I'll see if I can build some test firmware for you to try. I may be a little while as I'm still getting everything re-installed on a new PC after the one I had been using for 7 years chose to die last Friday. All data was safely backed up, and the hard drive is OK so it's just a matter of putting everything back together.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

cheers mike,
sorry about your pc allways happens at the worst time,
i flashed the arduino using this combined firmware i found earlier in thread because i didnt want to do it when it was in radio in case of problems (lol),
using eepe and usbasp it came back as avrude successful,so i assumed it was ok,but im starting to think it hasnt flashed it,
Attachments
CombinedSerial.zip
(27.57 KiB) Downloaded 144 times
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 »

Try reading the flash memory back out. Use the "Read Firmware from Tx" button, with the Burn configuration set to a M328P. You should get a .hex file.
Put this in a .zip and post it for me to look at.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

did as you asked i flashed it again with the combined firmware just to check the connections were good then read firmware from tx option and i have got a .bin file,ive attached it for you mike,
cheers
Attachments
firmware2.rar
(15.19 KiB) Downloaded 134 times
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 »

Try flashing this test firmware and see if anything is spoken.
amod_lastSer16test.zip
10-May-2017 10:19
Firmware with test mode enabled
(27.02 KiB) Downloaded 161 times
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

well flashed with your firmware, connected everything back up, extracted voice files to the root of the sd card,
powered from 12v battery the arduino lights up and the red light flashes approx every 10 seconds,still nothing apart from feint whistle from speaker,
was not sure what format sd card should be so i tried fat and fat 32 still nothing,
cheers eddie
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 »

Check you have a .wav file 0040.wav, this is the one the test code tries to play.
Do you have the backlight connected? If so, this should flash on or off every 10 seconds.
Do you have a terminal program on your PC? If so, connect up the FTDI, connect to it from the terminal program (38400 baud) and see if you receive any characters from the board.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mackem54
Posts: 63
Joined: Sat Apr 22, 2017 9:18 pm
Country: United Kingdom
Location: south shields

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

Post by mackem54 »

cheers mike,i connected a led to the backlight connections to see if it was outputting as you said it should and somehow the voltage regulator became red hot ,polarity was correct,
what ive decided to do is reorder all the parts and build another arduino board and amp board,and try it from there,
if i order the parts tonight i will have them for friday hopefully then i will be back on the forum thanks again for your help in the meantime

Post Reply

Return to “er9x”