Espritmodel.com Telemetry Radio
Reply
Thread Tools
Old Jan 07, 2013, 01:58 PM
Registered User
Joined Dec 2006
1,435 Posts
Quote:
Originally Posted by flightdeck View Post
Thanks for working so hard on this.If possible can you link the hex file for download much like what was done in the Turnigy 9X forum when your satisfied with the outcome ?
sure, i will. i am making good progress on the dev branch. there are a couple more changes and lots of testing:

- build a programming adapter for the v2 board to test it on the actual device.
- build a "mock" plane of 4 servos as the full test bed and maybe some video.

once those are done, i'll merge the dev branch back to the master branch and build 2 images: one for v1 and one for v2 and name them appropriately.

thanks for your patience!
noobee is offline Find More Posts by noobee
Reply With Quote
Sign up now
to remove ads between posts
Old Jan 07, 2013, 02:01 PM
Registered User
Joined Dec 2006
1,435 Posts
these are my pin mappings (with lots of useful info from johnrb):

Code:
 OrangeRx Stabilizer RX3S V2
 PB0  8 AIL_IN            PC0 14/A0 DELTA_SW       PD0 0 AUX_SW (RXD)
 PB1  9 ELE_IN (PWM)      PC1 15/A1 AIL_GAIN       PD1 1 AIL_SW (TXD)
 PB2 10 RUD_IN (PWM)      PC2 16/A2 ELE_GAIN       PD2 2 ELE_SW
 PB3 11 AUX_IN (MOSI/PWM) PC3 17/A3 RUD_GAIN       PD3 3 RUD_SW (PWM)
 PB4 12 VTAIL_SW (MISO)   PC4 18/A4 (SDA)          PD4 4 AILL_OUT
 PB5 13 LED (SCK)         PC5 19/A5 (SCL)          PD5 5 ELE_OUT (PWM)
 PB6 14 (XTAL1)           PC6 (RESET)              PD6 6 RUD_OUT (PWM)
 PB7 15 (XTAL2)                                    PD7 7 AILR_OUT
there are 6 dip switches.

the serial port is exposed, which is nice, but the chip probably does not have a bootloader. in any case, it's running at 3.3v so remember to reconfigure your usb-serial board for 3.3 operation if you want use the serial port..


Quote:
Originally Posted by Cesco View Post
Somebody got a schematic or pin configuration of the V2 already?

Internally there are soldering pads for the programmer connector. There is a DTR, RX, TX, GND connector place, which reminds me of a arduino type serial programming interface.

Edit:
My pin config estimate:

OUT
Ail-L - PD4
Elev - PD5
Rud - PD6
Ail-R - PD7

IN
Ail - PB0
Ele - PB1
Rud - PB2
Aux - PB3

POT
Pitch - ADC6
Yaw - ADC3
Roll - ADC1

Processor runs from 3.3V onboard regulator.
noobee is offline Find More Posts by noobee
Reply With Quote
Old Jan 08, 2013, 12:25 PM
Registered User
Joined Dec 2006
1,435 Posts
an update.

1. i've merged the dev branch back to the master. tested on an RX3S V1 board:
- single aileron mode
- delta mode (leave TX in normal mode, RX3S will do the needed mixing)
- vtail mode (leave TX in normal mode, RX3S will do the needed mixing)
- dual aileron mode
- remote gain via aux channel
- vr pots for correction gain and direction

looking for early testers who have the v1 device and are familiar with programming atmega devices (note 3.3V!). the firmware link is at:

https://github.com/noobee/FlightStab...1_20130108.hex

also, note that flashing is irreversible, you cannot restore the HK firmware after that. my source code is available for anyone to download and build.

i'll prepare a wiring diagram for the v1 device (probably need to clean up the docs too).

2. i also have the v2 code running, but i can't seem to build a programming adapter for the board that is reliable. the one time that i could access the board, it looked like the ISP programmer could access the fuse bits, so it's a sign that HK did not lock out the chip (whew!). so i still need to test the code on an actual v2 device before publishing it..
noobee is offline Find More Posts by noobee
Last edited by noobee; Jan 08, 2013 at 04:26 PM.
Reply With Quote
Old Jan 08, 2013, 02:08 PM
Registered User
matrixFLYER's Avatar
Italy
Joined Nov 2011
362 Posts
Can't be the original firmware be saved for backup?
To flash a firmware I only need an USB avr programmer with 4 to 6 pin from HK that costs 4,99?
matrixFLYER is offline Find More Posts by matrixFLYER
Reply With Quote
Old Jan 08, 2013, 02:56 PM
Registered User
florida
Joined Nov 2002
176 Posts
It may be a little early but how do you get the burner software to get the hex file , it looks for a hex file.The link is to an HTML not to the actual file itself ? When I burned the Turnigy 9x the eepe burner software used a separate hex file.
flightdeck is offline Find More Posts by flightdeck
Last edited by flightdeck; Jan 08, 2013 at 03:41 PM.
Reply With Quote
Old Jan 08, 2013, 04:24 PM
Registered User
Joined Dec 2006
1,435 Posts
we cannot save the original firmware because HK has set the lock bits on the chip, which prevents the programmer from reading the flash.

the only option is to fully erase the flash/eeprom, reset the lock bits, and flash new firmware.

subsequently, because the lock bits are now cleared, we can reflash the chip again (without a full chip erase).

there is a caveat about using a 5v programmer. be careful not to power the vcc line with 5v since the itg3205 gyro chip should not tolerate 5v to it's vcc (shared with the atmel).

i had a picture earlier that shows how you could disconnect the vcc line from the isp programmer and power the board via the rx/esc. however, i have not tried that method before, so i would defer to other opinions if this is recommended. i use (would suggest getting) an isp programmer that is capable of 5v or 3.3v. straightforward into the isp port of the rx3s v1.


Quote:
Originally Posted by matrixFLYER View Post
Can't be the original firmware be saved for backup?
To flash a firmware I only need an USB avr programmer with 4 to 6 pin from HK that costs 4,99?
noobee is offline Find More Posts by noobee
Reply With Quote
Old Jan 08, 2013, 04:26 PM
Registered User
Joined Dec 2006
1,435 Posts
ah, thanks for noticing. this link should lead to the raw file:

https://github.com/noobee/FlightStab...1_20130108.hex

right click and "save link as" into a file..

(i'll update my earlier post).

thanks.

Quote:
Originally Posted by flightdeck View Post
It may be a little early but how do you get the burner software to get the hex file , it looks for a hex file.The link is to an HTML not to the actual file itself ? When I burned the Turnigy 9x the eepe burner software used a separate hex file.
noobee is offline Find More Posts by noobee
Reply With Quote
Old Jan 08, 2013, 05:16 PM
Registered User
Joined Dec 2006
1,435 Posts
RX3S V1 connection diagram

here are the connection diagrams for RX3S V1:

noobee is offline Find More Posts by noobee
Reply With Quote
Old Jan 08, 2013, 06:53 PM
Registered User
United States, NC, Raleigh
Joined Oct 2011
754 Posts
Quote:
Originally Posted by noobee View Post
2. i also have the v2 code running, but i can't seem to build a programming adapter for the board that is reliable. the one time that i could access the board, it looked like the ISP programmer could access the fuse bits, so it's a sign that HK did not lock out the chip (whew!). so i still need to test the code on an actual v2 device before publishing it..
Everything I have tried so far has been a failure as well. I don't really want to solder wires to the pads. I ordered the HK tool that clips onto the processor yesterday and it shipped today. Bad news is that it takes about 3 weeks to get here from China.
JohnRB is offline Find More Posts by JohnRB
Reply With Quote
Old Jan 08, 2013, 09:29 PM
Registered User
Joined Dec 2006
1,435 Posts
i gave up and soldered a connector to the board (and added the serial port header for good measure). now, it's working and is much more convenient for development.

Quote:
Originally Posted by JohnRB View Post
Everything I have tried so far has been a failure as well. I don't really want to solder wires to the pads. I ordered the HK tool that clips onto the processor yesterday and it shipped today. Bad news is that it takes about 3 weeks to get here from China.
noobee is offline Find More Posts by noobee
Last edited by noobee; Jan 08, 2013 at 09:41 PM.
Reply With Quote
Old Jan 08, 2013, 09:46 PM
Registered User
Joined Dec 2006
1,435 Posts
another update.

1. finally got v2 code working on a real v2 board. tested on my 4 servo harness.
- single aileron mode
- delta mode
- vtail mode
- dual aileron mode A (use AILR_IN instead of AUX_IN, so no remote gain, but don't need to solder extra connector).
- dual aileron mode B (solder wire from ELE_SW to use as AILR_IN)

2. also fixed a small bug in the led update code.

3. updated the v1 hex file and added v2 hex file (due to bug fix for 2)

https://github.com/noobee/FlightStab/tree/master/Builds

looking for early testers again (for ground testing only until we are fully confident).

will produce the connection diagram shortly.
noobee is offline Find More Posts by noobee
Reply With Quote
Old Jan 08, 2013, 11:27 PM
Registered User
Joined Dec 2006
1,435 Posts
RX3S V2 connection diagrams

here are the connection diagram for RX3S V2:

noobee is offline Find More Posts by noobee
Reply With Quote
Old Jan 09, 2013, 12:37 AM
wjs
William
United States, MI, Brighton
Joined Oct 2012
1,957 Posts
Quote:
Originally Posted by noobee View Post
here are the connection diagram for RX3S V2:

Side question. What drawing app is that? tia
wjs is offline Find More Posts by wjs
Reply With Quote
Old Jan 09, 2013, 01:35 AM
If it has wings it will fly...
ckleanth's Avatar
United Kingdom, England, Birmingham
Joined Mar 2011
1,112 Posts
excellent. top man will check it when I come back from work.
BTW did u code in the faster servo pulse refresh rate?
ckleanth is offline Find More Posts by ckleanth
Reply With Quote
Old Jan 09, 2013, 02:54 AM
Deviant
sbstnp's Avatar
Joined Jul 2012
1,140 Posts
Quote:
Originally Posted by noobee View Post
looking for early testers again (for ground testing only until we are fully confident).

will produce the connection diagram shortly.
My V2 is still on the way from HK, but as soon as I have it I'll go ahead and help out.

ty
sbstnp is online now Find More Posts by sbstnp
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Sold Flight Stabilization System with Programing Card Woody_99 Aircraft - Electric - Helis (FS/W) 1 Mar 23, 2012 12:50 PM
Sold Flymentor Flight Stabilization with Field Programmer Woody_99 Aircraft - General - Radio Equipment (FS/W) 0 Mar 17, 2012 07:43 AM
Sold Totally Tricked out 400 size with flight stabilization installed, BNF Woody_99 Aircraft - Electric - Helis (FS/W) 2 Mar 12, 2012 06:56 AM
Wanted FY-30A Flight Stabilization System Casey_S FPV Equipment (FS/W) 0 Mar 05, 2012 02:40 PM