Page 6 of 20
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Dec 02, 2016 9:04 am
by jhsa
What audio amp are you using?
You don't seem to be using the filtering circuitry between the atmega and the audio amp. Please take a good photo from the atmega board. I have the feeling you are not following the original schematic at all.
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Dec 02, 2016 9:34 am
by Hoangluu
Dear Joao,
Sorry for inconvenience.
Audio amp PCB all same as schematic, it is work (speaker bip when power on). The filtering circuitry between the atmega and the audio amp are SMD part solder on bottom size of PCB.
I flashed the module with the serial adapter by connect 3 wire (TX, RX, Gnd) from USB UART to Arduino Pro Mini and flashed successful (Pls see attached picture). This serial adapter I used to flash openXsensor PCB as well.
I have tried flash the combined firmware by ISP programmer as on the first post "combinedSerial.hex" but the result same as when I flashed "Bootloader_optiboot_atmega328_16.hex" by ISP programmer and then flash "Firmware_amod_lastSer16.hex" by serial programmer.
My Your SD Card reader add LC filter on 5V line as i read on this thread. This SD Card reader work well (I have tested with Arduino nano PCB).
Thank you for your help.
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Dec 02, 2016 10:04 am
by jhsa
Are you using the LM386 audio amp? It does not look like it on your picture.
Again, please post a picture of your atmega board. I would like to see what you have in there..
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Dec 02, 2016 10:42 pm
by Hoangluu
Dear Joao,
I used LM3886 straight line pin for audio amplifier.
I will post all pcb pictures next week because I left them at my company.
Thank you, have a nice weekend.
Lưu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Dec 02, 2016 10:43 pm
by Hoangluu
Sorry LM386, not LM3886
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Dec 06, 2016 3:35 am
by Hoangluu
Dear Joao,
I upload PCB pictures for more information.
Please have a look.
Thank you.
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Mon Dec 12, 2016 7:54 am
by Hoangluu
Dear Joao,
Some update...
The sound module only work after power on the Tx and press reset SW on Arduino Pro Mini many times. But SD card not work as well.
If i touch on R4 on Micro SD card adapter, it work.
Do you have any idea.
Thank you,
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Mon Dec 12, 2016 11:03 am
by jhsa
Defective SD Card adapter? Difficult to say..
I would try another one anyway as that one seems to have been modded already.
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Dec 13, 2016 5:39 am
by Hoangluu
Dear Joao,
I have changed to another brand of micro SD card and it work now but still have to press reset on Arduino Pro Mini.
Thanks,
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Dec 13, 2016 9:07 am
by jhsa
I have no idea why is doing that
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Dec 13, 2016 9:45 am
by Hoangluu
Dear Joao,
I think communication between ATmega328 and ATmega128 at power on is not good. Now I connected reset SW to outside, power Tx on and press that SW 2 or 3 times and everything work well.
Thank you for your help.
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Dec 13, 2016 10:13 am
by jhsa
I don't remember seeing that happening when I did it. I know I had problems with an arduino nano, but not with the pro-mini..
Maybe Mike has an idea why you need to reset the arduino.
Did you remove the resistors on pins 27 and 28 of the radio processor? I did remove mine, and as far as I remember it did solve some problem, I just can't remember which problem..
Maybe you should try that..
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 12:40 am
by Hoangluu
Dear Joao,
I removed these resistor already.
Thanks.
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 1:03 am
by jhsa
You have the diode between pin28 and the arduino, right??
Check that the anode is on the arduino side, and the cathode connects to pin28 of the processor..
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 1:07 am
by Hoangluu
Dear Joao,
I solder diode between Pin28 and arduino board already, polarity is correct.
Thank you,
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 1:14 am
by jhsa
Hmm, I don't know, I'm just guessing here. Do you have the bootloader installed?
I'm out of ideas. It is difficult when you don't have the hardware in front of you..
João
Edit: do the trims and the backlight work before you have to press the reset button?
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 1:36 am
by Hoangluu
Dear Joao,
I have tied two way:
1. Flash bootloader by ISP first and flash firmware by serial.
2. Flash combined (firmware and bootloader) by ISP.
Both have same result.
Trims and the backlight work after I press press the reset button.
Thank you so much for your help.
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 1:42 am
by jhsa
And the voice also?
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Dec 14, 2016 4:29 am
by Hoangluu
Dear Joao,
The voice also work after press reset button.
Serial connect to PC only work after press reset button (TX in bootloader mode).
Thank you,
Luu
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Jan 10, 2017 9:24 pm
by rcfish
hello,
I want to build my own arduvoice. But I dont understand one thing. How is the throttle trim exactly wired after the modification?
And can you only put models from pc to tx and from tx to pc or could you flash the tx with the serial port (this would be really cool).
Big thanks to you guys, João and Mike
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Jan 10, 2017 10:51 pm
by jhsa
rcfish wrote:hello,
I want to build my own arduvoice. But I dont understand one thing. How is the throttle trim exactly wired after the modification?
The 2 switches from the throttle trim connect to pins 2 and 3 of the arduino. Before they connected to pins 27 and 28 of the atmega 64. But these pins are needed for the serial communication between the module and the radio, so the trim was moved to the arduino.
And can you only put models from pc to tx and from tx to pc or could you flash the tx with the serial port (this would be really cool).
It has been a looonnng time since I've played with this.. I only have one radio with this installed, and it was a long time ago, so I don't remember much about it
But I remember flashing the radio's firmware with a FTDI adapter. But I don't think this was related to the sound module. It is a different connection and I think not all the radio boards have the bootloader. I don't think the M64 has the bootloader, so flashing with the FTDI wouldn't be possible in this case.. Mike could probably confirm this..
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Tue Jan 10, 2017 10:59 pm
by MikeB
Do you have a '128 processor? If so, then the .hex file (er9x-128.hex) includes a bootloader that gets flashed to the top of the flash space. This uses the telemetry serial connections at 115200 baud and should work without needing the arduvoice module.
Mike.
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Jan 11, 2017 12:17 am
by jhsa
Mike, is the bootloader also on the m2561?
Thanks
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Jan 11, 2017 9:07 am
by MikeB
Not at present!
Mike.
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Wed Jan 11, 2017 9:24 am
by jhsa
Ok, thanks.
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Jan 27, 2017 1:27 pm
by rcfish
Hello.
I have installed the frsky telemetry mod and I want to install arduvoice now.
do i have to flash er9x-128-frsky.hex or er9x-128.hex?
and can i just use the normal arduino bootloader?
and con you flash the .hex files from arduino ide?
er9x-128.hex is including a bootloader for serial programming (with ftdi not with usbasp) (if this is right). What pins on the processor are the one you use for this? 27 and 28?
thx for the help
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Fri Jan 27, 2017 4:34 pm
by jhsa
rcfish wrote:Hello.
I have installed the frsky telemetry mod and I want to install arduvoice now.
do i have to flash er9x-128-frsky.hex or er9x-128.hex?
where are you getting those files from? er9x-128-frsky.hex doesn't exist anymore. Please get the firmware files from
www.er9x.com
Then after installing the er9x-128.hex, go to the hardware menu and turn ON the option "Frsky Mod Done"
To enable the hardware menu (it is protected) turn the radio on while holding the left horizontal trim to the left. >Release the trim after a second or two. Now the hardware menu can be accessed.
and can i just use the normal arduino bootloader?
and con you flash the .hex files from arduino ide?
Mike can answer this better than me. It has been a while since I done this
er9x-128.hex is including a bootloader for serial programming (with ftdi not with usbasp) (if this is right). What pins on the processor are the one you use for this? 27 and 28?
None of them.. those are used only for communication between the voice module and the Atmega128.
To flash the m128 using an FTDI adapter and the bootloader you connect to pins 2 and 3 (MOSI and MISO).
João
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Sat Jan 28, 2017 8:06 am
by rcfish
Ok, thank you. I hope Mike can answer me the other questions
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Sat Jan 28, 2017 11:02 am
by MikeB
rcfish wrote:and can i just use the normal arduino bootloader?
and con you flash the .hex files from arduino ide?
Do you mean flash an Arduino bootloader to the '128 or use Arduino as the programmer type?
If the Arduino IDE can select a .hex file and flash it, without compiling first, then you may flash it that way. You may also use eepe as the "front end" to do the flashing.
Mike.
Re: ArduVoice-9x Voice Module with Arduino for the 9x Radio
Posted: Sat Jan 28, 2017 1:04 pm
by rcfish
i mesn the arduino pro mini already have the arduino bootloader. So do i need the custom optiboot bootloader?