|Oct 13, 2009, 12:55 PM|
Joined Jun 2005
Cesco, .HEX end .EPP from sat_hk.asm please?
Is it possible to give .hex and .eep files for 4 channel decoder from the satellite HobbyKing receiver.
I compiled the latest source with some older version of AVR Studio without errors , but flashed program not working. Fusses - 8 MHz internal oscillator.
Mega8 of pins:
Pin 14 - 17 (PB2-PB5) - 1-4 channel
Pin 32 (Int0/PD2) - input from the satellite
Pin 28 (PC5) - bind
pin 29 (Reset) - resistor 10k to "+"
Thanks in advance!
PS. Sorry for my bad English.
|Oct 13, 2009, 01:39 PM|
Joined Dec 2007
That is most probably a timing issue.
Try different N parameters. Every internal rc-osc is different and the calibration "osccal" in the source is for MY atmega8, yours will be different.
Yesterday i made the code run on a atmega163 with 8mhz crystal and i had to change this:
.equ N = 24 ; 24 us
.equ t_reload = (256-N)+1
.equ t_reload_first = (256-(N+N/2))+4 ; 0=37 1=35.88 2=34.50
.equ t_reload_send = (256-(N+N/2))+5 ; 0=37 1=35.88 2=34.50
; transmit stuff, byte must be in u_buffer_l
ldi flags0,(1<<BUSY)|(1<<TD) ;Set only busy- and transmit flag
out GIMSK,temp1 ;Disable external interrupt
ser u_bit_cnt ;Erase bit-counter (set all bits)
ldi temp1,1<<TOIE0 ;Set bit 1 in u_tmp
out TIFR,temp1 ; to clear T/C0 overflow flag
out TIMSK,temp1 ; and enable T/C0 overflow interrupt
ldi u_reload,t_reload ;Set reload-value
ldi temp1,t_reload_send ;Set timer delay to first bit
out TCNT0,temp1 ;Set timer reload-value (1 bit)
cbi serial_out ;Clear output (start-bit)
sbrc flags0,TD ;Wait until data is sent
to work correcty.
You better have sone assembler knowedge and a 2-ray scope to adjust timing.
|Oct 14, 2009, 12:49 PM|
Joined Jun 2005
By your recommendations i`m replace setting "osccal" to that of 8MHts my Mega8 in:
;----- fla ------------------------------------------- ----------------------
; Init after reset
ldi temp1, 0xa2; 0xaf; 0xab orig
out OSCCAL, temp1 "
". equ N = 24; 24 us "
Now the channels are working, but:
1.Channel4 affect to Channel3.
2.Channel3 disappears after a few seconds.
3.Happens to be spontaneous restarts.
Obviously needed playing with timings.
|Oct 14, 2009, 04:47 PM|
Question about programming with T6config.
I have an HK version of the 6ch 2.4G set and about 6 recievers. I have not been able to program elevons. I'm currently using an external mixer to get the mix on elevator and rudder but would like to use internal mixing.
I have read the first 35 pages of this thread but it seems most of you are interested in electronic mods of the equipment and writing programs for PDAs and PPCs. Not really my thing. I just wanna fly. Is there a post or thread on the finer art of getting all you can get out of the programming for this rig? I read on HK's site that you have to use the Heli mode to do the correct mix and then switch to Plane mode to use it?????
I downloaded Keepitsimple's Turborix.exe file but the Environment file is 48M and my slow-ass server makes downloading a file that big very time consuming and problematic at best. I'll try it when I can get to the Cybercafe in our provinical capitol. We are out on a small island and away from all the good technology. Internet is via GPRS and dead slow when it works.
This is a great combo and dirt cheap from HK. I live in the Philippines and have to order all my RC electronics from overseas.
Here is my latest bird:
Great thread, guys.
|Oct 14, 2009, 07:32 PM|
Elevons are super simple. Using T6Config, you need to program two mixes:
Mix Num: MIX 1
Up Rate: 100%
Down Rate: 100%
Mix Num: MIX 2
Up Rate: -100% (Note Negative Sign!)
Down Rate: -100% (Note Negative Sign!)
Mix Num: MIX 3
Left elevon servo plugs into channel 1, right elevon servo into channel 2. If your throws are backwards, click on the reverse check boxes for both channels 1 and 2.
Here is a basic default elevon file. Remove the .doc extension. The .doc is just to fool the RCGroups file loader into accepting it.
|Oct 15, 2009, 05:18 AM|
Thanks for the info and the file. I had used those setting before and it didn't work but when I loaded your program for the 3rd time, it kicked in, and it worked. Now when I use and /or change the Mix settings it works. Maybe I had inadvertently made set something that prevented it from working. I don't know but thanks to your help I'm getting the mixing to work correctly now. Before both controls 1&2 operated the same function. I'll use the external mixers and a "Y" cable if I want to mix a canard elevator-only with elevons. This will really simplify my future builds.
One other question, if you don't mind. I have a second TX/RX HK 2.4G radio coming with 3 more receivers. When HK gets them in stock. I'm assuming they will work side by side to control two separate planes at the same time without any problems. I'm used to 72Mhz and channel flags but it's my understanding the 2.4G stuff automatically sorts all that stuff out with the electronics and auto frequency selection or something, with the exception of binding a receiver to a transmitter.
Thanks again, John. You've been a big help.
|Oct 15, 2009, 06:11 AM|
cybernaught, each transmitter has a special serial number or id number that is used for the receiver to lock in with and sync up. Thus many 2.4ghz systems can share a number of frequencies and not interfere with each other. So yes when you perform the "bind" sequence, the receiver is locked to a specific transmitter and only that TX can control it after it has been bound to it.
But in the past there have been a few instances where the factory didn't set the serial numbers on some Tx's and left them at all zeros. In that case the TX's could control each other's receivers as the TX's all had the same default zero serial numbers.
|Oct 15, 2009, 06:49 AM|
If you have a canard aircraft with elevons, you have one mix left, so you could mix channel 2 (elevator) to channel 5 (or 6,) and have separate elevator signal for canards. You'd plug in your canard servo into channel 5.
|Oct 15, 2009, 08:24 AM|
I'll check things out when the new TX arrives.
It was the negative values that got me! I didn't see them in your earlier post, or perhaps I did see them but just didn't snap to the fact they were "minus" signs.
Your idea would allow altering the setting for incidence and radical offset for high alpha... Hmmmmmm Either way it adds a tremendous amount of versatility to a very cheap radio system.
|Oct 15, 2009, 08:38 AM|
This radio would be even sweeter if it had more than three mixes. Flapperons takes three mixes, leaving nothing for a v-tail. That rules out a lot of sailplanes I've looked at. I could always use an onboard v-tail mixer, but they have low resolution.
Maybe someday FlySky will get the 9x right.
|Oct 15, 2009, 09:45 AM|
Joined Dec 2007
the first transmit reload value must be 24us, not 36us !!!
t_reload_send = 24us and it will be much simpler to adjust timing
There is also a very ugly thing in the bind code ...
Nobody is perfect ... Cesco
|Oct 15, 2009, 10:04 AM|
|Oct 15, 2009, 11:24 AM|
Yes, I remember now
Renns may well have put his finger on the explanation of the problem in his post #1240 (page 83):
"Strange. I bought one from snhobbies, and a second used one, which I believe also came from the same outfit. It could be coincidence, or perhaps snhobbies is selling off factory 2nds, or some early release version of these things?"
I have one 6 ch. system I bought from SN Hobbies, one 4 ch. from R2Hobbies and two 4 ch. from Hobby City. They do not have the problem between them ( but then I do not have two of the SN ).
The Tx RF board and the Rx boards in the SN Hobbies are different from the other three's. There is evidence of capacitors soldered as an afterthought in the SN receiver, and the SN transmitter current drain is noticably lower than the others (135 mA versus 170 mA).
I checked the pulse trains with a scope and found that the SN transmitter sends data once every PPM sequence, while the others update data more or less continuously. This is also confirmed by the fact that apparent radiated RF is much lower from the SN Tx.
This said, range tests give very similar results with all four systems - I guess the peak RF power is the same - and they all give trouble-free service.
Based on the above observations, I believe that SN Hobbies did indeed sell off early versions of the FlySky system, which would explain the troubling behaviour witnessed by Renns's radios ?
|Category||Thread||Thread Starter||Forum||Replies||Last Post|
|New Product||X8---new 2.4GHz Radio System||ASSAN||Radios||5708||Jun 25, 2014 01:20 PM|
|Yippee!||New 2.4GHz DSM radio - New standard?||PrasadL||Scratchbuilt Indoor and Micro Models||12||Jun 03, 2013 07:03 AM|
|For Sale||NEW - 2.4GHZ 2 channel Pistol R/C system||SRM||Cars - Cars and Parts (FS/W)||0||Oct 22, 2008 09:39 AM|
|FS: 1x Used 1x New 2.4ghz Wireless video cameras with receiver||Nik-rc||Aircraft - Electric - Airplanes (FS/W)||4||Nov 30, 2004 06:21 PM|