Search found 16824 matches
- Sat Oct 27, 2012 11:17 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
I see partly why things are so slow. The code was originally written for an AtTiny861. This only has 512 bytes of RAM which is why everything is done in 256 byte "chunks". With the '328 however, we have a whole 2K of RAM, so things can be improved. For the current code to read the first 25...
- Sat Oct 27, 2012 10:47 pm
- Forum: openTx
- Topic: Stock Board - Voice issues
- Replies: 55
- Views: 28397
Re: Stock Board - Voice issues
If you are having trouble with the "welcome" message, this may be why the volume is wrong.
Mike.
Mike.
- Sat Oct 27, 2012 10:44 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
I actually didn't know what version of er9x I was running for these tests. It's my "spare" stock board not in a radio. I've just flashed it to my latest, and the "metres" problem has gone away. This version is not committed yet, it uses a 16 bit wide voice queue, and may be bette...
- Sat Oct 27, 2012 10:26 pm
- Forum: openTx
- Topic: Stock Board - Voice issues
- Replies: 55
- Views: 28397
Re: Stock Board - Voice issues
Er9x does NOT limit you to 1 decimal place, just has files for "point zero" to "point nine" to save on the delay. Another digit for two decimal places may be put on the end.
Mike.
Mike.
- Sat Oct 27, 2012 8:44 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
Oliver: You have the BUSY signal upside down. The output from the processor should be HIGH when busy. It gets inverted by the transsitor which confuses things. I've inverted it. A second problem is in the play function. It needs to take a 16 bit parameter, not 8 bit, which also means the variable n ...
- Sat Oct 27, 2012 6:43 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
OK, my breadboard is talking as well. It said "metres", should have been "er9x" but never mind. Crystal is 12MHz, reading the SD card OK, turning a backlight on and off OK (just a LED actually), all hooked up to a stock main board. I've just put a speaker straight on the CPU pin,...
- Sat Oct 27, 2012 4:15 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
Tigar: I don't have a solution specifically for these slow modules. I only have the one module and it is OK. This technical discussion is about making a module of our own, thus we would have proper control over the timings. Jhsa: I'm sure any delay can be handled in software. It should be possible t...
- Sat Oct 27, 2012 2:07 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
Great :D I must wire in my SD card and amplifier. There is probably a problem at startup. The clock line may change as the port is initialised, and the a_clock and a_data may not be correct to start with. The code in the '328 may need to have a timeout after seeing an a_clock edge. If it doesn't get...
- Sat Oct 27, 2012 9:42 am
- Forum: erskyTx (was ersky9x)
- Topic: ERSKYTx (was ersky9x) Questions
- Replies: 2347
- Views: 1346782
Re: ERSKY9x Questions
I'm running r122 with the standard switches, LONG UP and LONG DOWN still work. I have a 7-way, rotary encoder installed on a stock board. With this, it is quite sensitive. Sometimes when I press LONG UP, it works like LONG LEFT. I think both the UP and LEFT switches switch together, I have to be qui...
- Sat Oct 27, 2012 9:30 am
- Forum: erskyTx (was ersky9x)
- Topic: ERSKY9X Coding
- Replies: 4540
- Views: 1971505
Re: ERSKY9X Coding
I'll try to simulate this and find the cause of the reboot.
Mike.
Mike.
- Sat Oct 27, 2012 9:26 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
You can try them, they will give a slightly larger negative spike when the input to the transistor goes from high to low. If you have several you could try using 2 of them in series giving 8-11pF, if you can fit them.
Mike.
Mike.
- Fri Oct 26, 2012 11:07 pm
- Forum: Hardware
- Topic: Hov dial switching menus
- Replies: 2
- Views: 2763
Re: Hov dial switching menus
Yes, it is enabled by the POT Scroll option, all three pots work moving left/right, up/down and value change.
Mike.
Mike.
- Fri Oct 26, 2012 11:05 pm
- Forum: erskyTx (was ersky9x)
- Topic: ERSKY9X Coding
- Replies: 4540
- Views: 1971505
Re: ERSKY9X Coding
No, the sound files are too big, they have to be on the SD card. Did your SD card work OK at some point, and now it has failed? I'd like to know what is on the SD CARD STATUS display (LONG LEFT then LEFT), but I'm guessing you are getting a reboot with the card in before you can get to this. The reb...
- Fri Oct 26, 2012 10:15 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
No, just got the transistors, CPU and voltage regulators on so far. Next is to add the backlight to test input operation. Then I'll worry about SD card and amplifier.
Mike.
Mike.
- Fri Oct 26, 2012 9:42 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
I've knocked up a Mega328 on a breadboard to help with testing Oliver's new module. Looking at the output of the transistor generating the clock, it is rather slow. This is caused by the need to use a 100K resistor driving the base. We can't make this resistor smaller in value, or we won't detect th...
- Fri Oct 26, 2012 5:58 pm
- Forum: erskyTx (was ersky9x)
- Topic: ERSKY9X Coding
- Replies: 4540
- Views: 1971505
Re: ERSKY9X Coding
Yes!
- Fri Oct 26, 2012 3:49 pm
- Forum: erskyTx (was ersky9x)
- Topic: ERSKY9X Coding
- Replies: 4540
- Views: 1971505
Re: ERSKY9X Coding
Mass storage was added in r120.
If the USB is connected within the first 2 seconds, it will go to the SAM-BA bootloader, after that, it will be mass storage.
Mike.
If the USB is connected within the first 2 seconds, it will go to the SAM-BA bootloader, after that, it will be mass storage.
Mike.
- Fri Oct 26, 2012 2:27 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
Yes, it appears the BC847 is the SMD version of the BC547, BC848 for BC548, so as I used BC548B, then BC848B (or BC848C), and I would expect the BC847C to work as well.
Mike.
Mike.
- Fri Oct 26, 2012 2:15 pm
- Forum: erskyTx (was ersky9x)
- Topic: ERSKY9X Coding
- Replies: 4540
- Views: 1971505
Re: ERSKY9X Coding
I assume you are trying to use the COPY TRIM option in the limits menu? You are correct, it doesn't seem to be working. However, setting a "trim switch" does do the copy trim operation. Just looked at the code and I can see the minor change I need to do to get this working again. The voice...
- Fri Oct 26, 2012 8:43 am
- Forum: erskyTx (was ersky9x)
- Topic: Co-Processor Inputs
- Replies: 17
- Views: 10282
Re: Co-Processor Inputs
It is quite slow, I formatted a 2Gb card to FAT32 and it took over a minute.
Mike.
Mike.
- Fri Oct 26, 2012 8:42 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
I'll see if I can suggest some transistors. Do you have an oscilloscope, to check what is actually happening? I'm afraid I don't know of a "getting started" document. I got a copy of a command line svn program from: http://www.codelabs.pl/index.php/articles/39-tools/48-svn-installation-on-...
- Fri Oct 26, 2012 8:30 am
- Forum: openTx
- Topic: Gruvin Board and Voice Mod again
- Replies: 42
- Views: 20732
Re: Gruvin Board and Voice Mod again
Yes, this code is completely different.
Mike.
Mike.
- Thu Oct 25, 2012 11:10 pm
- Forum: openTx
- Topic: Gruvin Board and Voice Mod again
- Replies: 42
- Views: 20732
Re: Gruvin Board and Voice Mod again
What revision of firmware are you using. I did a change to er9x, that has now been ported to open9x, that corrected the setup and hold times. The data should change at the same time as the FALLING edge of the clock, and be stable either side of the rising edge.
Mike.
Mike.
- Thu Oct 25, 2012 9:48 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
They may be too slow. Even with no voice files playing, there should be a clock pulse every 10 mS to handle the backlight. The pulse is quite short, less than 1uS, the output of the transistor should go low for the duration of the pulse, then switch back high. It may well be the transistor is not tu...
- Thu Oct 25, 2012 12:42 pm
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
Jhsa: We can't use dividers as one of the signals is from the card to the processor.
Oliver: It probably works at 16MHZ at 3.3V at 25 deg C, but some chips won't work if the temperature gets high or low (e.g. 50 deg or 0 deg).
Mike.
Oliver: It probably works at 16MHZ at 3.3V at 25 deg C, but some chips won't work if the temperature gets high or low (e.g. 50 deg or 0 deg).
Mike.
- Thu Oct 25, 2012 11:54 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
Just reviewing the hardware and noticed we may have a problem with the '328 clock speed. According to the data sheet, the fastest the processor is guaranteed to operate, when running from a 3.3 volt supply is 13.333MHz, not 16 MHz. To run at 16 MHz, the supply voltage must be at least 3.8 volts, whi...
- Thu Oct 25, 2012 10:10 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
You appear to have coded delay_ms in assembler using a byte parameter (r24) but it is called from led_sign_f in mmc.c with a parameter of 1000.
Mike.
Mike.
- Thu Oct 25, 2012 9:54 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
You don't clear _FLAGS,5 if you get a volume command, which is the first command sent from er9x.
The makefile works, I got some warnings as I'm using GCC 4.2.7 with more checks. You do get a .lss file so you can look at that for the assembler produced.
Mike.
The makefile works, I got some warnings as I'm using GCC 4.2.7 with more checks. You do get a .lss file so you can look at that for the assembler produced.
Mike.
- Thu Oct 25, 2012 9:14 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
You are using bit 5 of _FLAGS (GPIOR0) to indicate the last bit of a command has been received. I don't think you clear it anywhere. I think you need a: cbi _FLAGS, 5 just after the: pop ZL With avr-gcc, yuo can generate a .lss file. This is an assembler listing, with the C code as comments, so you ...
- Thu Oct 25, 2012 8:17 am
- Forum: er9x
- Topic: Audio (voice) - Stock 9X PCB
- Replies: 4092
- Views: 1625706
Re: Audio (voice) - Stock 9X PCB
On the Atmel devices, you can only access the first 64 I/O registers with IN and OUT, beyond that, you have to use ld and st. UDR0 one of these. Are you using WINAVR for the compiler/assembler? Most of the time the compiler produces very good code, you don't really need to use assembler very much, i...