ATmega2561 Upgrade to Turnigy 9X

Where to find parts? Refactoring your entire transmitter, new cases? Sticks etc..
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

I need a little help with setting the fuses on the 2561. At the command prompt running avrdude I am getting a response of: A required privilege is not held by the client. I don't know what to do

Thanks
Mike

OK, figured that out by running as administrator. Now avrdude.exe error: could not find USB divice "USBasp with vid=0x16c0 pid=px5dc. I don't know what that means. Sorry about my ignorance.

mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

Here is the command and its response:

C:\Program Files (x86)\eePe>avrdude.exe -c usbasp -p m2561 -B 500 -u -U lfuse:w:
0xDE:m -U hfuse:w:0xD1:m -U efuse:w:0xFC:m -v

avrdude.exe: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\eePe\avrd
ude.conf"

Using Port : lpt1
Using Programmer : usbasp
Setting bit clk period : 500.0
avrdude.exe: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc

Do I somehow need to tell it to use the usb port?
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: ATmega2561 Upgrade to Turnigy 9X

Post by LTMNO »

Hello

-P For the port.
-c for programmer
-p for the chip

Sorry. On my mobile.
Type avrdude help for commands.
Custom 9x with M64/Telemetry Mod
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

Thanks, with your help I got it to flash!! Now I am trying to get the display to work. I am going to follow Andrew's solution a few posts back.

Mike
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

Andrew was right. The only way I could get the display to work was to manually download the er9x-2561 file, then flash with that. The one downloaded by eepe did not work. Thankyou all for your help

Mike

User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: ATmega2561 Upgrade to Turnigy 9X

Post by LTMNO »

No problem. Sorry it was short response. Like this one :-)
Custom 9x with M64/Telemetry Mod
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: ATmega2561 Upgrade to Turnigy 9X

Post by andrewju »

mmilan, welcome to the 2561 club! :)
I'm glad everything worked well for you!
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

This is such a great upgrade and turns out once one knows what to do and in which order it was very easy. I have the second Tx working. Even though I am a complete rookie, would it be worth documenting the next two Tx conversions with photos and write up a Wiki? Some of the details were hard to find (scattered). You guys brought most of it together in this thread. The fuses and the avrdude were the most confusing for the first timer

Mike
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ATmega2561 Upgrade to Turnigy 9X

Post by MikeB »

Well worth putting in the Wiki.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

I am wondering if the following is intended. Flashed with er9x2561. When I push either the left or right button, all switch, pot, or stick inputs fail to register on screen or pass control commands to the model. Seems like this May be unintended as if in flight this would cause loss of control.
By the way I am working on a Wiki for the 2561 upgrade.
Thank you
Mike
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ATmega2561 Upgrade to Turnigy 9X

Post by MikeB »

This doesn't sound right. If you are on the main screen, seeing the bars, and you pres LEFT or RIGHT LONG, you switch away from that screen, so cannot see the bars to know if they are moving. How can you then tell the sticks are not then registering on the screen?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

This occurred first time with an accidental short press of "left". Fortunately I was not flying. After noticing, I duplicated it on the other two Tx that I moded. So if my clumsy thumbs were to short press the left or right buttons during flight..... A second press of either button restores normal function. Short pressing the up or down buttons results in expected response.
???
Mike
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ATmega2561 Upgrade to Turnigy 9X

Post by MikeB »

Please specify which revision of firmware you are using.

Ahhhh, this is a feature, controls the the aircraft should still be OK though. Above the bars is a "scroll bar", a dotted line with one half solid. If the left half is solid, the display is for channels 1-8, if the right half is solid, the display is for channels 9-16. You use the left and right buttons to switch between them.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
mmilan
Posts: 171
Joined: Fri Mar 23, 2012 12:16 am
Country: United States
Location: Holly, Mi

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mmilan »

Aaaah haaaa, learn something every day, thank you.
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: ATmega2561 Upgrade to Turnigy 9X

Post by LTMNO »

Hi Mike, I am going to order the m2561 for 2 of my other radios and just wanted to make sure I have the right one....
If you could help that would be greatly appreciated... or if anyone else knows the answer. Thanks.

8 or 16 MHz (Speed)
1.8~5.5v or 4.5~5.5V (Voltage Supply)
Custom 9x with M64/Telemetry Mod
User avatar
mbanzi
Posts: 223
Joined: Thu May 24, 2012 5:53 am
Country: -
Location: San Diego, CA

Re: ATmega2561 Upgrade to Turnigy 9X

Post by mbanzi »

You want the ATMEGA2561-16AU, i.e. 16MHz & 4.5-5.5V. Or that's what I used at least...

http://openrcforums.com/forum/viewtopic ... 260#p47074
LTMNO wrote:Hi Mike, I am going to order the m2561 for 2 of my other radios and just wanted to make sure I have the right one....
If you could help that would be greatly appreciated... or if anyone else knows the answer. Thanks.

8 or 16 MHz (Speed)
1.8~5.5v or 4.5~5.5V (Voltage Supply)
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: ATmega2561 Upgrade to Turnigy 9X

Post by LTMNO »

Thanks, I should have seen this as i did comment on that thread once too.. ;-)
So many threads, such limited time to search them all.

Cheers.
Custom 9x with M64/Telemetry Mod
karambolis8
Posts: 12
Joined: Fri Dec 14, 2018 6:39 am
Country: Poland
Contact:

Re: ATmega2561 Upgrade to Turnigy 9X

Post by karambolis8 »

Hello. I'm sorry for digging so deep ;) I'm wondering about CPU upgrade and it's not clear to me if M64 -> ATmega2561 is one to one replacement or require any main board modifications?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ATmega2561 Upgrade to Turnigy 9X

Post by jhsa »

You can replace the m64 with the m2561 without any modifications. They are pin compatible. But while you are doing it, why not do also the telemetry mod?? :)

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
karambolis8
Posts: 12
Joined: Fri Dec 14, 2018 6:39 am
Country: Poland
Contact:

Re: ATmega2561 Upgrade to Turnigy 9X

Post by karambolis8 »

Thanks :) I don't have telemetry-supproting module yet. In other topic someone told me that stock AFHDS 2A module doesn't have it. I have to wait for funds to buy FrSky. Btw which FrSky system would You suggest? DJT or XJT?

What improvement 2561 gives over M128? I know that it have more RAM memory, but what does it mean practically?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ATmega2561 Upgrade to Turnigy 9X

Post by jhsa »

karambolis8 wrote: Sat Dec 15, 2018 9:23 pm Btw which FrSky system would You suggest? DJT or XJT?
Well, I use mostly the DJT and DHT modules which are D8 protocol
I also use the multiprotocol module and some DIY Frsky D8 compatible receivers that I built, based on a project found on RCGroups..
The "X" Protocol (XJT) is more modern and it allows for some extra more complicated telemetry and sensor combination.
I personally like more the performance of the D8 stuff, so, if you don't require complicated telemetry configurations, the DJT will serve you well. Not sure if it is still legal to buy it in Europe :(
What improvement 2561 gives over M128? I know that it have more RAM memory, but what does it mean practically?
It has the double of the m128's RAM actually, meaning that can do more operations at the same time.
I believe it has also an extra pin that we can use for 1 more extra switch :)

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
bob195558
Posts: 2376
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: ATmega2561 Upgrade to Turnigy 9X

Post by bob195558 »

See here for some info about the m2561 upgrade: (https://openrcforums.com/forum/viewtopi ... 120#p74105).
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).

Post Reply

Return to “Hardware Mods”