er9x development
Re: er9x development
"Buried" is the right word
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
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
Re: er9x development
Mike, what about brigthness control (PWM) of the backlight? in radios with the megasound voice module, the pwm would have to be generated by the voice module itself I guess..
João
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
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
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Yes, a couple of software options needed depending on Megasound board or not. The Megasound board might have trouble in driving the PWM out, the signal will need to be software driven PWM, and then some way is needed to send the required brightness to the board. Pin 17 of the processor (PB7) is quite easy as I think timer 2 is available to drive hardware PWM out directly.
Because of these several different requirements I haven't bothered with it though I have thought about it!
Mike.
Because of these several different requirements I haven't bothered with it though I have thought about it!
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
can't you use the LCD lines to send the info to the sound module? I mean, the same way as the volume.. the info doesn't need to be continuously sent, right?
Are all the timers on the m328 being used? different pin? doesn't have timers?
Different pin could maybe be an easy fix? I don't know what the hell I'm talking about?
João
Are all the timers on the m328 being used? different pin? doesn't have timers?
Different pin could maybe be an easy fix? I don't know what the hell I'm talking about?
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
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
Re: er9x development
That's why we keep João the bug hunter here.MikeB wrote:I can reproduce the problem, and I think I have a fix for it. Quite a "buried" bug to find!
Mike.
Ted
Re: er9x development
yeah, I could smell it from a distance.. auf, auf, auf..!!!
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
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
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
There is also the Emartee version of voice. It won't understand a "Brightness" command.
I'm a bit busy with other things at the moment, I hope to have them sorted in the next few days.
What actualy takes up quite a lot of flash is the menu option to allow setting of the brightness, together with somewhere in the EEPROM to store it.
Mike.
I'm a bit busy with other things at the moment, I hope to have them sorted in the next few days.
What actualy takes up quite a lot of flash is the menu option to allow setting of the brightness, together with somewhere in the EEPROM to store it.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
the emartee board could probably do it with some external circuitry?
Still many people using it anyway?? Just checking
João
Still many people using it anyway?? Just checking
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
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
Re: er9x development
I have one radio with emartee module and one with a 328voice module
But I don't need a brightness control of the backlight.
Reinhard
But I don't need a brightness control of the backlight.
Reinhard
Re: er9x development
Required for brightness control? I do not think (unnecessary increase in code).
http://rc.emiter.hu/ (MegaSound 9X, GCL-2, FrSky-RSSI-DAC, etc.) Keress fel!
Re: er9x development
well the m128 and skyboard have plenty of space so why not? .it's cool. I do agree that there are other features with more priority though.
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
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
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Ersky9x already includes backlight brighness.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
ok, then that leaves the 128
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
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
Re: er9x development
If I may ask, why the m128? If people are going through the trouble of replacing the processor, why not a pin-compatable part with more RAM like the m1281?
Re: er9x development
There's the mega2561 that has beta support as well in openTx, but as the new parts are about 4x the price of an m128 there has been little interest... I think we only have 2 people who have one.
Re: er9x development
Yeah, that's the thing. The m1281-16AU is $9.22 on mouser, while the m128-16AU is $12.10. More RAM, 3 bucks cheaper... What's not to like?
Re: er9x development
Sorry to ask the question...Kilrah wrote:There's the mega2561 that has beta support as well in openTx, but as the new parts are about 4x the price of an m128 there has been little interest... I think we only have 2 people who have one.
but... I can put the Meg2561 in place of the M128 and all is good... with 4x the Ram? and is useable from OpenTx and ER9x(future)
If so, I have a dead APM board that has the M2561 on it. I can take that off and give it a go.
I am just a little weary to go through all the trouble for more ram just for models... are/is there better functionality that is being built for this memory increases?
If so, then we are talking. But if its just for models, then I only have 2 and not really going to be flying much more.
Thanks...
Custom 9x with M64/Telemetry Mod
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Iksbob: Check the price for a 128A, the 128 is dated and is replaced by the 128A.
The 128/128A are software compatible, the 1281/2561 need some changes due to internal hardware differencies. I do have a 2561 chip, but my biggest problem is having enough Tx's to be able to test all the different versions, 64, 128, 2561, SKY etc.
I've got 1 spare main board, so I might just swap the processor on it to the 2561.
Just checking the datasheets, the 1281 and 2561 have the same amount of EEPROM and RAM, just the flash size is different.
64 64K flash, 2K EEPROM, 4K RAM
128/128A 128K flash, 4K EEPROM, 4K RAM
1281 128K flash, 4K EEPROM, 8K RAM
2561 256K flash, 4K EEPROM, 8K RAM
Mike.
The 128/128A are software compatible, the 1281/2561 need some changes due to internal hardware differencies. I do have a 2561 chip, but my biggest problem is having enough Tx's to be able to test all the different versions, 64, 128, 2561, SKY etc.
I've got 1 spare main board, so I might just swap the processor on it to the 2561.
Just checking the datasheets, the 1281 and 2561 have the same amount of EEPROM and RAM, just the flash size is different.
64 64K flash, 2K EEPROM, 4K RAM
128/128A 128K flash, 4K EEPROM, 4K RAM
1281 128K flash, 4K EEPROM, 8K RAM
2561 256K flash, 4K EEPROM, 8K RAM
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
Mind you, there's 3 forms of memory on these chips: Flash, EEPROM, and SRAM.LTMNO wrote:But if its just for models, then I only have 2 and not really going to be flying much more.
Flash is where the program "firmware" is stored... More flash means more code can be stored on the chip. Flash provides lots of storage space and is non-volatile (removing power does not erase it), however it has a limited number of read/write cycles, so it is not generally used for storing information that gets changed by the software.
EEPROM (electronically erasable programmable read only memory) is where models and global transmitter settings (calibration and such) are stored. EEPROM is also non-volitile and is rated for a much higher number of read/write cycles, however it is a more expensive technology in terms of bytes-per-dollar than flash, meaning there's less of it on the chip.
SRAM (static random access memory) is volatile (information is lost when power is removed) space used by the CPU during program operation to store constantly-changing variables such as the positions of the sticks, the value of an output channel at a given moment and what information should be put on the LCD. Unlike flash and EEPROM, RAM has a virtually limitless number of read/write cycles and can be read/written faster.
I was not aware of that. Yes, the 128A is only $0.01 more expensive than the 1281. While that covers the price issue, the 1281 is still appears to be a superior chip as far as specs are concerned.MikeB wrote:Iksbob: Check the price for a 128A, the 128 is dated and is replaced by the 128A.
128K of flash should be enough for anyone!MikeB wrote:Just checking the datasheets, the 1281 and 2561 have the same amount of EEPROM and RAM, just the flash size is different.
The 2561 is $17.79 BTW. Twice the flash for twice the price... sounds like a deal to me. :p
Re: er9x development
i would/will go for the 2561. And already has support from one of the fw and soon from the other too it seems. Just waiting. For winter now it is time to fly.
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
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
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
I've now got a compile option for the '2561. I've fixed all the name changes in the code and it compiles. I now need to check the setup of the timers as the '2561 has some extra registers that need to be set.
I may be able to test this. I have the Ateml STK500 dev kit, with the STK501 top board that hase a socket for a 64-pin chip. I actually have a '128 in it that runs a version of er9x. I should be able to put a '2561 in to test. I just need to compile with a special LCD driver that handles a different LCD that runs from 5V but needs two chip select lines. Mechanically this LCD won't fit in the 9X, but is fine for bench testing.
The '2561 has an extra I/O line available on pin 1. Pin 1 on the '64 and '128 is a parallel programming enable pin, on the '2561 it is an I/O pin.
(It's raining here so I can't go flying!)
Mike.
I may be able to test this. I have the Ateml STK500 dev kit, with the STK501 top board that hase a socket for a 64-pin chip. I actually have a '128 in it that runs a version of er9x. I should be able to put a '2561 in to test. I just need to compile with a special LCD driver that handles a different LCD that runs from 5V but needs two chip select lines. Mechanically this LCD won't fit in the 9X, but is fine for bench testing.
The '2561 has an extra I/O line available on pin 1. Pin 1 on the '64 and '128 is a parallel programming enable pin, on the '2561 it is an I/O pin.
(It's raining here so I can't go flying!)
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
Thank goodness for Rain in the UK. There might be hope for my 2561 chip after all...
Good stuff Mike!
Good stuff Mike!
Custom 9x with M64/Telemetry Mod
Re: er9x development
Pino, You're terrible
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
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
Re: er9x development
what, we are all thinking it... .
Selfish we are....
Selfish we are....
Custom 9x with M64/Telemetry Mod
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Anybody with a 2561 on their board might like to try:
I built a version with a modified LCD driver and tested it on my STK500/501 combo. It seemed to work, so this is a version with the standard LCD driver. I can't test it (yet).
Mike.
I built a version with a modified LCD driver and tested it on my STK500/501 combo. It seemed to work, so this is a version with the standard LCD driver. I can't test it (yet).
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
well, I start wondering if I should wait for winter
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
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
Re: er9x development
I uploaded er9x to my 2561 radio, but LCD does not work. Bigger problem is the LCD does not work also with openTX now.
It seems I am in the same situation mbanzi was. Radio works, but no picture.
It seems I am in the same situation mbanzi was. Radio works, but no picture.
Re: er9x development
may sound stupid, but check the contrast?
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
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
Re: er9x development
Yes. I tried to, I am sure I found correct line with contrast settings, but It does not help. I erased/flash the chip several times, set the fuses to erase EEPROM, tried my old hex_dump backup, tried to write EEPROM.
Nothing helped. Finally I ended up with bricked 2561, because I messed some FUSES.
Nothing helped. Finally I ended up with bricked 2561, because I messed some FUSES.
Re: er9x development
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
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