HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Mar 11, 2012, 11:08 AM
Registered User
cgriffith's Avatar
United States, FL, Oviedo
Joined Apr 2011
203 Posts
I would like to get this thread refocused on OlliW's work with a question. I know very little of the specs of chips, how to program them, etc. My hang up on this mod, I have a AVR Programmer, but do not want to spend any money on the Arduino JY-MCU USB adapter. I saw plans to build one, but that is serial based and would still need some USB/Serial adapter.

Is there a way to use the same ISP AVR Programmer to flash the firmware AND program the settings?
cgriffith is offline Find More Posts by cgriffith
Reply With Quote
Sign up now
to remove ads between posts
Old Mar 11, 2012, 01:06 PM
OlliW
Joined Sep 2009
1,898 Posts
The parameter values are stored in the uC's EEPROM which you can access by the ISP programmer. Read the EEPROM, change the entries appropriately, write the EEPROM. The mapping of the parameters to the EEPROM you can infer from the .dev file. So, yes, it's possible. In principle. You just have to work it out.
OlliW is offline Find More Posts by OlliW
Reply With Quote
Old Mar 13, 2012, 06:34 PM
OlliW
Joined Sep 2009
1,898 Posts
AvrBurnTool

Hey Folks,
the most "difficult" step in this project is certainly burning the fuses and the bootloader, which needs using the ISP AVR programmer and a (more or less) suitable porgram to run the latter. In order to make this step as simple as possible I wrote a little Windows PC program, which I called AvrBurnTool. With it you still have to open the GA250 case and solder cables to the ISP pads and connect these to your ISP AVR programmer like USBasp, but the process of burning the fuses and the bootloader hopefully is much simplified by AvrBurnTool. Get an impression by the attached figure.
Have fun, Olli

OlliW is offline Find More Posts by OlliW
Reply With Quote
Old Mar 16, 2012, 10:39 PM
Registered User
Australia, SA, Northgate
Joined Sep 2008
15 Posts
Hi OlliW,
what an impressive project! Thanks for sharing.
Do you plan to make AvrBurnTool available for download?

Jan
JanRy is offline Find More Posts by JanRy
Reply With Quote
Old Mar 17, 2012, 03:24 AM
OlliW
Joined Sep 2009
1,898 Posts
oh, yes, of course... (thanks for mentioning)
OlliW is offline Find More Posts by OlliW
Reply With Quote
Old Mar 19, 2012, 11:22 AM
Registered User
USA, NY, Syracuse
Joined May 2005
874 Posts
I can't seem to register at worldpress,

I'm also have problems getting the bootloader to talk but I'm trying to use a bluetooth rs232 converter. I have an ftdi on odrer.
beer-man is offline Find More Posts by beer-man
Last edited by beer-man; Mar 20, 2012 at 01:47 PM.
Reply With Quote
Old Mar 21, 2012, 05:56 AM
Registered User
Joined Jan 2011
23 Posts
Amazing job! Thanks for all this!

Last night I burnt the BootLoader. Tonight I'll upload the firmware and start playing with the values.

Very exciting!

I'm setting it up on an hk250gt...

FYI I can't hard 3D but I can fly flips and rolls and backward circles. I hope I'll be able to contribute a little bit to this awesome project!
robbancs is offline Find More Posts by robbancs
Reply With Quote
Old Mar 21, 2012, 06:11 AM
OlliW
Joined Sep 2009
1,898 Posts
Quote:
I can fly ... backward circles
cool... flips and rolls the gyro does provably handle... but for backwards a convincing prove is lacking
(I did some long tail slides but I can't do them well, need more practicing)(I just started going into practicing backwards, the last year I mainly practiced inverted)(which I still can't do that well ).
OlliW is offline Find More Posts by OlliW
Reply With Quote
Old Mar 21, 2012, 09:48 AM
Registered User
USA, NY, Syracuse
Joined May 2005
874 Posts
How do you download v1.6, I can't register at worldpress I've tried 4 different emails and it doesn't like any of them.

also when I flash the bootloader I get no lights when I power it on. I'm using ponyprog to flash it with and have set the fuse bits using a fuse bit calculator. I can flash cruzado's and it powers up okay.

Any idea on what I'm doing wrong?
beer-man is offline Find More Posts by beer-man
Reply With Quote
Old Mar 21, 2012, 10:20 AM
Registered User
Czech Republic, Olomouc
Joined Sep 2011
126 Posts
Hi Olli,
could you please explain what is the difference between "classic" and "normal" mode of your firmware 16 gyro settings?
Is there possibility to use "fixed wings" mode for RATE and "normal" for HH mode?
How to use ProgrammBox? Connect it to gyro and power on gyro with connected ProgBox in same time?
I have plown Mini Funtana with FW16 in RATE mode and i looks pretty good (turns were solid). It has better feeling than in HH mode.
Today I plan to add roll axis gyro FW16 and it would make the plane even more stable. Will tell you ASAP.
Im going to order parts for making programming box to program parameters on field (now I have to program it at home). But Im not sure how and when it connect to bootloader.
Thanks
ablack is offline Find More Posts by ablack
Reply With Quote
Old Mar 21, 2012, 11:21 AM
OlliW
Joined Sep 2009
1,898 Posts
@beer-man:
as regards your registering problem, I sent you a PM

with only the bootloader programmed into the GA250 no leds will flash. (cruzado uses a different bootloader, don't know if it gives led signals, but if it does, it just means that it is a different bootloader ). You have to also flash the firmware using AVRootloader, see HolgiB's manual.

@ablack:
"normal" is the controller structure I used all the time in this project. "classic" is supposed to mimic the behavior of the commercial gyros, as you once asked me for. "fixed wing" uses the "classic" controller structure but additionally has the feature that if the transmitter gain is close to 50% that the gyro function is switched off.

no

the communication of the GA250 with the programming box can be established in two ways:
(1) The programming box is connected to the servo port before power up. After powering up the connection will be established and you can sett your parameters as long as you want. As soon as you unplug the programming box the gyro continues with its initialization process as it would otherwise do, and will eventually enter normal operation mode.
(2) Once the system had been powered up, the communication with the programming box can be enabled by again pluging the programming box into the servo port and then holding the rudder stick to the left. After about 10 secs the connection will be established, and you can set your parameters as long as you want. As soon as you unplug the programming box the gyro will jump to the initialization process, which will be passed fast however, and reenter normal operation mode. The rudder-left method is convenient since you don't have to power down your heli, which in most cases mean that the head speed won't be different after the programming (if you use a governor).

Please keep in mind: The changes to the parameters via the programming box will be effective immediately. However, they will not be stored permanently, that is, the changes will be lost by switching off the power. If you want the changes to be stored permanently you have to explicitly invoke the "Store" menu option! This is done by switching to yes by pressing the "+" key, and then to hold down the "+" key for at least ca. 1.5 sec until you see the programming box telling you that store is done.

The communication between the GA250 and the programming box is not via the bootloader as it is with the PC program AvrConfig), it uses a home-brewed communication protocol via a half-duplex serial.

EDIT: forgot, thanks for sharing your experience in a fixed wing apllication
OlliW is offline Find More Posts by OlliW
Last edited by OlliW; Mar 21, 2012 at 11:39 AM.
Reply With Quote
Old Mar 21, 2012, 04:00 PM
Registered User
Czech Republic, Olomouc
Joined Sep 2011
126 Posts
Thanks Olli for explanation. Now its clear.
Only one thing, if the programming box is not connected and I hold rudder stick long time (about 10s) gyro wont switch to programming mode? Flat plane slow turns could last quite long time holding rudder stick.
ablack is offline Find More Posts by ablack
Reply With Quote
Old Mar 21, 2012, 04:32 PM
OlliW
Joined Sep 2009
1,898 Posts
good question
actually two conditions must be met in order to enter the programming box mode
1) rudder must continously be hold maximally left for 10 sec
2) the gyro sensor signal must continously be zero for 10 sec
so, only if the plane turns extremly slow for more than 10 secs even with the rudd stick maximally left the programming box mode will be entered
if this can happen, then sorry man, you will crash
OlliW is offline Find More Posts by OlliW
Reply With Quote
Old Mar 21, 2012, 07:03 PM
Registered User
Joined Jan 2011
23 Posts
More problems....

I've been following the idiot's guide but I'm probably too idiot

I've got my FT232 plugged as described but the AVRootloader can't connect. It keeps sending ident but never manages to connect. Any help is appreciated.

This is the output:

21.03.12-23:02:41-700 > Connecting on port COM3...
21.03.12-23:02:41-704 > Timeout.Connect = 50 ms
21.03.12-23:02:41-704 > Timeout.Base = 50 ms
21.03.12-23:02:41-704 > Timeout.Erase = 10 ms
21.03.12-23:02:41-705 > Timeout.Flash = 15 ms
21.03.12-23:02:41-705 > Timeout.Eeprom = 10 ms
21.03.12-23:02:41-705 > Timeout.Buffer = 1 ms
21.03.12-23:02:41-706 > Timeout.AppCmd = 0 ms
21.03.12-23:02:41-706 > Timeout.KeepAlive = 250 ms
21.03.12-23:02:41-706 > Timeout.RTSPulse = 0
21.03.12-23:02:41-706 > Timeout.RTSInterval = 0
21.03.12-23:02:41-707 > Timeout.ConnectTrials = -1
21.03.12-23:02:41-707 > Timeout.MaxPacketSize = 0
21.03.12-23:02:41-707 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:41-905 > received data $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52 3E 1E
21.03.12-23:02:41-905 > Switch to 1-Wire mode
21.03.12-23:02:41-906 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:42-133 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:42-350 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:42-582 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:42-805 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:43-029 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:43-253 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:43-476 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:43-700 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
21.03.12-23:02:43-924 > send ident $00 00 00 00 00 00 00 00 00 0D 42 4F 4F 54 4C 4F 41 44 45 52
robbancs is offline Find More Posts by robbancs
Reply With Quote
Old Mar 21, 2012, 07:20 PM
Registered User
Joined Jan 2011
23 Posts
Ignore my previous post. I've re-flashed the bootloader, and then it managed to connect and upload the firmware.
robbancs is offline Find More Posts by robbancs
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion A Free firmware project for the GA250 Gyro cruzado Mini Helis 344 Apr 29, 2014 05:19 AM
Discussion GA250 gyro issues rangamatchstic Electric Heli Talk 29 Jan 20, 2012 10:33 PM
Sold Assan MEMS GA250 gyro Jonathan Ott Aircraft - Electric - Helis (FS/W) 0 Jan 12, 2012 08:21 AM
Sold assan ga250 mems gyro $15 shipped ohsnap Aircraft - Electric - Helis (FS/W) 2 Oct 27, 2011 10:57 AM
Found ga250 gyro tcb22185 Aircraft - Electric - Helis (FS/W) 1 Sep 21, 2011 07:44 PM